Skip to content

Commit 208ed9f

Browse files
committed
Drop support for Python < 3.8 and Django < 4.2.
1 parent 0e3d6a3 commit 208ed9f

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v2
2020
with:
21-
python-version: 3.7
21+
python-version: 3.8
2222

2323
- name: Install dependencies
2424
run: |

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
max-parallel: 5
1111
matrix:
12-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
12+
python-version: ['3.8', '3.9', '3.10', '3.11']
1313

1414
steps:
1515
- uses: actions/checkout@v2

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@
1717
author='Simon Charette',
1818
author_email='[email protected]',
1919
install_requires=[
20-
'Django>=3.2',
20+
'Django>=4.2',
2121
],
2222
packages=find_packages(exclude=['tests', 'tests.*']),
2323
license='MIT License',
2424
classifiers=[
2525
'Development Status :: 5 - Production/Stable',
2626
'Environment :: Web Environment',
2727
'Framework :: Django',
28-
'Framework :: Django :: 3.2',
29-
'Framework :: Django :: 4.0',
30-
'Framework :: Django :: 4.1',
3128
'Framework :: Django :: 4.2',
29+
'Framework :: Django :: 5.0',
30+
'Framework :: Django :: 5.1',
3231
'Intended Audience :: Developers',
3332
'License :: OSI Approved :: MIT License',
3433
'Operating System :: OS Independent',
3534
'Programming Language :: Python',
3635
'Programming Language :: Python :: 3',
37-
'Programming Language :: Python :: 3.7',
3836
'Programming Language :: Python :: 3.8',
3937
'Programming Language :: Python :: 3.9',
4038
'Programming Language :: Python :: 3.10',

tox.ini

+9-17
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ envlist =
66
flake8,
77
isort,
88
pypi,
9-
py37-3.2,
10-
py{38,39}-{3.2,4.1,4.2},
11-
py310-{3.2,4.1,4.2,5.0,main},
12-
py311-{4.1,4.2,5.0,main},
9+
py{38,39}-{4.2},
10+
py310-{4.2,5.0,5.1,main},
11+
py311-{4.2,5.0,5.1,main},
1312

1413
[gh-actions]
1514
python =
16-
3.7: py37, black, flake8, isort, pypi
17-
3.8: py38
15+
3.8: py38, black, flake8, isort, pypi
1816
3.9: py39
1917
3.10: py310
2018
3.11: py311
2119

2220
[testenv]
2321
basepython =
24-
py37: python3.7
25-
py38: python3.8
22+
python3.8
2623
py39: python3.9
2724
py310: python3.10
2825
py311: python3.11
@@ -32,37 +29,32 @@ commands =
3229
coverage report
3330
deps =
3431
coverage
35-
3.2: Django>=3.2,<4
36-
4.1: Django>=4.1,<4.2
3732
4.2: Django>=4.2,<5
38-
5.0: Django>=5.0a1,<5.1
33+
5.0: Django>=5.0,<5.1
34+
5.1: Django>=5.1,<5.2
3935
main: https://github.com/django/django/archive/main.tar.gz
4036
passenv =
4137
GITHUB_*
4238

4339
[testenv:flake8]
4440
usedevelop = false
45-
basepython = python3.7
46-
commands = flake8
41+
commands = flake8 seal tests
4742
deps = flake8
4843

4944
[testenv:isort]
5045
usedevelop = false
51-
basepython = python3.7
5246
commands = isort --recursive --check-only --diff seal tests
5347
deps =
5448
isort
55-
Django<4
49+
Django<=4.2
5650

5751
[testenv:black]
5852
usedevelop = false
59-
basepython = python3.7
6053
commands = black --check seal tests
6154
deps = black
6255

6356
[testenv:pypi]
6457
usedevelop = false
65-
basepython = python3.7
6658
commands =
6759
python setup.py sdist --format=gztar bdist_wheel
6860
twine check dist/*

0 commit comments

Comments
 (0)