django-file-captcha 0.1.2__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.
Files changed (109) hide show
  1. django_file_captcha-0.1.2/.flake8 +3 -0
  2. django_file_captcha-0.1.2/.github/workflows/act.sh +1 -0
  3. django_file_captcha-0.1.2/.github/workflows/deploy.yml +41 -0
  4. django_file_captcha-0.1.2/.gitignore +12 -0
  5. django_file_captcha-0.1.2/.pre-commit-config.yaml +27 -0
  6. django_file_captcha-0.1.2/.readthedocs.yaml +16 -0
  7. django_file_captcha-0.1.2/CHANGES +283 -0
  8. django_file_captcha-0.1.2/LICENSE +20 -0
  9. django_file_captcha-0.1.2/MANIFEST.in +20 -0
  10. django_file_captcha-0.1.2/MECHANICS.md +835 -0
  11. django_file_captcha-0.1.2/PKG-INFO +349 -0
  12. django_file_captcha-0.1.2/README.md +335 -0
  13. django_file_captcha-0.1.2/README.rst +38 -0
  14. django_file_captcha-0.1.2/captcha/__init__.py +6 -0
  15. django_file_captcha-0.1.2/captcha/conf/__init__.py +0 -0
  16. django_file_captcha-0.1.2/captcha/conf/settings.py +87 -0
  17. django_file_captcha-0.1.2/captcha/fields.py +189 -0
  18. django_file_captcha-0.1.2/captcha/fonts/COPYRIGHT.TXT +123 -0
  19. django_file_captcha-0.1.2/captcha/fonts/README.TXT +11 -0
  20. django_file_captcha-0.1.2/captcha/fonts/Vera.ttf +0 -0
  21. django_file_captcha-0.1.2/captcha/helpers.py +120 -0
  22. django_file_captcha-0.1.2/captcha/jinja2/captcha/widgets/captcha.html +2 -0
  23. django_file_captcha-0.1.2/captcha/locale/bg/LC_MESSAGES/django.mo +0 -0
  24. django_file_captcha-0.1.2/captcha/locale/bg/LC_MESSAGES/django.po +31 -0
  25. django_file_captcha-0.1.2/captcha/locale/cs/LC_MESSAGES/django.mo +0 -0
  26. django_file_captcha-0.1.2/captcha/locale/cs/LC_MESSAGES/django.po +30 -0
  27. django_file_captcha-0.1.2/captcha/locale/de/LC_MESSAGES/django.mo +0 -0
  28. django_file_captcha-0.1.2/captcha/locale/de/LC_MESSAGES/django.po +32 -0
  29. django_file_captcha-0.1.2/captcha/locale/en/LC_MESSAGES/django.mo +0 -0
  30. django_file_captcha-0.1.2/captcha/locale/en/LC_MESSAGES/django.po +30 -0
  31. django_file_captcha-0.1.2/captcha/locale/es/LC_MESSAGES/django.mo +0 -0
  32. django_file_captcha-0.1.2/captcha/locale/es/LC_MESSAGES/django.po +32 -0
  33. django_file_captcha-0.1.2/captcha/locale/fa/LC_MESSAGES/django.mo +0 -0
  34. django_file_captcha-0.1.2/captcha/locale/fa/LC_MESSAGES/django.po +31 -0
  35. django_file_captcha-0.1.2/captcha/locale/fr/LC_MESSAGES/django.mo +0 -0
  36. django_file_captcha-0.1.2/captcha/locale/fr/LC_MESSAGES/django.po +30 -0
  37. django_file_captcha-0.1.2/captcha/locale/it/LC_MESSAGES/django.mo +0 -0
  38. django_file_captcha-0.1.2/captcha/locale/it/LC_MESSAGES/django.po +30 -0
  39. django_file_captcha-0.1.2/captcha/locale/ja/LC_MESSAGES/django.mo +0 -0
  40. django_file_captcha-0.1.2/captcha/locale/ja/LC_MESSAGES/django.po +31 -0
  41. django_file_captcha-0.1.2/captcha/locale/nl/LC_MESSAGES/django.mo +0 -0
  42. django_file_captcha-0.1.2/captcha/locale/nl/LC_MESSAGES/django.po +31 -0
  43. django_file_captcha-0.1.2/captcha/locale/pl/LC_MESSAGES/django.mo +0 -0
  44. django_file_captcha-0.1.2/captcha/locale/pl/LC_MESSAGES/django.po +32 -0
  45. django_file_captcha-0.1.2/captcha/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  46. django_file_captcha-0.1.2/captcha/locale/pt_BR/LC_MESSAGES/django.po +31 -0
  47. django_file_captcha-0.1.2/captcha/locale/ru/LC_MESSAGES/django.mo +0 -0
  48. django_file_captcha-0.1.2/captcha/locale/ru/LC_MESSAGES/django.po +31 -0
  49. django_file_captcha-0.1.2/captcha/locale/sk/LC_MESSAGES/django.mo +0 -0
  50. django_file_captcha-0.1.2/captcha/locale/sk/LC_MESSAGES/django.po +32 -0
  51. django_file_captcha-0.1.2/captcha/locale/sv/LC_MESSAGES/django.mo +0 -0
  52. django_file_captcha-0.1.2/captcha/locale/sv/LC_MESSAGES/django.po +31 -0
  53. django_file_captcha-0.1.2/captcha/locale/tr/LC_MESSAGES/django.mo +0 -0
  54. django_file_captcha-0.1.2/captcha/locale/tr/LC_MESSAGES/django.po +31 -0
  55. django_file_captcha-0.1.2/captcha/locale/uk/LC_MESSAGES/django.mo +0 -0
  56. django_file_captcha-0.1.2/captcha/locale/uk/LC_MESSAGES/django.po +32 -0
  57. django_file_captcha-0.1.2/captcha/locale/zh_CN/LC_MESSAGES/django.mo +0 -0
  58. django_file_captcha-0.1.2/captcha/locale/zh_CN/LC_MESSAGES/django.po +31 -0
  59. django_file_captcha-0.1.2/captcha/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  60. django_file_captcha-0.1.2/captcha/locale/zh_Hans/LC_MESSAGES/django.po +31 -0
  61. django_file_captcha-0.1.2/captcha/management/__init__.py +0 -0
  62. django_file_captcha-0.1.2/captcha/management/commands/__init__.py +0 -0
  63. django_file_captcha-0.1.2/captcha/management/commands/captcha_clean.py +29 -0
  64. django_file_captcha-0.1.2/captcha/management/commands/captcha_create_pool.py +33 -0
  65. django_file_captcha-0.1.2/captcha/migrations/0001_initial.py +30 -0
  66. django_file_captcha-0.1.2/captcha/migrations/0002_alter_captchastore_id.py +17 -0
  67. django_file_captcha-0.1.2/captcha/migrations/__init__.py +0 -0
  68. django_file_captcha-0.1.2/captcha/models.py +88 -0
  69. django_file_captcha-0.1.2/captcha/serializers.py +32 -0
  70. django_file_captcha-0.1.2/captcha/storage.py +175 -0
  71. django_file_captcha-0.1.2/captcha/templates/captcha/widgets/captcha.html +9 -0
  72. django_file_captcha-0.1.2/captcha/tests/__init__.py +1 -0
  73. django_file_captcha-0.1.2/captcha/tests/drf_views.py +29 -0
  74. django_file_captcha-0.1.2/captcha/tests/tests.py +674 -0
  75. django_file_captcha-0.1.2/captcha/tests/urls.py +39 -0
  76. django_file_captcha-0.1.2/captcha/tests/views.py +113 -0
  77. django_file_captcha-0.1.2/captcha/urls.py +21 -0
  78. django_file_captcha-0.1.2/captcha/validators.py +26 -0
  79. django_file_captcha-0.1.2/captcha/views.py +313 -0
  80. django_file_captcha-0.1.2/docs/Makefile +89 -0
  81. django_file_captcha-0.1.2/docs/_static/captcha3.png +0 -0
  82. django_file_captcha-0.1.2/docs/_static/dict.png +0 -0
  83. django_file_captcha-0.1.2/docs/_static/math.png +0 -0
  84. django_file_captcha-0.1.2/docs/_static/random_chars.png +0 -0
  85. django_file_captcha-0.1.2/docs/advanced.rst +316 -0
  86. django_file_captcha-0.1.2/docs/changes.rst +1 -0
  87. django_file_captcha-0.1.2/docs/conf.py +206 -0
  88. django_file_captcha-0.1.2/docs/index.rst +37 -0
  89. django_file_captcha-0.1.2/docs/requirements.txt +1 -0
  90. django_file_captcha-0.1.2/docs/usage.rst +181 -0
  91. django_file_captcha-0.1.2/poetry.lock +995 -0
  92. django_file_captcha-0.1.2/pyproject.toml +35 -0
  93. django_file_captcha-0.1.2/setup.cfg +2 -0
  94. django_file_captcha-0.1.2/setup.py +78 -0
  95. django_file_captcha-0.1.2/testproject/.coveragerc +12 -0
  96. django_file_captcha-0.1.2/testproject/__init__.py +0 -0
  97. django_file_captcha-0.1.2/testproject/coverage.sh +6 -0
  98. django_file_captcha-0.1.2/testproject/drf_settings.py +4 -0
  99. django_file_captcha-0.1.2/testproject/forms.py +15 -0
  100. django_file_captcha-0.1.2/testproject/jinja2_settings.py +4 -0
  101. django_file_captcha-0.1.2/testproject/manage.py +33 -0
  102. django_file_captcha-0.1.2/testproject/settings.py +84 -0
  103. django_file_captcha-0.1.2/testproject/templates/captcha_test/custom_captcha_field.html +17 -0
  104. django_file_captcha-0.1.2/testproject/templates/captcha_test/image.html +4 -0
  105. django_file_captcha-0.1.2/testproject/templates/captcha_test/image_html5_audio.html +22 -0
  106. django_file_captcha-0.1.2/testproject/templates/home.html +55 -0
  107. django_file_captcha-0.1.2/testproject/urls.py +10 -0
  108. django_file_captcha-0.1.2/testproject/views.py +15 -0
  109. django_file_captcha-0.1.2/tox.ini +122 -0
