From 91e9dabdfdef2a308f74ccdfc40a55a760a6e96a Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 11 Oct 2023 11:18:32 +0100 Subject: [PATCH] Add support for python 3.12 (#336) Related: https://github.com/ansible/devtools/issues/143 --- .github/workflows/tox.yml | 2 +- pyproject.toml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 38bec9ba..6079cddc 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -23,7 +23,7 @@ jobs: uses: coactions/dynamic-matrix@v1 with: min_python: "3.9" - max_python: "3.11" + max_python: "3.12" other_names: | lint docs diff --git a/pyproject.toml b/pyproject.toml index f6cb72f7..bceed42c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: System :: Systems Administration", "Topic :: Software Development :: Bug Tracking", @@ -119,7 +120,12 @@ disable = [ [tool.pytest.ini_options] # ensure we treat warnings as error -filterwarnings = ["error"] +filterwarnings = [ + "error", + # py312 ansible-core + # https://github.com/ansible/ansible/issues/81906 + "ignore:'importlib.abc.TraversableResources' is deprecated and slated for removal in Python 3.14:DeprecationWarning", +] testpaths = ["test"] [tool.ruff]