From 0706c31286ae7bcc31c251622b003fde7e91a3a5 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 4 Oct 2023 17:09:42 +0100 Subject: [PATCH] Add support for python 3.12 Related: https://github.com/ansible/devtools/issues/143 Related: https://github.com/ansible/ansible/pull/80968 Related: https://github.com/ansible/ansible/issues/81906 --- .github/workflows/tox.yml | 2 +- pyproject.toml | 6 ++++++ src/ansiblelint/schemas/__store__.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 74a036f202..1a3903a6b0 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -29,7 +29,7 @@ jobs: uses: coactions/dynamic-matrix@v1 with: min_python: "3.9" - max_python: "3.11" + max_python: "3.12" other_names: | lint pkg diff --git a/pyproject.toml b/pyproject.toml index f32d1d9bf3..538bedeb40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,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 :: 3 :: Only", "Programming Language :: Python", "Topic :: System :: Systems Administration", @@ -192,6 +193,11 @@ filterwarnings = [ "ignore:pkg_resources is deprecated as an API:DeprecationWarning", # We raise one non critical warning from our own conftest.py: "always::pytest.PytestWarning", + # 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", + # https://github.com/ansible/ansible/pull/80968 + "ignore:Attribute s is deprecated and will be removed in Python 3.14; use value instead:DeprecationWarning", ] junit_duration_report = "call" # Our github annotation parser from .github/workflows/tox.yml requires xunit1 format. Ref: diff --git a/src/ansiblelint/schemas/__store__.json b/src/ansiblelint/schemas/__store__.json index d2d0c84585..4ea5192da4 100644 --- a/src/ansiblelint/schemas/__store__.json +++ b/src/ansiblelint/schemas/__store__.json @@ -16,7 +16,7 @@ "url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/execution-environment.json" }, "galaxy": { - "etag": "a842f41dee838f4cf19d24d5b056a785fd2ea3449bbd899f82b6ba41ba1068db", + "etag": "0c5cc710484efd1710e4edce8201005cab93c21275dd743f67318f771afe98b6", "url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/galaxy.json" }, "inventory": {