Compare commits

...

37 commits

Author SHA1 Message Date
Rémy HUBSCHER
969fb7931a
Merge pull request #228 from jazzband/pre-commit-ci-update-config 2025-11-17 21:38:55 +01:00
Rémy HUBSCHER
fe610b9c9f
Apply suggestion from @Natim 2025-11-17 21:38:36 +01:00
pre-commit-ci[bot]
187787d083
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-eslint: v9.39.1 → v10.0.0-alpha.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.39.1...v10.0.0-alpha.0)
- [github.com/astral-sh/ruff-pre-commit: v0.14.4 → v0.14.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.4...v0.14.5)
2025-11-17 17:30:11 +00:00
Rémy HUBSCHER
614bc522d3
Merge pull request #227 from jazzband/pre-commit-ci-update-config 2025-11-12 11:29:07 +01:00
pre-commit-ci[bot]
34a83fd09b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-eslint: v9.38.0 → v9.39.1](https://github.com/pre-commit/mirrors-eslint/compare/v9.38.0...v9.39.1)
- [github.com/astral-sh/ruff-pre-commit: v0.14.2 → v0.14.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.2...v0.14.4)
- [github.com/tox-dev/pyproject-fmt: v2.11.0 → v2.11.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.11.0...v2.11.1)
2025-11-10 17:38:43 +00:00
Rémy Hubscher
415b76622e
Post release 2025-10-28 11:34:20 +01:00
Rémy HUBSCHER
982432a05b
Merge pull request #226 from jazzband/release/2.5.0 2025-10-28 11:31:52 +01:00
Rémy Hubscher
055ef690d2
Release 2.5.0 2025-10-28 11:23:58 +01:00
Rémy HUBSCHER
94b4a60917
Merge pull request #224 from jazzband/fix/upgrade-to-django-52 2025-10-28 11:19:59 +01:00
Rémy HUBSCHER
9194e6a11c
Merge pull request #225 from jazzband/pre-commit-ci-update-config 2025-10-28 11:19:37 +01:00
pre-commit-ci[bot]
140b631d5b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/adamchainz/django-upgrade: 1.29.0 → 1.29.1](https://github.com/adamchainz/django-upgrade/compare/1.29.0...1.29.1)
- [github.com/astral-sh/ruff-pre-commit: v0.14.1 → v0.14.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.1...v0.14.2)
2025-10-27 17:25:13 +00:00
Rémy Hubscher
e3ebf67457
Upgrade test matrix 2025-10-21 10:36:39 +02:00
Rémy Hubscher
5f2ae9a9b0
Add test matrix 2025-10-21 09:53:13 +02:00
Rémy Hubscher
f1a07c226e
Upgrade to Django 5.2 and Python 3.14 2025-10-21 09:52:06 +02:00
Rémy HUBSCHER
9b90a3326d
Merge pull request #223 from jazzband/dependabot/github_actions/codecov/codecov-action-5 2025-10-21 09:51:50 +02:00
Rémy HUBSCHER
45fb86b52c
Merge pull request #222 from jazzband/dependabot/github_actions/actions/setup-python-6 2025-10-21 09:51:40 +02:00
Rémy HUBSCHER
5dc018f17b
Merge pull request #221 from jazzband/dependabot/github_actions/actions/cache-4 2025-10-21 09:51:28 +02:00
Rémy HUBSCHER
d515804708
Merge pull request #220 from jazzband/dependabot/github_actions/actions/checkout-5 2025-10-21 09:51:13 +02:00
dependabot[bot]
4e580980fe
Bump codecov/codecov-action from 1 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 07:46:40 +00:00
dependabot[bot]
9b77252326
Bump actions/setup-python from 2 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 07:46:37 +00:00
dependabot[bot]
f9cc2c5fab
Bump actions/cache from 2 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 07:46:33 +00:00
dependabot[bot]
ec0b34df5b
Bump actions/checkout from 2 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 07:46:30 +00:00
Rémy HUBSCHER
9e22eb8d8f
Merge pull request #219 from jazzband/pre-commit-ci-update-config 2025-10-21 09:45:49 +02:00
Rémy Hubscher
c239015d1a
Update github actions version. 2025-10-21 09:45:36 +02:00
pre-commit-ci[bot]
73f9c013cd [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-10-20 19:50:02 +00:00
pre-commit-ci[bot]
840827da1d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
- [github.com/pycqa/doc8: v1.1.2 → v2.0.0](https://github.com/pycqa/doc8/compare/v1.1.2...v2.0.0)
- [github.com/adamchainz/django-upgrade: 1.22.2 → 1.29.0](https://github.com/adamchainz/django-upgrade/compare/1.22.2...1.29.0)
- [github.com/pre-commit/mirrors-eslint: v9.17.0 → v9.38.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.17.0...v9.38.0)
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.14.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.14.1)
- [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.11.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.5.0...v2.11.0)
- [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](https://github.com/abravalheri/validate-pyproject/compare/v0.23...v0.24.1)
2025-10-20 17:24:32 +00:00
Rémy HUBSCHER
31e64b6a76
Merge pull request #218 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-01-07 08:50:48 +01:00
pre-commit-ci[bot]
71a1670703
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.8.6)
2025-01-06 17:54:28 +00:00
Rémy HUBSCHER
dff487aca9
Merge pull request #217 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-12-24 14:42:55 +01:00
pre-commit-ci[bot]
7aa9b687aa
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.8.4)
2024-12-23 17:46:59 +00:00
Rémy HUBSCHER
b02e2f13f9
Merge pull request #216 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-12-16 21:37:50 +01:00
pre-commit-ci[bot]
a7d182f0b4
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-eslint: v9.16.0 → v9.17.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.16.0...v9.17.0)
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.8.3)
2024-12-16 17:45:43 +00:00
Rémy HUBSCHER
c8486417bb
Merge pull request #215 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-12-13 09:38:59 +01:00
pre-commit-ci[bot]
ebcd3a0028
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
- [github.com/pycqa/doc8: v1.1.1 → v1.1.2](https://github.com/pycqa/doc8/compare/v1.1.1...v1.1.2)
- [github.com/adamchainz/django-upgrade: 1.20.0 → 1.22.2](https://github.com/adamchainz/django-upgrade/compare/1.20.0...1.22.2)
- [github.com/pre-commit/mirrors-eslint: v9.8.0 → v9.16.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.8.0...v9.16.0)
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.8.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.8.2)
- [github.com/tox-dev/pyproject-fmt: 2.2.1 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/2.2.1...v2.5.0)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.18...v0.23)
2024-12-09 17:44:37 +00:00
Rémy HUBSCHER
6c0e0a8c82
Merge pull request #214 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-08-06 09:26:57 +02:00
pre-commit-ci[bot]
d3a8f6b725
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.5.6)
- [github.com/tox-dev/pyproject-fmt: 2.1.4 → 2.2.1](https://github.com/tox-dev/pyproject-fmt/compare/2.1.4...2.2.1)
2024-08-05 17:54:35 +00:00
Rémy HUBSCHER
13a502bc4a
Post release 2.4.0 2024-08-05 14:51:35 +02:00
9 changed files with 54 additions and 24 deletions

8
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,8 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

View file

@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v6
with: with:
python-version: 3.8 python-version: 3.8

View file

@ -9,8 +9,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
django-version: ['4.2', '5.0', 'main'] django-version: ['4.2', '5.0', '5.1', '5.2', 'main']
exclude: exclude:
# Django 5.0 dropped support for Python <3.10 # Django 5.0 dropped support for Python <3.10
- django-version: '5.0' - django-version: '5.0'
@ -23,10 +23,10 @@ jobs:
python-version: '3.9' python-version: '3.9'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v6
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -36,7 +36,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)" echo "::set-output name=dir::$(pip cache dir)"
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: ${{ steps.pip-cache.outputs.dir }} path: ${{ steps.pip-cache.outputs.dir }}
key: key:
@ -56,6 +56,6 @@ jobs:
DJANGO: ${{ matrix.django-version }} DJANGO: ${{ matrix.django-version }}
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v5
with: with:
name: Python ${{ matrix.python-version }} name: Python ${{ matrix.python-version }}

