prune_captcha 1.14.0__tar.gz → 1.15.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ include pyproject.toml
2
+ recursive-include prune_captcha/templates *
3
+ recursive-include prune_captcha/static *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prune_captcha
3
- Version: 1.14.0
3
+ Version: 1.15.1
4
4
  Summary: A tool to protect formulaire from spam.
5
5
  Author-email: Arnout <bastien@prune.sh>
6
6
  Project-URL: Made_by, https://prune.sh/
@@ -116,6 +116,8 @@ Important: You must import the static files (css, js) present in "captcha_prune/
116
116
 
117
117
  | Version | Date | Notes |
118
118
  | ------- | ---------- | ---------------------------------- |
119
+ | 1.15.1 | 2025-05-21 | fix manifest |
120
+ | 1.15.0 | 2025-05-21 | fix manifest |
119
121
  | 1.14.0 | 2025-05-21 | fix static and templates dirs |
120
122
  | 1.13.0 | 2025-05-21 | use session, add static |
121
123
  | 1.12.2 | 2025-05-21 | doc fixed |
@@ -98,6 +98,8 @@ Important: You must import the static files (css, js) present in "captcha_prune/
98
98
 
99
99
  | Version | Date | Notes |
100
100
  | ------- | ---------- | ---------------------------------- |
101
+ | 1.15.1 | 2025-05-21 | fix manifest |
102
+ | 1.15.0 | 2025-05-21 | fix manifest |
101
103
  | 1.14.0 | 2025-05-21 | fix static and templates dirs |
102
104
  | 1.13.0 | 2025-05-21 | use session, add static |
103
105
  | 1.12.2 | 2025-05-21 | doc fixed |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prune_captcha
3
- Version: 1.14.0
3
+ Version: 1.15.1
4
4
  Summary: A tool to protect formulaire from spam.
5
5
  Author-email: Arnout <bastien@prune.sh>
6
6
  Project-URL: Made_by, https://prune.sh/
@@ -116,6 +116,8 @@ Important: You must import the static files (css, js) present in "captcha_prune/
116
116
 
117
117
  | Version | Date | Notes |
118
118
  | ------- | ---------- | ---------------------------------- |
119
+ | 1.15.1 | 2025-05-21 | fix manifest |
120
+ | 1.15.0 | 2025-05-21 | fix manifest |
119
121
  | 1.14.0 | 2025-05-21 | fix static and templates dirs |
120
122
  | 1.13.0 | 2025-05-21 | use session, add static |
121
123
  | 1.12.2 | 2025-05-21 | doc fixed |
@@ -1,11 +1,9 @@
1
+ MANIFEST.in
1
2
  README.md
2
3
  pyproject.toml
3
4
  captcha_prune/__init__.py
4
5
  captcha_prune/apps.py
5
- captcha_prune/asgi.py
6
- captcha_prune/settings.py
7
6
  captcha_prune/utils.py
8
- captcha_prune/wsgi.py
9
7
  prune_captcha.egg-info/PKG-INFO
10
8
  prune_captcha.egg-info/SOURCES.txt
11
9
  prune_captcha.egg-info/dependency_links.txt
