Skip to content

Commit a2e993f

Browse files
authored
test: Python 3.11 (#528)
1 parent 35ee30a commit a2e993f

File tree

5 files changed

+119
-37
lines changed

5 files changed

+119
-37
lines changed

.github/workflows/ci_tests.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- 3.7
2929
- 3.8
3030
- 3.9
31+
- "3.10"
32+
- "3.11"
3133
- 3.x
3234
category:
3335
- local-slow
@@ -69,3 +71,24 @@ jobs:
6971
env:
7072
TOXENV: ${{ matrix.category }}
7173
run: tox -- -vv
74+
upstream-py311:
75+
runs-on: ubuntu-latest
76+
strategy:
77+
fail-fast: true
78+
matrix:
79+
category:
80+
- nocmk
81+
- sourcebuildcheck
82+
- test-upstream-requirements-py311
83+
steps:
84+
- uses: actions/checkout@v3
85+
- uses: actions/setup-python@v3
86+
with:
87+
python-version: "3.11"
88+
- run: |
89+
python -m pip install --upgrade pip
90+
pip install --upgrade -r dev_requirements/ci-requirements.txt
91+
- name: run test
92+
env:
93+
TOXENV: ${{ matrix.category }}
94+
run: tox -- -vv

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def get_requirements():
5151
"Programming Language :: Python :: 3.7",
5252
"Programming Language :: Python :: 3.8",
5353
"Programming Language :: Python :: 3.9",
54+
"Programming Language :: Python :: 3.10",
55+
"Programming Language :: Python :: 3.11",
5456
"Programming Language :: Python :: Implementation :: CPython",
5557
"Topic :: Security",
5658
"Topic :: Security :: Cryptography",

test/upstream-requirements-py311.txt

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
attrs==22.2.0
2+
boto3==1.20.51
3+
botocore==1.23.51
4+
certifi==2022.12.7
5+
cffi==1.15.1
6+
charset-normalizer==3.0.1
7+
coverage==7.0.5
8+
cryptography==39.0.0
9+
execnet==1.9.0
10+
hypothesis==6.31.6
11+
idna==3.4
12+
iniconfig==2.0.0
13+
Jinja2==3.1.2
14+
jmespath==0.10.0
15+
MarkupSafe==2.1.2
16+
mock==4.0.3
17+
moto==3.0.2
18+
packaging==23.0
19+
pluggy==1.0.0
20+
py==1.11.0
21+
pycparser==2.21
22+
pytest==7.0.0
23+
pytest-cov==3.0.0
24+
pytest-forked==1.4.0
25+
pytest-mock==3.10.0
26+
pytest-xdist==2.5.0
27+
python-dateutil==2.8.2
28+
pytz==2022.7.1
29+
requests==2.28.2
30+
responses==0.22.0
31+
s3transfer==0.5.2
32+
six==1.16.0
33+
sortedcontainers==2.4.0
34+
toml==0.10.2
35+
tomli==2.0.1
36+
types-toml==0.10.8.1
37+
urllib3==1.26.14
38+
Werkzeug==2.2.2
39+
xmltodict==0.13.0

test/upstream-requirements-py37.txt

+35-35
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
attrs==21.2.0
2-
boto3==1.18.12
3-
botocore==1.21.12
4-
certifi==2021.5.30
5-
cffi==1.14.6
6-
charset-normalizer==2.0.4
7-
coverage==5.5
8-
cryptography==3.4.7
1+
attrs==22.2.0
2+
boto3==1.20.51
3+
botocore==1.23.51
4+
certifi==2022.12.7
5+
cffi==1.15.1
6+
charset-normalizer==3.0.1
7+
coverage==7.0.5
8+
cryptography==39.0.0
99
execnet==1.9.0
10-
hypothesis==5.49.0
11-
idna==3.2
12-
importlib-metadata==4.6.3
13-
iniconfig==1.1.1
14-
Jinja2==3.0.1
10+
hypothesis==6.31.6
11+
idna==3.4
12+
importlib-metadata==6.0.0
13+
iniconfig==2.0.0
14+
Jinja2==3.1.2
1515
jmespath==0.10.0
16-
MarkupSafe==2.0.1
16+
MarkupSafe==2.1.2
1717
mock==4.0.3
18-
more-itertools==8.8.0
19-
moto==2.2.1
20-
packaging==21.0
21-
pluggy==0.13.1
22-
py==1.10.0
23-
pycparser==2.20
24-
pyparsing==2.4.7
25-
pytest==6.2.4
26-
pytest-cov==2.12.1
27-
pytest-forked==1.3.0
28-
pytest-mock==3.6.1
29-
pytest-xdist==2.3.0
18+
moto==3.0.2
19+
packaging==23.0
20+
pluggy==1.0.0
21+
py==1.11.0
22+
pycparser==2.21
23+
pytest==7.0.0
24+
pytest-cov==3.0.0
25+
pytest-forked==1.4.0
26+
pytest-mock==3.10.0
27+
pytest-xdist==2.5.0
3028
python-dateutil==2.8.2
31-
pytz==2021.1
32-
requests==2.26.0
33-
responses==0.13.3
34-
s3transfer==0.5.0
29+
pytz==2022.7.1
30+
requests==2.28.2
31+
responses==0.22.0
32+
s3transfer==0.5.2
3533
six==1.16.0
3634
sortedcontainers==2.4.0
3735
toml==0.10.2
38-
typing-extensions==3.10.0.0
39-
urllib3==1.26.6
40-
Werkzeug==2.0.1
41-
xmltodict==0.12.0
42-
zipp==3.5.0
36+
tomli==2.0.1
37+
types-toml==0.10.8.1
38+
typing_extensions==4.4.0
39+
urllib3==1.26.14
40+
Werkzeug==2.2.2
41+
xmltodict==0.13.0
42+
zipp==3.11.0

tox.ini

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310}-{local,integ,ddb,examples}-fast,
3+
py{37,38,39,310,311}-{local,integ,ddb,examples}-fast,
44
nocmk, sourcebuildcheck,
55
docs, bandit, doc8, readme,
66
flake8{,-tests,-examples}, pylint{,-tests,-examples},
77
vulture,
8-
test-upstream-requirements-py{2,3}7
8+
test-upstream-requirements-py3{11,7}
99