View file

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 rev: v6.0.0
hooks: hooks:
- id: check-toml - id: check-toml
- id: check-yaml - id: check-yaml
@ -10,11 +10,11 @@ repos:
- id: file-contents-sorter - id: file-contents-sorter
files: docs/spelling_wordlist.txt files: docs/spelling_wordlist.txt
- repo: https://github.com/pycqa/doc8 - repo: https://github.com/pycqa/doc8
rev: v1.1.1 rev: v2.0.0
hooks: hooks:
- id: doc8 - id: doc8
- repo: https://github.com/adamchainz/django-upgrade - repo: https://github.com/adamchainz/django-upgrade
rev: 1.20.0 rev: 1.29.1
hooks: hooks:
- id: django-upgrade - id: django-upgrade
args: [--target-version, "4.2"] args: [--target-version, "4.2"]
@ -32,7 +32,7 @@ repos:
args: args:
- --trailing-comma=es5 - --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.8.0 rev: v9.39.1
hooks: hooks:
- id: eslint - id: eslint
additional_dependencies: additional_dependencies:
@ -44,16 +44,16 @@ repos:
args: args:
- --fix - --fix
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.5' rev: 'v0.14.5'
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format - id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.1.4 rev: v2.11.1
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject - repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18 rev: v0.24.1
hooks: hooks:
- id: validate-pyproject - id: validate-pyproject

