From 09d01bd16c6280ce9f45f102e8c5923cbbc93c58 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 5 Oct 2024 02:08:15 -0400 Subject: [PATCH] chore: add 3.13 classifier and test Signed-off-by: Henry Schreiner --- .github/workflows/ci.yml | 3 ++- noxfile.py | 14 ++++++++------ pyproject.toml | 1 + 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95f4ef22..c5ec2d47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ['3.8', '3.10', '3.12'] + python-version: ['3.8', '3.10', '3.13'] include: - {os: macos-13, python-version: '3.9'} - {os: windows-latest, python-version: '3.8'} @@ -48,6 +48,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - uses: astral-sh/setup-uv@v3 diff --git a/noxfile.py b/noxfile.py index c3215771..8a61702a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -4,13 +4,15 @@ import nox -nox.options.sessions = ["lint", "pylint", "tests"] - -PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] - nox.needs_version = ">=2024.4.15" nox.options.default_venv_backend = "uv|virtualenv" +ALL_PYTHONS = [ + c.split()[-1] + for c in nox.project.load_toml("pyproject.toml")["project"]["classifiers"] + if c.startswith("Programming Language :: Python :: 3.") +] + @nox.session def lint(session): @@ -29,13 +31,13 @@ def pylint(session: nox.Session) -> None: session.run("pylint", "src", *session.posargs) -@nox.session(python=PYTHON_VERSIONS) +@nox.session(python=ALL_PYTHONS) def tests(session): session.install("-y.[test]") session.run("pytest", *session.posargs) -@nox.session +@nox.session(default=False) def build(session): """ Build an SDist and wheel. diff --git a/pyproject.toml b/pyproject.toml index 21c6e5bc..93c782b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering", ] dependencies = [