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
Jannis Leidel
13d2b3ae58
Add release config.
...
Fix https://github.com/jazzband-roadies/help/issues/201 .
2020-10-02 10:45:07 +02:00
Rémy HUBSCHER
f663fa4b03
Merge pull request #158 from Natim/jazzband
...
Be ready for Jazzband move.
2020-09-18 17:49:34 +02:00
Rémy HUBSCHER
7ec465d74d
Be ready for Jazzband move.
2020-09-18 16:50:33 +02:00
Rémy HUBSCHER
3bb1a73e6b
Merge pull request #160 from jazzband/add-python3.9-support
...
Add Python 3.9 support.
2020-09-18 16:50:11 +02:00
Rémy HUBSCHER
c0acf77f73
Merge branch 'master' into add-python3.9-support
2020-09-18 16:21:08 +02:00
Rémy HUBSCHER
d74e094fe7
Merge pull request #159 from Natim/new-url-syntax
...
Remove obsolete URL syntax.
2020-09-18 16:20:32 +02:00
Rémy HUBSCHER
3da22537df
Fix doc.
2020-09-18 11:27:42 +02:00
Rémy HUBSCHER
91be5c38a8
Add Python 3.9 support.
2020-09-18 11:26:25 +02:00
Rémy HUBSCHER
8e439d3485
Remove obsolete URL syntax.
2020-09-18 11:10:08 +02:00
Rémy HUBSCHER
6cd9ec3dd0
Fix test.
2020-09-18 10:50:26 +02:00
Rémy HUBSCHER
bd41e6f7bf
Merge pull request #156 from timgates42/bugfix_typo_instantiate
...
docs: Fix simple typo, instanciate -> instantiate
2020-03-08 20:12:05 +01:00