Commit graph

341 commits

Author SHA1 Message Date
Rémy HUBSCHER
a6975d9669
Merge pull request #195 from devidw/patch-1
Add missing `)` to settings docs sample
2022-08-04 14:26:22 +02:00
David Wolf
f715f72032
Add missing ) to settings docs sample 2022-04-14 17:02:49 +02:00
jazzband-bot
b64b1ad21a Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md' 2022-02-17 11:46:17 +01:00
Rémy HUBSCHER
3c2951ceac
Merge pull request #192 from jazzband/prepare-2.3-release
Prepare release of django-downloadview 2.3
2022-01-11 10:41:15 +01:00
Rémy HUBSCHER
aa003ed6bf
Prepare 2.3 release. 2022-01-11 10:37:35 +01:00
Rémy HUBSCHER
6dbf06c4ea
Merge pull request #190 from johnthagen/patch-2
Document Python 3.10 support
2022-01-05 14:11:53 +01:00
johnthagen
7c2af759c8
Document Python 3.10 support 2022-01-05 07:45:22 -05:00
Rémy HUBSCHER
7e9f81d758
Merge pull request #188 from tari/django-4.0-compat
Update compatibility for Django 4.0
2022-01-05 13:38:34 +01:00
Peter Marheine
e9fbb74b2c Uncap Github Actions parallelism
There seems to be no reason to limit tests to 5 jobs at a time; removing
the limit should allow tests to finish faster.
2021-12-23 20:27:29 +11:00
Peter Marheine
6381dc94f1 Include Django 4.0 in the test matrix 2021-12-23 13:05:46 +11:00
Peter Marheine
198f6a3295 Update compatibility for Django 4.0
The only meaningful change is removing use of `force_text` (which was
deprecated in Django 3.0) in favor of `force_str` (which has existed
since before Django 1.11). On Python 3 there is no functional difference
between the two.
2021-12-23 13:05:46 +11:00
Peter Marheine
a64a0e8c33 Split DownloadDispatcherMiddleware into two classes
Instantiating a middleware but not using it as a middleware was a
strange behavior, so this change splits the dispatching out to another
class with a more specialized API and uses that middleware.
2021-12-23 13:05:45 +11:00
Peter Marheine
0ab8aa3e8f Stop using django.util.deprecation.MiddlewareMixin
That class is intended primarily for compatibility with Pre-1.10
middleware, and recently gained a check that get_response is not None.
This package ensures an unexpecified `get_response` function is never
called on its own, so it's simplest to manually implement the middleware
API.
2021-12-23 13:05:45 +11:00
Peter Marheine
2524668e86 Test on Python 3.10 2021-12-23 11:53:26 +11:00
Peter Marheine
cb3ec3a091 Stop using nosetests
Nose is no longer maintained and is incompatible with Python 3.10, so
can no longer be used. This change runs `coverage` manually to collect
coverage and uses `pytest` to run doctests, collectively covering what
was tested using django_nose.
2021-12-23 11:51:53 +11:00
Peter Marheine
95b36fc843 Import ABCs from collections.abc, not collections
The types in collections.abc were moved from just collections in Python
3.3, and Python 3.10 removed the old aliases. We no longer support
Python versions earlier than 3.3 and need to support 3.10, so update the
import.
2021-12-23 10:27:14 +11:00
Rémy HUBSCHER
0578729a66
Merge pull request #183 from johnthagen/patch-1
Remove duplicate trove classifier
2021-04-30 08:09:51 +02:00
johnthagen
051f6116f8
Remove duplicate trove classifier 2021-04-27 19:09:12 -04:00
Hasan Ramezani
ca8331e2de Add Django supported version badge to README.rst. 2021-04-16 14:30:02 +02:00
Hasan Ramezani
a8d231cbed Add Django 3.2 support. 2021-04-16 14:30:02 +02:00
Hasan Ramezani
006d2a288d Drop Django 3.0 support. 2021-04-16 14:30:02 +02:00
Rémy HUBSCHER
cbd53d813e
Merge pull request #179 from johnthagen/storage-download-docs
Fix StorageDownloadView code snippets
2021-04-10 18:53:18 +02:00
Rémy HUBSCHER
3543a3b8fc
Merge pull request #180 from johnthagen/path-doc-fixes
Fix code snippet in PathDownloadView docs
2021-04-10 18:53:04 +02:00
Rémy HUBSCHER
465123b6e5
Merge pull request #178 from johnthagen/nginx-docs
Replace mention of deprecated NGINX_DOWNLOAD_MIDDLEWARE_SOURCE_DIR
2021-04-10 18:52:44 +02:00
Jannis Leidel
45e1219275
Rename Django's dev branch to main. (#181)
* Rename Django's dev branch to main.

