From c3b3b270e0ccdfe07ff0fc360282917c438387a4 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 19 Oct 2024 16:53:27 +0200 Subject: [PATCH] Add Python 3.13 to CI and supported Python versions. (#180) --- .github/workflows/nox.yml | 6 +++--- changelogs/fragments/python-3.13.yml | 2 ++ noxfile.py | 4 ++-- pyproject.toml | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 changelogs/fragments/python-3.13.yml diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index 1b9505b..65e7c57 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -29,17 +29,17 @@ jobs: matrix: include: - session: test - python-versions: "3.9, 3.10, 3.11, 3.12" + python-versions: "3.9, 3.10, 3.11, 3.12, 3.13" codecov: true packages: "" - session: integration - python-versions: "3.12" + python-versions: "3.13" codecov: true packages: "" - session: lint - python-versions: "3.12" + python-versions: "3.13" codecov: false packages: "" name: "Run nox ${{ matrix.session }} session" diff --git a/changelogs/fragments/python-3.13.yml b/changelogs/fragments/python-3.13.yml new file mode 100644 index 0000000..db52060 --- /dev/null +++ b/changelogs/fragments/python-3.13.yml @@ -0,0 +1,2 @@ +minor_changes: + - Declare support for Python 3.13 (https://github.com/ansible-community/antsibull-changelog/pull/180). diff --git a/noxfile.py b/noxfile.py index b300124..206ace5 100644 --- a/noxfile.py +++ b/noxfile.py @@ -70,12 +70,12 @@ def other_antsibull( return to_install -@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"]) def test(session: nox.Session): install(session, ".[test, coverage]", *other_antsibull(), editable=True) covfile = Path(session.create_tmp(), ".coverage") more_args = [] - if session.python == "3.12": + if session.python in {"3.12", "3.13"}: more_args.append("--error-for-skips") session.run( "pytest", diff --git a/pyproject.toml b/pyproject.toml index 078511e..5681b89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Typing :: Typed", ] dependencies = [