From 90028d532e6aa87e289779f1d1a03d446e5117ad Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 19 Oct 2024 16:53:38 +0200 Subject: [PATCH] Add Python 3.13 to CI and supported Python versions. (#59) --- .github/workflows/nox.yml | 8 ++++---- changelogs/fragments/python-3.13.yml | 2 ++ noxfile.py | 4 ++-- pyproject.toml | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 changelogs/fragments/python-3.13.yml diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index 7cbc889..a4a1de5 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -29,19 +29,19 @@ jobs: matrix: include: - session: test - python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12" - other-args: "-p 3.7 3.8 3.9 3.10 3.11 3.12" + python-versions: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13" + other-args: "-p 3.7 3.8 3.9 3.10 3.11 3.12 3.13" codecov: true packages: "" - session: lint - python-versions: "3.12" + python-versions: "3.13" other-args: "" codecov: false packages: "" - session: create_vectors - python-versions: "3.12" + python-versions: "3.13" other-args: "" codecov: false packages: "" diff --git a/changelogs/fragments/python-3.13.yml b/changelogs/fragments/python-3.13.yml new file mode 100644 index 0000000..7d5eaf0 --- /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-docs-parser/pull/59). diff --git a/noxfile.py b/noxfile.py index 5010412..825deb3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -33,12 +33,12 @@ def install(session: nox.Session, *args, editable=False, **kwargs): session.install(*args, "-U", **kwargs) -@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]) def test(session: nox.Session): install(session, ".[test, coverage]", editable=True) covfile = Path(session.create_tmp(), ".coverage") more_args = [] - if session.python in ("3.11", "3.12"): + if session.python in {"3.11", "3.12", "3.13"}: more_args.append("--error-for-skips") session.run( "pytest", diff --git a/pyproject.toml b/pyproject.toml index 47cca90..4bef9f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Typing :: Typed", ]