1010
# Additional environments:
1111
#
@@ -126,6 +126,15 @@ recreate = {[testenv:freeze-upstream-requirements-base]recreate}
126126
deps = {[testenv:freeze-upstream-requirements-base]deps}
127127
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py37.txt
128128

129+
# Freeze for Python 3.11
130+
[testenv:freeze-upstream-requirements-py311]
131+
basepython = python3.11
132+
sitepackages = {[testenv:freeze-upstream-requirements-base]sitepackages}
133+
skip_install = {[testenv:freeze-upstream-requirements-base]skip_install}
134+
recreate = {[testenv:freeze-upstream-requirements-base]recreate}
135+
deps = {[testenv:freeze-upstream-requirements-base]deps}
136+
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py311.txt
137+
129138
# Test frozen upstream requirements
130139
[testenv:test-upstream-requirements-base]
131140
sitepackages = False
@@ -142,6 +151,15 @@ sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
142151
recreate = {[testenv:test-upstream-requirements-base]recreate}
143152
commands = {[testenv:test-upstream-requirements-base]commands}
144153

154+
# Test frozen upstream requirements for Python 3.11
155+
[testenv:test-upstream-requirements-py311]
156+
basepython = python3.11
157+
passenv =
158+
deps = -rtest/upstream-requirements-py311.txt
159+
sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
160+
recreate = {[testenv:test-upstream-requirements-base]recreate}
161+
commands = {[testenv:test-upstream-requirements-base]commands}
162+
145163
# Verify that tests can be successfully run from the source build.
146164
[testenv:sourcebuildcheck]
147165
basepython = python3

0 commit comments

Comments
 (0)