Skip to content

Commit c659e38

Browse files
committed
Drop python 3.6 and 3.7 and add 3.11 support
Signed-off-by: Simo Sorce <[email protected]>
1 parent 6c61f42 commit c659e38

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"fail-fast": false,
1515
"matrix": {
1616
"name": [
17-
"python-37",
1817
"python-38",
1918
"python-39",
2019
"python-310",
20+
"python-311",
2121
"doc",
2222
"doctest",
2323
"sphinx",
@@ -26,12 +26,6 @@
2626
"codespell",
2727
],
2828
"include": [
29-
{
30-
"name": "python-37",
31-
"python": "3.7",
32-
"toxenv": "py37",
33-
"arch": "x64",
34-
},
3529
{
3630
"name": "python-38",
3731
"python": "3.8",
@@ -50,39 +44,45 @@
5044
"toxenv": "py310",
5145
"arch": "x64",
5246
},
47+
{
48+
"name": "python-311",
49+
"python": "3.11",
50+
"toxenv": "py311",
51+
"arch": "x64",
52+
},
5353
{
5454
"name": "doc",
55-
"python": "3.10",
55+
"python": "3.11",
5656
"toxenv": "doc",
5757
"arch": "x64",
5858
},
5959
{
6060
"name": "doctest",
61-
"python": "3.10",
61+
"python": "3.11",
6262
"toxenv": "doctest",
6363
"arch": "x64",
6464
},
6565
{
6666
"name": "sphinx",
67-
"python": "3.10",
67+
"python": "3.11",
6868
"toxenv": "sphinx",
6969
"arch": "x64",
7070
},
7171
{
7272
"name": "lint",
73-
"python": "3.10",
73+
"python": "3.11",
7474
"toxenv": "lint",
7575
"arch": "x64",
7676
},
7777
{
7878
"name": "pep8",
79-
"python": "3.10",
79+
"python": "3.11",
8080
"toxenv": "pep8",
8181
"arch": "x64",
8282
},
8383
{
8484
"name": "codespell",
85-
"python": "3.10",
85+
"python": "3.11",
8686
"toxenv": "codespell",
8787
"arch": "x64",
8888
},

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ testlong: export JWCRYPTO_TESTS_ENABLE_MMA=True
2020
testlong: export TOX_TESTENV_PASSENV=JWCRYPTO_TESTS_ENABLE_MMA
2121
testlong:
2222
rm -f .coverage
23-
tox -e py310
23+
tox -e py311
2424

2525
test:
2626
rm -f .coverage
2727
tox -e py38 --skip-missing-interpreter
2828
tox -e py39 --skip-missing-interpreter
2929
tox -e py310 --skip-missing-interpreter
30+
tox -e py311 --skip-missing-interpreter
3031

3132
DOCS_DIR = docs
3233
.PHONY: docs

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626
long_description=long_description,
2727
long_description_content_type='text/markdown',
2828
classifiers = [
29-
'Programming Language :: Python :: 3.6',
30-
'Programming Language :: Python :: 3.7',
3129
'Programming Language :: Python :: 3.8',
3230
'Programming Language :: Python :: 3.9',
3331
'Programming Language :: Python :: 3.10',
32+
'Programming Language :: Python :: 3.11',
3433
'Intended Audience :: Developers',
3534
'Topic :: Security',
3635
'Topic :: Software Development :: Libraries :: Python Modules'
@@ -40,5 +39,5 @@
4039
'cryptography >= 3.4',
4140
'typing_extensions',
4241
],
43-
python_requires = '>= 3.6',
42+
python_requires = '>= 3.8',
4443
)

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint,py36,py37,py38,py39,py310,pep8,doc,sphinx,doctest
2+
envlist = lint,py38,py39,py310,py311,pep8,doc,sphinx,doctest
33
skip_missing_interpreters = true
44

55
[testenv]
@@ -16,15 +16,15 @@ commands =
1616
{envpython} -m coverage report -m
1717

1818
[testenv:lint]
19-
basepython = python3.10
19+
basepython = python3.11
2020
deps =
2121
pylint
2222
#sitepackages = True
2323
commands =
2424
{envpython} -m pylint -d c,r,i,W0613 -r n -f colorized --notes= --disable=star-args ./jwcrypto
2525

2626
[testenv:pep8]
27-
basepython = python3.10
27+
basepython = python3.11
2828
deps =
2929
flake8
3030
flake8-import-order
@@ -37,29 +37,29 @@ deps =
3737
doc8
3838
docutils
3939
markdown
40-
basepython = python3.10
40+
basepython = python3.11
4141
commands =
4242
doc8 --allow-long-titles README.md
4343
markdown_py README.md -f {toxworkdir}/README.md.html
4444

4545
[testenv:sphinx]
46-
basepython = python3.10
46+
basepython = python3.11
4747
changedir = docs/source
4848
deps =
4949
sphinx
5050
commands =
5151
sphinx-build -n -v -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
5252

5353
[testenv:doctest]
54-
basepython = python3.10
54+
basepython = python3.11
5555
changedir = docs/source
5656
deps =
5757
sphinx
5858
commands =
5959
sphinx-build -v -W -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest
6060

6161
[testenv:codespell]
62-
basepython = python3.10
62+
basepython = python3.11
6363
deps =
6464
codespell
6565
commands =

0 commit comments

Comments
 (0)