Skip to content

Commit d7b1215

Browse files
committed
feat: add support for python3.12
1 parent 9515dce commit d7b1215

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-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' ]
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

+1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ 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',
4445
]
4546
)

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

+6-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, py312
88

99
[testenv]
1010
commands = coverage erase
@@ -39,3 +39,8 @@ basepython = python3.6
3939
commands = {[testenv]commands}
4040
deps = {[testenv]deps}
4141
basepython = python3.7
42+
43+
[testenv:py312]
44+
commands = {[testenv]commands}
45+
deps = {[testenv]deps}
46+
basepython = python3.12

0 commit comments

Comments
 (0)