Skip to content

Commit 7beca93

Browse files
Add support for Python 3.11 (#3621)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4a54848 commit 7beca93

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.github/workflows/tox.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
PREFIX: PYTEST_REQPASS=461
3939
python-version: "3.10"
4040
cover: true
41+
- tox_env: py311
42+
os: ubuntu-20.04
43+
python-version: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713
44+
cover: true
4145
- tox_env: py38-devel
4246
PREFIX: PYTEST_REQPASS=461
4347
python-version: 3.8

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ repos:
7474
entry: mypy src/
7575
pass_filenames: false
7676
additional_dependencies:
77-
- ansible-compat>=2.1.0
77+
- ansible-compat>=2.2.0
7878
- click>=8.0.1
7979
- enrich>=1.2.7
8080
- importlib-metadata>=4.6.1
@@ -91,7 +91,7 @@ repos:
9191
hooks:
9292
- id: pylint
9393
additional_dependencies:
94-
- ansible-compat>=2.1.0
94+
- ansible-compat>=2.2.0
9595
- cerberus
9696
- click
9797
- click-help-colors

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ junit_suite_name = "molecule_test_suite"
4343
testpaths = "src/molecule/test/"
4444
filterwarnings = [
4545
# treat warnings as errors unless we add them below
46-
"error"
46+
"error",
47+
# https://github.com/certifi/python-certifi/pull/193
48+
"ignore:path is deprecated.*:DeprecationWarning",
4749
# ignore::UserWarning
50+
4851
]
4952

5053
[tool.setuptools_scm]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pytest==7.1.2
5252
pytest-cov==3.0.0
5353
pytest-forked==1.4.0
5454
pytest-html==3.1.1
55-
pytest-metadata==2.0.1
55+
pytest-metadata==2.0.2
5656
pytest-mock==3.7.0
5757
pytest-plus==0.2
5858
pytest-testinfra==6.7.0

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ classifiers =
3737
Programming Language :: Python :: 3.8
3838
Programming Language :: Python :: 3.9
3939
Programming Language :: Python :: 3.10
40+
Programming Language :: Python :: 3.11
4041

4142
Topic :: System :: Systems Administration
4243
Topic :: Utilities
@@ -57,7 +58,7 @@ zip_safe = False
5758

5859
# These are required in actual runtime:
5960
install_requires =
60-
ansible-compat >= 2.1.0
61+
ansible-compat >= 2.2.0
6162
cerberus >= 1.3.1, !=1.3.3, !=1.3.4
6263
click >= 8.0, < 9
6364
click-help-colors >= 0.9

0 commit comments

Comments
 (0)