From 09d01bd16c6280ce9f45f102e8c5923cbbc93c58 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 5 Oct 2024 02:08:15 -0400 Subject: [PATCH 1/2] 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 95f4ef2..c5ec2d4 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 c321577..8a61702 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 21c6e5b..93c782b 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 = [ From b7f0df2cfba84c9d20e08b7bd8e05f154405611e Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 5 Oct 2024 02:15:10 -0400 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5ec2d4..7330d32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,8 +38,9 @@ jobs: python-version: ['3.8', '3.10', '3.13'] include: - {os: macos-13, python-version: '3.9'} + - {os: macos-latest, python-version: '3.13'} - {os: windows-latest, python-version: '3.8'} - - {os: windows-latest, python-version: '3.11'} + - {os: windows-latest, python-version: '3.13'} steps: - uses: actions/checkout@v4