Skip to content

Commit a839818

Browse files
authored
Merge pull request #756 from moggers87/remove-python3.8
Update supported Python versions
2 parents e53f2bf + b1618b6 commit a839818

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
name: Python ${{ matrix.python-version }}
99
runs-on: ubuntu-latest
1010
strategy:
11-
matrix:
12-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
11+
matrix: # only run tests on the min & max supported versions of Python
12+
python-version: ['3.9', '3.13']
1313
env:
1414
COVERAGE_OPTIONS: "-a"
1515

docs/requirements.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Requirements
44
Django
55
------
66
Supported Django versions are supported. Currently this list includes Django 4.2,
7-
5.0 and 5.1.
7+
5.0, 5.1 and 5.2.
88

99
Python
1010
------
11-
The following Python versions are supported: 3.8, 3.9, 3.10, 3.11 and 3.12 with a
11+
The following Python versions are supported: 3.9, 3.10, 3.11, 3.12 and 3.13 with a
1212
limit to what Django itself supports. As support for older Django versions is
1313
dropped, the minimum version might be raised. See also `What Python version can
1414
I use with Django?`_.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ maintainers = [
1515
{name = "Matt Molyneaux", email = "[email protected]"},
1616
]
1717
license = {text = "MIT"}
18-
requires-python = ">= 3.8"
18+
requires-python = ">= 3.9"
1919
dependencies = [
2020
"Django>=4.2",
2121
"django_otp>=0.8.0",
@@ -31,17 +31,18 @@ classifiers = [
3131
"Framework :: Django :: 4.2",
3232
"Framework :: Django :: 5.0",
3333
"Framework :: Django :: 5.1",
34+
"Framework :: Django :: 5.2",
3435
"Intended Audience :: Developers",
3536
"License :: OSI Approved :: MIT License",
3637
"Operating System :: OS Independent",
3738
"Programming Language :: Python",
3839
"Programming Language :: Python :: 3",
3940
"Programming Language :: Python :: 3 :: Only",
40-
"Programming Language :: Python :: 3.8",
4141
"Programming Language :: Python :: 3.9",
4242
"Programming Language :: Python :: 3.10",
4343
"Programming Language :: Python :: 3.11",
4444
"Programming Language :: Python :: 3.12",
45+
"Programming Language :: Python :: 3.13",
4546
"Topic :: Security",
4647
"Topic :: System :: Systems Administration :: Authentication/Directory",
4748
]
@@ -71,7 +72,7 @@ Changelog = "https://github.com/jazzband/django-two-factor-auth/blob/master/CHAN
7172

7273
[tool.ruff]
7374
line-length = 119
74-
target-version = "py38"
75+
target-version = "py39"
7576
extend-exclude = ["docs"]
7677

7778
[tool.ruff.lint]

requirements_e2e.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# test with selenium
2-
selenium~=4.16.0
2+
selenium~=4.30.0

tox.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
[tox]
22
envlist =
3-
py{38,39,310,311,312}-dj42-{normal,yubikey,custom_user,webauthn}
4-
py{310,311,312}-dj{50,51,main}-{normal,yubikey,custom_user,webauthn}
3+
py{39,310,311,312}-dj42-{normal,yubikey,custom_user,webauthn}
4+
py{310,311,312}-dj50-{normal,yubikey,custom_user,webauthn}
5+
py{310,311,312,313}-dj{51,52}-{normal,yubikey,custom_user,webauthn}
6+
py{312,313}-djmain-{normal,yubikey,custom_user,webauthn}
57

68
[gh-actions]
79
python =
8-
3.8: py38
910
3.9: py39
1011
3.10: py310
1112
3.11: py311
1213
3.12: py312
14+
3.13: py313
1315

1416
[gh-actions:env]
1517
DJANGO =
1618
4.2: dj42
1719
5.0: dj50
1820
5.1: dj51
21+
5.2: dj52
1922
main: djmain
2023
VARIANT =
2124
normal: normal
@@ -32,15 +35,16 @@ setenv =
3235
PYTHONWARNINGS=always
3336
custom_user: AUTH_USER_MODEL=tests.User
3437
basepython =
35-
py38: python3.8
3638
py39: python3.9
3739
py310: python3.10
3840
py311: python3.11
3941
py312: python3.12
42+
py313: python3.13
4043
deps =
4144
dj42: Django<5.0
4245
dj50: Django<5.1
4346
dj51: Django<5.2
47+
dj52: Django<5.3
4448
djmain: https://github.com/django/django/archive/main.tar.gz
4549
webauthn: -rrequirements_e2e.txt
4650
extras =

0 commit comments

Comments
 (0)