Peter Marheine
71488c49c4
Merge pull request #204 from sevdog/fix-realdownload-check
...
Use safer check in RealDownloadMiddleware
2024-08-01 09:53:07 +10:00
Peter Marheine
6c7b7f8a31
Merge pull request #209 from tari/pkg-resources
...
Replace use of pkg_resources (setuptools)
2024-08-01 09:50:07 +10:00
Davide
d385cbba6f
Use hasattr to check if any of required attribute is present
2024-07-31 16:18:20 +02:00
Peter Marheine
60c1839bf5
Replace use of pkg_resources (setuptools)
...
Since Python 3.12, setuptools isn't included with Python
and importlib is the recommended replacement, available
since Python 3.8.
2024-07-31 11:41:25 +00:00
Peter Marheine
ba6be8c3cd
Merge pull request #210 from tari/django-4.2
...
Upgrade support matrix to maintained versions of Django
2024-07-31 21:05:14 +10:00
Peter Marheine
16b241d9b5
Merge pull request #206 from sevdog/upgrade-middleware-doc
...
Update usage of middleware settings
2024-07-30 22:07:22 +10:00
Davide
c51720296a
Update references to middleware settings
2024-07-30 13:01:56 +02:00
Peter Marheine
fba10f7b1b
Merge pull request #207 from sevdog/improve-py3-code
...
Improve codebase to python3
2024-07-30 20:20:14 +10:00
Peter Marheine
41caa79f46
Upgrade support matrix to maintained versions of Django
...
Currently, only Django versions 4.2 and 5.0 are maintained and
collectively only support Python down to version 3.8. This change updates the support matrix
for this package to match.
2024-07-30 10:03:32 +00:00
Davide
ff5073d00b
Use python3 super and remove useless method re-definitions
2023-09-26 11:26:43 +02:00
Rémy HUBSCHER
338e17195f
Merge pull request #194 from felixxm/was_modified_since_size
...
Removed passing unused size parameter to was_modified_since().
2022-08-05 09:38:56 +02:00
Rémy HUBSCHER
df439fbd4f
Merge pull request #199 from jazzband/johnthagen-patch-1
...
Enforce minimum Python version
2022-08-05 09:37:00 +02:00
johnthagen
dd2e148b05
Enforce minimum Python version
2022-08-04 13:23:07 -04:00
Rémy HUBSCHER
64e36826ff
Merge pull request #197 from johnthagen/drop-py3.6
...
Drop Python 3.6 support
2022-08-04 16:10:02 +02:00
johnthagen
d19e4bee50
Update GitHub Actions
2022-08-04 09:23:23 -04:00
johnthagen
8c74a77ebe
Drop Python 3.6 support
2022-08-04 09:22:28 -04:00
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
Mariusz Felisiak
293403b807
Removed passing unused size parameter to was_modified_since().
...
The size parameter is unused because we pass timestamp and not the
If-Modified-Since HTML header.
2022-03-14 20:38:28 +01: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