Skip to content

test: Python 3.11 #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"
- 3.x
category:
- local-slow
Expand Down Expand Up @@ -69,3 +71,24 @@ jobs:
env:
TOXENV: ${{ matrix.category }}
run: tox -- -vv
upstream-py311:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
category:
- nocmk
- sourcebuildcheck
- test-upstream-requirements-py311
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.11"
- run: |
python -m pip install --upgrade pip
pip install --upgrade -r dev_requirements/ci-requirements.txt
- name: run test
env:
TOXENV: ${{ matrix.category }}
run: tox -- -vv
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def get_requirements():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Security :: Cryptography",
Expand Down
39 changes: 39 additions & 0 deletions test/upstream-requirements-py311.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
attrs==22.2.0
boto3==1.20.51
botocore==1.23.51
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.0.1
coverage==7.0.5
cryptography==39.0.0
execnet==1.9.0
hypothesis==6.31.6
idna==3.4
iniconfig==2.0.0
Jinja2==3.1.2
jmespath==0.10.0
MarkupSafe==2.1.2
mock==4.0.3
moto==3.0.2
packaging==23.0
pluggy==1.0.0
py==1.11.0
pycparser==2.21
pytest==7.0.0
pytest-cov==3.0.0
pytest-forked==1.4.0
pytest-mock==3.10.0
pytest-xdist==2.5.0
python-dateutil==2.8.2
pytz==2022.7.1
requests==2.28.2
responses==0.22.0
s3transfer==0.5.2
six==1.16.0
sortedcontainers==2.4.0
toml==0.10.2
tomli==2.0.1
types-toml==0.10.8.1
urllib3==1.26.14
Werkzeug==2.2.2
xmltodict==0.13.0
70 changes: 35 additions & 35 deletions test/upstream-requirements-py37.txt
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
attrs==21.2.0
boto3==1.18.12
botocore==1.21.12
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.0.4
coverage==5.5
cryptography==3.4.7
attrs==22.2.0
boto3==1.20.51
botocore==1.23.51
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.0.1
coverage==7.0.5
cryptography==39.0.0
execnet==1.9.0
hypothesis==5.49.0
idna==3.2
importlib-metadata==4.6.3
iniconfig==1.1.1
Jinja2==3.0.1
hypothesis==6.31.6
idna==3.4
importlib-metadata==6.0.0
iniconfig==2.0.0
Jinja2==3.1.2
jmespath==0.10.0
MarkupSafe==2.0.1
MarkupSafe==2.1.2
mock==4.0.3
more-itertools==8.8.0
moto==2.2.1
packaging==21.0
pluggy==0.13.1
py==1.10.0
pycparser==2.20
pyparsing==2.4.7
pytest==6.2.4
pytest-cov==2.12.1
pytest-forked==1.3.0
pytest-mock==3.6.1
pytest-xdist==2.3.0
moto==3.0.2
packaging==23.0
pluggy==1.0.0
py==1.11.0
pycparser==2.21
pytest==7.0.0
pytest-cov==3.0.0
pytest-forked==1.4.0
pytest-mock==3.10.0
pytest-xdist==2.5.0
python-dateutil==2.8.2
pytz==2021.1
requests==2.26.0
responses==0.13.3
s3transfer==0.5.0
pytz==2022.7.1
requests==2.28.2
responses==0.22.0
s3transfer==0.5.2
six==1.16.0
sortedcontainers==2.4.0
toml==0.10.2
typing-extensions==3.10.0.0
urllib3==1.26.6
Werkzeug==2.0.1
xmltodict==0.12.0
zipp==3.5.0
tomli==2.0.1
types-toml==0.10.8.1
typing_extensions==4.4.0
urllib3==1.26.14
Werkzeug==2.2.2
xmltodict==0.13.0
zipp==3.11.0
22 changes: 20 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
envlist =
py{37,38,39,310}-{local,integ,ddb,examples}-fast,
py{37,38,39,310,311}-{local,integ,ddb,examples}-fast,
nocmk, sourcebuildcheck,
docs, bandit, doc8, readme,
flake8{,-tests,-examples}, pylint{,-tests,-examples},
vulture,
test-upstream-requirements-py{2,3}7
test-upstream-requirements-py3{11,7}

# Additional environments:
#
Expand Down Expand Up @@ -126,6 +126,15 @@ recreate = {[testenv:freeze-upstream-requirements-base]recreate}
deps = {[testenv:freeze-upstream-requirements-base]deps}
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py37.txt

# Freeze for Python 3.11
[testenv:freeze-upstream-requirements-py311]
basepython = python3.11
sitepackages = {[testenv:freeze-upstream-requirements-base]sitepackages}
skip_install = {[testenv:freeze-upstream-requirements-base]skip_install}
recreate = {[testenv:freeze-upstream-requirements-base]recreate}
deps = {[testenv:freeze-upstream-requirements-base]deps}
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py311.txt

# Test frozen upstream requirements
[testenv:test-upstream-requirements-base]
sitepackages = False
Expand All @@ -142,6 +151,15 @@ sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
recreate = {[testenv:test-upstream-requirements-base]recreate}
commands = {[testenv:test-upstream-requirements-base]commands}

# Test frozen upstream requirements for Python 3.11
[testenv:test-upstream-requirements-py311]
basepython = python3.11
passenv =
deps = -rtest/upstream-requirements-py311.txt
sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
recreate = {[testenv:test-upstream-requirements-base]recreate}
commands = {[testenv:test-upstream-requirements-base]commands}

# Verify that tests can be successfully run from the source build.
[testenv:sourcebuildcheck]
basepython = python3
Expand Down