Skip to content

Commit 91e9dab

Browse files
authored
Add support for python 3.12 (#336)
Related: ansible/team-devtools#143
1 parent 7ae09fc commit 91e9dab

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: coactions/dynamic-matrix@v1
2424
with:
2525
min_python: "3.9"
26-
max_python: "3.11"
26+
max_python: "3.12"
2727
other_names: |
2828
lint
2929
docs

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.9",
2828
"Programming Language :: Python :: 3.10",
2929
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
3031
"Programming Language :: Python",
3132
"Topic :: System :: Systems Administration",
3233
"Topic :: Software Development :: Bug Tracking",
@@ -119,7 +120,12 @@ disable = [
119120

120121
[tool.pytest.ini_options]
121122
# ensure we treat warnings as error
122-
filterwarnings = ["error"]
123+
filterwarnings = [
124+
"error",
125+
# py312 ansible-core
126+
# https://github.com/ansible/ansible/issues/81906
127+
"ignore:'importlib.abc.TraversableResources' is deprecated and slated for removal in Python 3.14:DeprecationWarning",
128+
]
123129
testpaths = ["test"]
124130

125131
[tool.ruff]

0 commit comments

Comments
 (0)