@@ -0,0 +1,3 @@
1
+ [flake8]
2
+ ignore = E501, W503
3
+ exclude = migrations,.venv_*,docs
@@ -0,0 +1 @@
1
+ act -W deploy.yml --verbose -P docker3=myridia/runner --pull=false
@@ -0,0 +1,41 @@
1
+ #how to deploy a xml action file for github https://myridia.com/dev_posts/view/3904
2
+ name: Publish
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+
7
+ jobs:
8
+ Tasks:
9
+ #runs-on: ubuntu-latest
10
+ #runs-on: docker3
11
+ runs-on: ubuntu-latest
12
+ container: myridia/runner
13
+ steps:
14
+ - name: Install Poetry
15
+ run: |
16
+ # sudo apt-get update -y
17
+ pipx install poetry
18
+ echo 'export PATH="$PATH:/$HOME/.local/bin/"' >> ~/.bashrc
19
+ pipx ensurepath
20
+ pipx completions
21
+
22
+ - name: Checkout
23
+ run: |
24
+ git clone 'https://github.com/myridia/django-file-captcha.git'
25
+
26
+ - name: Build
27
+ env:
28
+ TWINE_USERNAME: "__token__"
29
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30
+ run: |
31
+ cd django-file-captcha
32
+ export PATH="$HOME/.local/bin:$PATH"
33
+ poetry add setuptools wheel twine build
34
+ poetry run python -m build
35
+
36
+ echo KEY: ${TWINE_PASSWORD}
37
+ #poetry run twine check dist/*
38
+ #poetry run twine upload --verbose --skip-existing dist/*
39
+
40
+
41
+
@@ -0,0 +1,12 @@
1
+ dist
2
+ build
3
+ *.pyc
4
+ *.egg-info
5
+ docs/_build/
6
+ .venv*
7
+ testproject/django-file-captcha.db
8
+ testproject/.coverage
9
+ testproject/coverage.xml
10
+ testproject/htmlcov/
11
+ .tox
12
+ .idea
@@ -0,0 +1,27 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.0.1
4
+ hooks:
5
+ - id: fix-encoding-pragma
6
+ args: ['--remove']
7
+ - id: debug-statements
8
+ - id: check-merge-conflict
9
+ - id: check-ast
10
+ - id: end-of-file-fixer
11
+ - id: trailing-whitespace
12
+
13
+ - repo: https://github.com/timothycrosley/isort
14
+ rev: 5.12.0
15
+ hooks:
16
+ - id: isort
17
+ additional_dependencies: [toml]
18
+
19
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
20
+ # Ruff version.
21
+ rev: "v0.2.2"
22
+ hooks:
23
+ # Run the linter.
24
+ - id: ruff
25
+ args: [ --fix ]
26
+ # Run the formatter.
27
+ - id: ruff-format
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ build:
3
+ os: ubuntu-22.04
4
+ tools:
5
+ python: "3.10"
6
+ # You can also specify other tool versions:
7
+ # nodejs: "16"
8
+
9
+ # Build documentation in the docs/ directory with Sphinx
10
+ sphinx:
11
+ configuration: docs/conf.py
12
+
13
+ # Dependencies required to build your docs
14
+ python:
15
+ install:
16
+ - requirements: docs/requirements.txt
@@ -0,0 +1,283 @@
1
+ Version History
2
+ ===============
3
+
4
+
5
+ Version 0.6.3
6
+ -------------
7
+ * Test against Django 6.0
8
+ * Support animated CAPTCHAs (AVIF or GIF)
9
+
10
+ Version 0.6.2
11
+ -------------
12
+ * Make DRF dependency optional
13
+
14
+ Version 0.6.1
15
+ -------------
16
+ * Fixed docs and test configuration
17
+ * Delete leftover temporary audio files (#224, #225, #226 thanks @dawidratynski and @A-dead-pixel)
18
+ * Test against Django 5.1 and 5.2
19
+ * Add ability to control color of each character (PR #235, thanks @mheidarian)
20
+ * Add support for Django REST Framework (PR #236, thanks @michalwrona01)
21
+ * Audio CAPTCHA: try to detect the sample rate of the generated WAV file prior to merge (Issue #196)
22
+
23
+ Version 0.6.0
24
+ -------------
25
+ * Only Django versions 4.2 or above are now supported
26
+ * Removed the old rendering methods that were deprecated in 2017.
27
+
28
+ Version 0.5.20
29
+ --------------
30
+ * Still support Django 3.2 (#222, thanks @petrklus)
31
+
32
+ Version 0.5.19
33
+ --------------
34
+ * SECURITY ISSUE: reset the random seed after an image was generated (#221, thanks @ibuler)
35
+
36
+ Version 0.5.18
37
+ --------------
38
+ * Fix some typos in documentation (#210, thanks @stweil)
39
+ * Test against Django 4.2
40
+ * Stopped testing Django < 3.2
41
+ * BaseCaptchaTextInput should set autocomplete=off on the hashkey HiddenInput (#201, thanks @eerotal)
42
+ * Test against Django 4.2a
43
+ * Fix some deprecation warnings in Pillow 9.2+
44
+ * Removed old unused conditional imports
45
+ * Format code with pre-commit and black
46
+
47
+
48
+ Version 0.5.17
49
+ --------------
50
+ * English translation created from Spanish ones (#209, thanks @tpazderka)
51
+
52
+
53
+ Version 0.5.16
54
+ --------------
55
+ * Adds a migration missing from 0.5.15 (#208, thanks @atodorov)
56
+
57
+
58
+ Version 0.5.15
59
+ --------------
60
+ * Updated test matrix, drop tests against Python3.6, test against Python3.9
61
+ * Remove dependency on six
62
+ * Test against Django 4.0a1
63
+ * Test with Python 3.10 (Django 3.2 and Django 4.0)
64
+ * Remove warning for django 3.2 (#206, thanks @MiStErLu)
65
+
66
+
67
+ Version 0.5.14
68
+ --------------
69
+ * Generate deterministic CAPTCHA images for each Captcha instance (#194, thanks @mjnaderi)
70
+ * New setting CAPTCHA_2X_IMAGE to disable the double resolution image option (#195, thanks @mjnaderi)
71
+ * Test against Django 3.2a
72
+
73
+
74
+ Version 0.5.13
75
+ --------------
76
+ * Fix DeprecationWarnings on Django 3 related to unicode (#173, thanks @jannh)
77
+ * Applied black to the codebase and ignored W503
78
+ * tox: remove superfluous basepython statement (#172, thanks @devkral)
79
+ * i18n: add Persian (fa) language translation files (#190, thanks @mavenium)
80
+ * Test Django 2.2, 3.0 and 3.1 on Python 3.6, 3.7 and 3.8 (#171, thanks @devkral)
81
+ * Fix deprecation warnings on Django 3.1 (#186, thanks @ jannh and @TheBuky)
82
+ * Travis fixes and test on ppc64le arch (#192 and #191, thanks @kishorkunal-raj)
83
+
84
+
85
+ Version 0.5.12
86
+ --------------
87
+ * Doc: Update url include line for Django (#164, thanks @jpic)
88
+ * Doc: Fixed a typo (#162, thanks @RubenGarcia)
89
+ * Initial fixes and test against Django 3.0 (#166, #165. Thanks @devkral)
90
+ * Don't open dictionary file in binary mode (#167, thanks @grasshoppermouse)
91
+
92
+
93
+ Version 0.5.11
94
+ --------------
95
+ * Fix: CAPTCHA_TEST_MODE was broken. (#163, thanks @ohlr for reporting)
96
+
97
+
98
+ Version 0.5.10
99
+ --------------
100
+ * Test against Django 2.2a1
101
+ * Docs: Grammar correction (#160, thanks @DanAtShenTech)
102
+ * Fix: Add '+' to text replacement for audio support (#157, thanks @geirkairam)
103
+ * I18N: Added Swedish translation (#155, thanks @stefannorman)
104
+ * Docs: Provide an example of custom field template (#158, thanks @TheBuky)
105
+
106
+
107
+ Version 0.5.9
108
+ -------------
109
+ * Add missing Jinja2 templates in the pypi packages.
110
+
111
+
112
+ Version 0.5.8
113
+ -------------
114
+ * Add support for Jinja2 templates (Issue #145, PR #146, thanks @ziima)
115
+ * Cleanup, drop dependency on South (#141, #142 thanks @ziima)
116
+
117
+
118
+ Version 0.5.7
119
+ -------------
120
+ * Use templates for rendering of widgets (Issue #128, #134, PR #133, #139, thanks @ziima)
121
+ * Always defined audio context variable (PR #132, thanks @ziima)
122
+ * Test against Django 2.1a
123
+ * Updated AJAX update docs (PR #140, thanks @CNmanyue)
124
+ * Fixed a typo in a variable name (PR #130, thanks @galeo)
125
+
126
+
127
+ Version 0.5.6
128
+ -------------
129
+ * Updated render method to adapt for Django 2.1 (PR #120, thanks @skozan)
130
+ * Improved compatibility with Django 2.0, tests against Django 2.0a1 (PR #121, thanks @Kondou-ger)
131
+ * Dropped support for PIL (use Pillow instead)
132
+ * Updated documentation (Fixes #122, thanks @claudep)
133
+ * Test against Django 2.0b1
134
+ * Return a Ranged Response when returning WAV audio to support Safari (Fixes #123, thanks @po5i)
135
+ * Optionally inject brown noise into the generated WAV audio file, to avoid rainbow-table attacks (Fixes #124, thanks @appleorange1)
136
+ * Test against Django 2.0
137
+
138
+
139
+ Version 0.5.5
140
+ -------------
141
+ * I messed the 0.5.4 release, re-releasing as 0.5.5
142
+
143
+ Version 0.5.4
144
+ -------------
145
+ * Removed a couple gremlins (PR #113, thanks @Pawamoy)
146
+ * Added autocapitalize="off", autocorrect="off" and spellcheck="false" to the generated field (PR #116, thanks @rdonnelly)
147
+ * Test against Django 1.11
148
+ * Drop support of Django 1.7 ("it'll probably still work")
149
+
150
+ Version 0.5.3
151
+ -------------
152
+ * Ability to pass a per-field challenge generator function (Fixes #109)
153
+ * Added a feature to get captchas from a data pool of pre-created captchas (PR #110, thanks @skozan)
154
+ * Cleanup to remove old code handling timezones for no longer supported Django versions
155
+ * Fix for "Size must be a tuple" issue with Pillow 3.4.0 (Fixes #111)
156
+
157
+ Version 0.5.2
158
+ -------------
159
+ * Use any multiplication uperator instead of "*". (Fixes #77 via PR #104, thanks @honsdomi and @isergey)
160
+ * Test against Django 1.10
161
+
162
+ Version 0.5.1
163
+ -------------
164
+ * Fine tuning MANIFEST.in
165
+ * Prevent testproject from installing into site-packages
166
+
167
+ Version 0.5.0
168
+ -------------
169
+ * Adds missing includes in MANIFEST.in
170
+
171
+ Version 0.4.7
172
+ -------------
173
+ * Supported Django versions are now 1.7, 1.8 and 1.9
174
+ * Trying to fix the TravisCI build errors
175
+ * Use Django templates to render the individual fields, as well as the assembled Captcha Field (Issue #31)
176
+
177
+
178
+ Version 0.4.6
179
+ -------------
180
+ * Fixes an UnicodeDecodeError which was apparently only triggered during testing on TravisCI (I hope)
181
+ * Support for Django 2.0 urlpatterns syntax (PR #82, Thanks @R3v1L)
182
+ * settings.CAPTCHA_FONT_PATH may be a list, in which case a font is picked randomly (Issue #51 fixed in PR #88, Thanks @inflrscns)
183
+
184
+ Version 0.4.5
185
+ -------------
186
+ * Test with tox
187
+ * Test against Django 1.8 final
188
+ * Added ability to force a fixed image size (PR #76, Thanks @superqwer)
189
+
190
+ Version 0.4.4
191
+ -------------
192
+ * Added id_prefix argument (fixes issue #37)
193
+
194
+ Version 0.4.3
195
+ -------------
196
+ * Add null noise helper (Thanks @xrmx)
197
+ * Test against Django 1.7b4
198
+ * Added Spanish translations (Thanks @dragosdobrota)
199
+ * Massive cleanup (pep8, translations)
200
+ * Support for transparent background color. (Thanks @curaloucura)
201
+ * Support both Django 1.7 migrations and South migrations.
202
+ Please note, you *must* add the following to your settings, if you are
203
+ using South migrations and Django 1.6 or lower.
204
+ * Make sure autocomplete="off" is only applied to the text input, not the hidden input (Issue #68, thanks @narrowfail)
205
+ * Fixed some grammar in the documentation. (Thanks @rikrian)
206
+ * Return an HTTP 410 GONE error code for expired captcha images, to avoid crawlers from trying to reindex them (PR #70, thanks @joshuajonah)
207
+ * Fixed title markup in documentation (#74, thanks @pavlov99)
208
+ * Test against Django 1.7.1
209
+
210
+ Version 0.4.2
211
+ -------------
212
+ * Added autocomplete="off" to the input (Issue #57, thanks @Vincent-Vega)
213
+ * Fixed the format (msgfmt -c) of most PO and MO files distributed with the project
214
+ * Added Bulgarian translations. (Thanks @vstoykov)
215
+ * Added Japanese translations. (Thanks, Keisuke URAGO)
216
+ * Added Ukrainian translations. (Thanks, @FuriousCoder)
217
+ * Added support for Python 3.2. (Thanks, @amrhassan)
218
+
219
+ Version 0.4.1
220
+ -------------
221
+ * Dropped support for Django 1.3
222
+ * Fixed support of newer versions of Pillow (2.1 and above. Pillow 2.2.2 is now required) Thanks @viaregio (Issue #50)
223
+
224
+ Version 0.4.0
225
+ -------------
226
+ * Perform some tests at package installation, to check whether PIL or Pillow are already installed. (Issue #46)
227
+ * Added Slovak translations. (Thanks @ciklysta)
228
+
229
+ Version 0.3.9
230
+ -------------
231
+ * Run most tests both with a regular Form and a ModelForm, to avoid regressions such as Issue #40
232
+ * Handle the special case where CaptchaFields are instantiated with required=False (Issue #42, thanks @DrMeers)
233
+ * Fixed a misspelled setting, we now support both spellings, but the docs suggest the correct one (Issue #36, thanks @sayadn)
234
+ * Added Django 1.6b to testrunner and adapted the test cases to support Django 1.6's new test discovery
235
+ * Added German translations. (Thanks @digi604)
236
+ * Frozen the version of Pillow to 2.0.0, as 2.1.0 seems to be truncating the output image -- Issue #44, Thanks @andruby
237
+ * Added Polish translations. (Thanks @stilzdev)
238
+
239
+ Version 0.3.8
240
+ -------------
241
+ * Fixed a critical bug (Issue #40) that would generate two captcha objects, and the test would always fail. Thanks @pengqi for the heads-up.
242
+
243
+
244
+ Version 0.3.7
245
+ -------------
246
+ * Improved Django 1.5 and Django HEAD (1.6) compatibility (thanks @uruz)
247
+ * Python3 compatibility (requires six and Pillow >= 2.0)
248
+ * Added zh_CN localization (thanks @mingchen)
249
+ * Make sure the generated challenge is a string type (the math challenge was probably broken -- Issue #33, thanks @YDS19872712)
250
+ * Massive cleanup and refactoring (Issue #38, thanks @tepez)
251
+ * Test refactoring to test a couple generators that weren't tested by default
252
+
253
+ Version 0.3.6
254
+ -------------
255
+ * Django 1.5 compatibility (only affects tests)
256
+ * Italian localization (thanks @arjunadeltoso)
257
+ * Russian localization (thanks @mikek)
258
+ * Fixed issue #17 - Append content-length to response (thanks @shchemelevev)
259
+ * Merged PR #19 - AJAX refresh of captcha (thanks @artofhuman)
260
+ * Merged PR #22 - Use op.popen instead of subprocess.call to generate the audio CAPTCHA (thanks @beda42)
261
+ * Fixed issue #10 - uniformize spelling of "CAPTCHA" (thanks @mikek)
262
+ * Fixed issue #12 - Raise error when try to initialize CaptchaTextInput alone and/or when try to initialize CaptchaField with widget keyword argument (thanks @vstoykov)
263
+ * Merged PR #15 - Allow a 'test mode' where the string 'PASSED' always validates the CAPTCHA (thanks @beda42)
264
+ * Dutch translation (thanks @leonderijke)
265
+ * Turkish translation (thanks @gkmngrgn)
266
+
267
+ Version 0.3.5
268
+ -------------
269
+ * Fixes issue #4: Fixes id_for_label malfunction with prefixed forms (thanks @lolek09)
270
+
271
+ Version 0.3.4
272
+ -------------
273
+ * Fixes issue #3: regression on Django 1.4 when USE_TZ is False
274
+
275
+ Version 0.3.3
276
+ -------------
277
+ * Django 1.4 Time zones compatibility
278
+ * PEP 8 love
279
+
280
+ Version 0.3.2
281
+ -------------
282
+ * Added a test project to run tests
283
+ * Added South migrations
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 - 2014 Marco Bonetti
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,20 @@
1
+ include MANIFEST.in
2
+ include LICENSE
3
+ include README.rst
4
+ include CHANGES
5
+ include tox.ini
6
+ include .pep8
7
+ recursive-include captcha/fonts *
8
+ recursive-include captcha/locale *
9
+ recursive-include captcha/templates *
10
+ recursive-include captcha/jinja2 *
11
+ recursive-include testproject *
12
+ recursive-include docs *
13
+ exclude testproject/django-file-captcha.db
14
+ prune .tox
15
+ prune docs/_build
16
+ prune htmlcov
17
+ global-exclude *pyc
18
+ global-exclude coverage.xml
19
+ global-exclude .DS_Store
20
+ global-exclude .coverage