Skip to content

Commit

Permalink
Restore support for unsupported Django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed May 5, 2024
1 parent 1df8d2d commit c157440
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
args: [--target-version, "3.2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.3"
hooks:
Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- Updated the esbuild version.
- Changed the build step to also send the CSS through esbuild's minificator.
- Added spanish translations of the cookie banner.
- Dropped compatibility with Django before 4.2.
- Added Python 3.12 and Django 5.0.
- Added experimental support for Google Consent Management. Add the `f3cc/gcm.js` asset to pass the users general consent to GA.

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ authors = [
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
Expand All @@ -30,7 +33,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"Django>=4.2",
"Django>=3.2",
"feincms3>=0.37",
]

Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
envlist =
py{39,310}-dj{42}
py{310,311,312}-dj{42,50,main}
py{39,310}-dj{32,41,42}
py{310,311}-dj{32,41,42,50,main}
py{312}-dj{42,50,main}

[testenv]
usedevelop = true
Expand All @@ -10,6 +11,8 @@ commands =
python -Wd {envbindir}/coverage run tests/manage.py test -v2 --keepdb {posargs:testapp}
coverage report -m
deps =
dj32: Django>=3.2,<4.0
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
Expand Down

0 comments on commit c157440

Please sign in to comment.