Skip to content

Commit 9d674e4

Browse files
authored
Drop support for non-supported versions of Django and Python (#563)
Resolves #556
1 parent 4a36247 commit 9d674e4

File tree

4 files changed

+20
-27
lines changed

4 files changed

+20
-27
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,16 @@ jobs:
2222
name: dist
2323
path: dist/
2424
Test:
25-
runs-on: ${{ matrix.os }}
25+
runs-on: ubuntu-latest
2626
strategy:
2727
fail-fast: true
2828
matrix:
2929
include:
30-
- os: ubuntu-20.04
31-
python-version: "3.6"
32-
- os: ubuntu-20.04
33-
python-version: "3.7"
34-
- os: ubuntu-22.04
35-
python-version: "3.8"
36-
- os: ubuntu-22.04
37-
python-version: "3.9"
38-
- os: ubuntu-22.04
39-
python-version: "3.10"
30+
- python-version: "3.8"
31+
- python-version: "3.9"
32+
- python-version: "3.10"
33+
- python-version: "3.11"
34+
- python-version: "3.12"
4035
steps:
4136
- uses: actions/checkout@v4
4237
- name: "Set up Python ${{ matrix.python-version }}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"setuptools",
44
# TODO: look into using python-babel instead of requiring django at build time
5-
"django>=2.1", # for makemessages
5+
"django>=3.2", # for makemessages
66
]
77

88
[tool.ruff]

setup.cfg

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,28 @@ classifiers =
1414
Development Status :: 5 - Production/Stable
1515
Environment :: Web Environment
1616
Framework :: Django
17-
Framework :: Django :: 2.2
18-
Framework :: Django :: 3.0
19-
Framework :: Django :: 3.1
2017
Framework :: Django :: 3.2
2118
Framework :: Django :: 4.0
19+
Framework :: Django :: 4.1
20+
Framework :: Django :: 4.2
21+
Framework :: Django :: 5.0
2222
Intended Audience :: Developers
2323
License :: OSI Approved :: BSD License
2424
Operating System :: OS Independent
2525
Programming Language :: Python :: 3
2626
Programming Language :: Python :: 3 :: Only
27-
Programming Language :: Python :: 3.6
28-
Programming Language :: Python :: 3.7
2927
Programming Language :: Python :: 3.8
3028
Programming Language :: Python :: 3.9
29+
Programming Language :: Python :: 3.10
30+
Programming Language :: Python :: 3.11
31+
Programming Language :: Python :: 3.12
3132
Topic :: Database
3233

3334
[options]
3435
packages = find:
3536
include_package_data = True
3637
install_requires =
37-
Django >= 2.1
38+
Django >= 3.2
3839

3940
[options.packages.find]
4041
exclude =

tox.ini

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[tox]
22
envlist =
3-
py36-django{22,30,31}
4-
py37-django{22,30,31}
5-
py38-django{22,30,31,32}
6-
py{39,310}-django{40,41,42}
3+
py{38,39,310}-django{32}
4+
py{38,39,310,311,312}-django{40,41,42}
5+
py{310,311,312}-django{50}
76
# TODO: reinstate running on postgres: py39-django{40}-postgres
87
docs
98

@@ -15,12 +14,11 @@ setenv =
1514
deps =
1615
coverage
1716
dj-database-url
18-
django22: Django ~= 2.2
19-
django30: Django ~= 3.0
20-
django31: Django ~= 3.1
17+
django32: Django ~= 3.2
2118
django40: Django ~= 4.0
2219
django41: Django ~= 4.1
2320
django42: Django ~= 4.2
21+
django50: Django ~= 5.0
2422
djangomain: https://github.com/django/django/archive/main.tar.gz
2523
postgres: psycopg2
2624
commands =
@@ -36,9 +34,8 @@ commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
3634

3735
[gh-actions]
3836
python =
39-
3.6: py36
40-
3.7: py37
4137
3.8: py38
4238
3.9: py39
4339
3.10: py310
4440
3.11: py311
41+
3.12: py312

0 commit comments

Comments
 (0)