@@ -2,6 +2,12 @@
2
2
  requires = ["setuptools"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
+ [tool.setuptools]
6
+ include-package-data = true
7
+
8
+ [tool.setuptools.package-data]
9
+ "prune_captcha" = ["templates/**/*", "static/**/*"]
10
+
5
11
  [tool.setuptools.packages.find]
6
12
  where = ["."]
7
13
 
@@ -20,7 +26,7 @@ classifiers = [
20
26
  keywords = ["captcha", "django", "code-quality"]
21
27
  urls = {Made_by = "https://prune.sh/"}
22
28
  name = "prune_captcha"
23
- version = "1.14.0"
29
+ version = "1.15.1"
24
30
  description = "A tool to protect formulaire from spam."
25
31
  readme = "README.md"
26
32
  dependencies = [
@@ -1,7 +0,0 @@
1
- import os
2
-
3
- from django.core.asgi import get_asgi_application
4
-
5
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "captcha_prune.settings")
6
-
7
- application = get_asgi_application()
@@ -1,130 +0,0 @@
1
- from pathlib import Path
2
-
3
- from pydantic_settings import BaseSettings, SettingsConfigDict
4
-
5
-
6
- class EnvSettings(BaseSettings):
7
- model_config = SettingsConfigDict(env_file=".env", extra="allow")
8
-
9
- postgres_db: str
10
- postgres_user: str
11
- postgres_password: str
12
- postgres_host: str
13
- postgres_port: str
14
-
15
-
16
- env_settings = EnvSettings()
17
-
18
- # Build paths inside the project like this: BASE_DIR / 'subdir'.
19
- BASE_DIR = Path(__file__).resolve().parent.parent
20
-
21
-
22
- # Quick-start development settings - unsuitable for production
23
- # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
24
-
25
- # SECURITY WARNING: keep the secret key used in production secret!
26
- SECRET_KEY = "django-insecure-dj-w%-kno*r5w=e_&l1sl3)9kl%m25(3ikoc=z_%p5-0d5472%"
27
-
28
- # SECURITY WARNING: don't run with debug turned on in production!
29
- DEBUG = True
30
-
31
- ALLOWED_HOSTS = []
32
-
33
-
34
- # Application definition
35
-
36
- INSTALLED_APPS = [
37
- "django.contrib.admin",
38
- "django.contrib.auth",
39
- "django.contrib.contenttypes",
40
- "django.contrib.sessions",
41
- "django.contrib.messages",
42
- "django.contrib.staticfiles",
43
- "captcha_prune",
44
- ]
45
-
46
- MIDDLEWARE = [
47
- "django.middleware.security.SecurityMiddleware",
48
- "django.contrib.sessions.middleware.SessionMiddleware",
49
- "django.middleware.common.CommonMiddleware",
50
- "django.middleware.csrf.CsrfViewMiddleware",
51
- "django.contrib.auth.middleware.AuthenticationMiddleware",
52
- "django.contrib.messages.middleware.MessageMiddleware",
53
- "django.middleware.clickjacking.XFrameOptionsMiddleware",
54
- ]
55
-
56
- ROOT_URLCONF = "captcha_prune.urls"
57
-
58
- TEMPLATES = [
59
- {
60
- "BACKEND": "django.template.backends.django.DjangoTemplates",
61
- "DIRS": [],
62
- "APP_DIRS": True,
63
- "OPTIONS": {
64
- "context_processors": [
65
- "django.template.context_processors.request",
66
- "django.contrib.auth.context_processors.auth",
67
- "django.contrib.messages.context_processors.messages",
68
- ],
69
- },
70
- },
71
- ]
72
-
73
- WSGI_APPLICATION = "captcha_prune.wsgi.application"
74
-
75
-
76
- # Database
77
- # https://docs.djangoproject.com/en/5.2/ref/settings/#databases
78
-
79
- DATABASES = {
80
- "default": {
81
- "ENGINE": "django.db.backends.postgresql",
82
- "NAME": env_settings.postgres_db,
83
- "USER": env_settings.postgres_user,
84
- "PASSWORD": env_settings.postgres_password,
85
- "HOST": env_settings.postgres_host,
86
- "PORT": env_settings.postgres_port,
87
- }
88
- }
89
-
90
-
91
- # Password validation
92
- # https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
93
-
94
- AUTH_PASSWORD_VALIDATORS = [
95
- {
96
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
97
- },
98
- {
99
- "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
100
- },
101
- {
102
- "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
103
- },
104
- {
105
- "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
106
- },
107
- ]
108
-
109
-
110
- # Internationalization
111
- # https://docs.djangoproject.com/en/5.2/topics/i18n/
112
-
113
- LANGUAGE_CODE = "en-us"
114
-
115
- TIME_ZONE = "UTC"
116
-
117
- USE_I18N = True
118
-
119
- USE_TZ = True
120
-
121
-
122
- # Static files (CSS, JavaScript, Images)
123
- # https://docs.djangoproject.com/en/5.2/howto/static-files/
124
-
125
- STATIC_URL = "static/"
126
-
127
- # Default primary key field type
128
- # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
129
-
130
- DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
@@ -1,7 +0,0 @@
1
- import os
2
-
3
- from django.core.wsgi import get_wsgi_application
4
-
5
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "captcha_prune.settings")
6
-
7
- application = get_wsgi_application()
File without changes