From 439a7e6cf109e36531480dba544ed8edcacb8b06 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 5 Nov 2024 17:58:18 +0000 Subject: [PATCH] Add support for py313 --- .github/workflows/tox.yml | 3 +++ pyproject.toml | 1 + src/tox_ansible/plugin.py | 5 +++-- tests/unit/test_type.py | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index d71276f..38f4654 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -17,3 +17,6 @@ concurrency: jobs: tox: uses: ansible/team-devtools/.github/workflows/tox.yml@main + with: + max_python: "3.13" + jobs_producing_coverage: 7 diff --git a/pyproject.toml b/pyproject.toml index b296fd6..3f9ae55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy' ] diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index d97ec82..a04833a 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -42,8 +42,9 @@ ENV_LIST = """ {integration, sanity, unit}-py3.9-{2.15} {integration, sanity, unit}-py3.10-{2.15, 2.16, 2.17} -{integration, sanity, unit}-py3.11-{2.15, 2.16, 2.17, milestone, devel} -{integration, sanity, unit}-py3.12-{2.16, 2.17, milestone, devel} +{integration, sanity, unit}-py3.11-{2.15, 2.16, 2.17, 2.18, milestone, devel} +{integration, sanity, unit}-py3.12-{2.16, 2.17, 2.18, milestone, devel} +{integration, sanity, unit}-py3.13-{2.18, milestone, devel} """ TOX_WORK_DIR = Path() OUR_DEPS = [ diff --git a/tests/unit/test_type.py b/tests/unit/test_type.py index 56b7109..4cce770 100644 --- a/tests/unit/test_type.py +++ b/tests/unit/test_type.py @@ -32,7 +32,7 @@ def test_type_current( monkeypatch: pytest fixture to patch modules module_fixture_dir: pytest fixture to provide a module specific fixture directory """ - matrix_length = 33 + matrix_length = 51 monkeypatch.delenv("GITHUB_ACTIONS", raising=False) monkeypatch.delenv("GITHUB_OUTPUT", raising=False) monkeypatch.chdir(module_fixture_dir)