View file

@ -4,17 +4,28 @@ Changelog
This document describes changes between past releases. For information about This document describes changes between past releases. For information about
future releases, check `milestones`_ and :doc:`/about/vision`. future releases, check `milestones`_ and :doc:`/about/vision`.
2.6.0 (unreleased)
2.4 (2024-08-05)
---------------- ----------------
- No changes yet
2.5.0 (2025-10-28)
----------------
- Upgrade to Django 5.2 and Python 3.14
2.4.0 (2024-08-05)
------------------
- Drop support for Python 3.6 - Drop support for Python 3.6
- Escape malicious filenames - Escape malicious filenames
- Handle headers in XAccel responses - Handle headers in XAccel responses
2.3 (2022-01-11) 2.3.0 (2022-01-11)
---------------- ------------------
- Drop Django 3.0 support - Drop Django 3.0 support
- Add Django 3.2 support - Add Django 3.2 support

View file

@ -145,7 +145,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND) self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
except AttributeError: except AttributeError:
raise ImproperlyConfigured( raise ImproperlyConfigured(
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND" "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND"
) )
def auto_configure_backend_options(self): def auto_configure_backend_options(self):
@ -155,7 +155,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES) options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
except AttributeError: except AttributeError:
raise ImproperlyConfigured( raise ImproperlyConfigured(
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES" "SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES"
) )
for key, options in enumerate(options_list): for key, options in enumerate(options_list):
args = [] args = []

View file

@ -20,6 +20,8 @@ setup(
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Django", "Framework :: Django",
"Framework :: Django :: 4.2", "Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", "Framework :: Django :: 5.0",

View file

@ -141,5 +141,5 @@ class DeprecatedAPITestCase(django.test.SimpleTestCase):
if missed_warnings: if missed_warnings:
self.fail( self.fail(
f"No DeprecationWarning raised about following settings: " f"No DeprecationWarning raised about following settings: "
f'{", ".join(missed_warnings)}.' f"{', '.join(missed_warnings)}."
) )

13
tox.ini
View file

@ -1,7 +1,10 @@
[tox] [tox]
envlist = envlist =
py{38,39,310,311,312}-dj42 py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations}
py{310,311,312}-dj{50,main} py{310,311,312,313}-dj{50}-{unittest,pytest,checkmigrations}
py{310,311,312,313}-dj{51}-{unittest,pytest,checkmigrations}
py{310,311,312,313,314}-dj{52}-{unittest,pytest,checkmigrations}
py{312,313,314}-dj{main}-{unittest,pytest,checkmigrations}
lint lint
sphinx sphinx
readme readme
@ -13,11 +16,15 @@ python =
3.10: py310 3.10: py310
3.11: py311 3.11: py311
3.12: py312 3.12: py312
3.13: py313
3.14: py314
[gh-actions:env] [gh-actions:env]
DJANGO = DJANGO =
4.2: dj42 4.2: dj42
5.0: dj50 5.0: dj50
5.1: dj51
5.2: dj52
main: djmain main: djmain
[testenv] [testenv]
@ -25,6 +32,8 @@ deps =
coverage coverage
dj42: Django>=4.2,<5.0 dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1 dj50: Django>=5.0,<5.1
dj51: django>=5.1,<5.2
dj52: django>=5.2,<5.3
djmain: https://github.com/django/django/archive/main.tar.gz djmain: https://github.com/django/django/archive/main.tar.gz
pytest pytest
pytest-cov pytest-cov