More information: https://groups.google.com/g/django-developers/c/tctDuKUGosc/
Refs: https://github.com/django/django/pull/14048

* Don't run Django main test on Python < 3.8.
2021-03-09 13:49:08 +01:00
johnthagen
a06c511d8f Fix code snippet in PathDownloadView docs 2021-02-02 10:30:34 -05:00
johnthagen
a67f3dc41e Fix StorageDownloadView code snippets 2021-02-02 10:27:38 -05:00
johnthagen
9c01be6cc8 Replace mention of deprecated NGINX_DOWNLOAD_MIDDLEWARE_SOURCE_DIR 2021-02-02 10:10:59 -05:00
Rémy HUBSCHER
563b2a4f7b
Merge pull request #176 from johnthagen/fix-nginx-code-snippets
Fix the code snippets in the NGINX documentation page
2021-01-27 10:06:57 +01:00
johnthagen
707c392f6e Fix the code snippets in the NGINX documentation page 2021-01-26 16:00:11 -05:00
Rémy HUBSCHER
9b5fee2687
Merge pull request #174 from johnthagen/doc-code-fix
Fix doc code include in ObjectDownloadView
2021-01-21 19:12:34 +01:00
johnthagen
ed3d470908 Fix url example code 2021-01-21 13:07:36 -05:00
johnthagen
eb223f169b Fix "Mapping file attributes to model's" example code 2021-01-21 12:59:36 -05:00
johnthagen
700b1246df Fix "serving a specific file field" example code 2021-01-21 12:56:36 -05:00
johnthagen
2586cc5a97 Fix doc code include in ObjectDownloadView 2021-01-21 12:50:16 -05:00
Rémy HUBSCHER
c602c32d69
Merge pull request #173 from johnthagen/remove-setuptool-dep
Remove setuptools dependency
2021-01-21 18:03:34 +01:00
johnthagen
8fd75de224 Remove setuptools dependency 2021-01-21 12:01:38 -05:00
Rémy HUBSCHER
87daf8e92e
Merge pull request #172 from johnthagen/require-django-2.2
Require supported Django version 2.2
2021-01-21 18:01:34 +01:00
johnthagen
4dae54179b Require supported Django version 2.2 2021-01-21 11:59:37 -05:00
Rémy HUBSCHER
d1972d6460
Merge pull request #170 from johnthagen/update-doc-links
Update external documentation links to point to latest Django and Python releases
2021-01-21 17:46:06 +01:00
Rémy HUBSCHER
cee7810cfd
Fix links. 2021-01-21 17:45:42 +01:00
Rémy HUBSCHER
8df2615a29
Merge pull request #171 from johnthagen/demo-python-version
Update demo README to reference Python 3
2021-01-21 17:39:06 +01:00
Rémy HUBSCHER
252e6f127c
Merge pull request #169 from johnthagen/demo-settings-drop-old-django
Drop support for end of life Django settings in demo project
2021-01-21 17:38:17 +01:00
johnthagen
cc4636098b
Remove extra newline
Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
2021-01-21 11:37:57 -05:00
johnthagen
f225d87b85 Update demo README to reference Python 3 2021-01-21 11:37:12 -05:00
johnthagen
deddd2fd2d Update external documentation links to point to latest Django and Python releases 2021-01-21 11:35:00 -05:00
johnthagen
6338f61767 Drop support for end of life Django settings in demo project 2021-01-21 11:28:40 -05:00
Jannis Leidel
9f42e65986
Migrate to GitHub Actions. (#165)
* Add GitHub Actions test workflow.

* Add django version env var handling to tox config.

* Update badges.

* Add release workflow.

* Remove Travis.

* Fix typo.

* Fix more typos.

* Write coverage.xml.

* Remove the need for the VERSION file.

* Simplify demo setup.py.

* Remove VERSION file.

* Update demo/setup.py

* Update setup.py
2020-12-23 11:12:35 +01:00
Rémy HUBSCHER
384e7c5b13
Back to development: 2.3 2020-10-08 19:01:09 +02:00
Rémy HUBSCHER
0c59d6d261
Preparing release 2.2 2020-10-05 11:19:05 +02:00