Skip to content

Commit ee54d81

Browse files
authored
feat: add support for python3.12 and 3.13 (#1087)
1 parent e2a2cfd commit ee54d81

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

.github/workflows/test-and-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
timeout-minutes: 20
1818
strategy:
1919
matrix:
20-
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ]
20+
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' , '3.13']
2121
env:
2222
DOCKER_LOGIN: ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }}
2323
steps:

Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ venv: clean
66
virtualenv --python=python venv
77

88
install: venv
9+
. venv/bin/activate; pip install -r test/requirements.txt
910
. venv/bin/activate; python setup.py install
1011
. venv/bin/activate; pip install -r requirements.txt
1112

12-
test-install: install
13-
. venv/bin/activate; pip install -r test/requirements.txt
14-
15-
test: test-install
13+
test: install
1614
. venv/bin/activate; coverage run -m unittest discover -s test/unit
1715

1816
test-integ: test

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ def getRequires():
4141
'Programming Language :: Python :: 3.9',
4242
'Programming Language :: Python :: 3.10',
4343
'Programming Language :: Python :: 3.11',
44+
'Programming Language :: Python :: 3.12',
45+
'Programming Language :: Python :: 3.13',
4446
]
4547
)

test/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ coverage
55
mock
66
itsdangerous==1.1.0
77
markupsafe==1.1.1
8+
setuptools

tox.ini

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py34, py35, py36, py37
7+
envlist = py27, py34, py35, py36, py37, py38, py39, py310, py311, py312, py313
88

99
[testenv]
1010
commands = coverage erase
@@ -39,3 +39,33 @@ basepython = python3.6
3939
commands = {[testenv]commands}
4040
deps = {[testenv]deps}
4141
basepython = python3.7
42+
43+
[testenv:py38]
44+
commands = {[testenv]commands}
45+
deps = {[testenv]deps}
46+
basepython = python3.8
47+
48+
[testenv:py39]
49+
commands = {[testenv]commands}
50+
deps = {[testenv]deps}
51+
basepython = python3.9
52+
53+
[testenv:py310]
54+
commands = {[testenv]commands}
55+
deps = {[testenv]deps}
56+
basepython = python3.10
57+
58+
[testenv:py311]
59+
commands = {[testenv]commands}
60+
deps = {[testenv]deps}
61+
basepython = python3.11
62+
63+
[testenv:py312]
64+
commands = {[testenv]commands}
65+
deps = {[testenv]deps}
66+
basepython = python3.12
67+
68+
[testenv:py313]
69+
commands = {[testenv]commands}
70+
deps = {[testenv]deps}
71+
basepython = python3.13

0 commit comments

Comments
 (0)