Skip to content

Commit ce45cad

Browse files
Add support for Python 3.10 (django-extensions#1684)
* Swap Python 3.10 for 3.9 in GH action workflows * add py310 to tox.ini * add Python 3.10 trove classifier
1 parent 6cdf84e commit ce45cad

File tree

7 files changed

+25
-17
lines changed

7 files changed

+25
-17
lines changed

.github/workflows/compile_catalog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python 3.x
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.9
19+
python-version: "3.10"
2020
- run: python -m pip install tox
2121
- name: Compile Catalog
2222
run: tox

.github/workflows/linters.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
- name: Set up Python 3.x
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.9
19+
python-version: "3.10"
2020
- run: python -m pip install tox
21-
- name: tox py39-flake8
21+
- name: tox py310-flake8
2222
run: tox
2323
env:
24-
TOXENV: py39-flake8
24+
TOXENV: py310-flake8
2525

2626
mypy:
2727
name: mypy
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Python 3.x
3333
uses: actions/setup-python@v2
3434
with:
35-
python-version: 3.9
35+
python-version: "3.10"
3636
- run: python -m pip install tox
3737
- name: tox mypy
3838
run: tox

.github/workflows/precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python 3.x
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.9
19+
python-version: "3.10"
2020
- run: python -m pip install tox
2121
- name: tox precommit
2222
run: tox

.github/workflows/pytest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- 3.7
1919
- 3.8
2020
- 3.9
21+
- "3.10"
2122
- pypy3
2223
tox-django-version:
2324
- "22"
@@ -58,7 +59,7 @@ jobs:
5859
max-parallel: 4
5960
matrix:
6061
python-version:
61-
- 3.9
62+
- "3.10"
6263
tox-django-version:
6364
- "32"
6465
steps:

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python 3.x
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.9
19+
python-version: "3.10"
2020
- run: python -m pip install tox
2121
- name: safety
2222
run: tox

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def fullsplit(path, result=None):
127127
'Programming Language :: Python :: 3.7',
128128
'Programming Language :: Python :: 3.8',
129129
'Programming Language :: Python :: 3.9',
130+
'Programming Language :: Python :: 3.10',
130131
'Programming Language :: Python :: Implementation :: CPython',
131132
'Programming Language :: Python :: Implementation :: PyPy',
132133
'Topic :: Utilities',

tox.ini

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ envlist =
88
precommit
99
safety
1010
mypy
11-
{py37,py38,py39}-flake8
12-
{py36,py37,py38,py39,pypy}-dj22
13-
{py36,py37,py38,py39,pypy}-dj30
14-
{py36,py37,py38,py39,pypy}-dj31
15-
{py36,py37,py38,py39,pypy}-dj32
16-
{py38,py39,pypy}-djmaster
17-
py39-dj32-postgres
18-
py39-dj32-mysql
19-
py39-djmaster-postgres
11+
{py37,py38,py39,py310}-flake8
12+
{py36,py37,py38,py39,py310,pypy}-dj22
13+
{py36,py37,py38,py39,py310,pypy}-dj30
14+
{py36,py37,py38,py39,py310,pypy}-dj31
15+
{py36,py37,py38,py39,py310,pypy}-dj32
16+
{py38,py39,py310,pypy}-djmaster
17+
py310-dj32-postgres
18+
py310-dj32-mysql
19+
py310-djmaster-postgres
2020

2121
[testenv]
2222
commands = make test
@@ -91,3 +91,9 @@ deps =
9191
pip >= 21.1
9292
flake8
9393
commands = flake8 django_extensions tests
94+
95+
[testenv:py310-flake8]
96+
deps =
97+
pip >= 21.1
98+
flake8
99+
commands = flake8 django_extensions tests

0 commit comments

Comments
 (0)