From c43b43d5a8973c9e917899bd2e1a8ba9e91b836d Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Wed, 4 Oct 2023 23:45:59 -0500 Subject: [PATCH] Declare support for Python 3.12 (#134) --- .github/workflows/nox.yml | 2 +- noxfile.py | 4 ++-- pyproject.toml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index e9c10a0b..d52f586e 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -48,7 +48,7 @@ jobs: - name: Setup nox uses: wntrblm/nox@2023.04.22 with: - python-versions: "3.9, 3.10, 3.11" + python-versions: "3.9, 3.10, 3.11, 3.12" - name: Run unit tests run: | nox -v -e test diff --git a/noxfile.py b/noxfile.py index f421a4f0..18b8b9d2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -34,12 +34,12 @@ def install(session: nox.Session, *args, editable=False, **kwargs): session.install(*args, "-U", **kwargs) -@nox.session(python=["3.9", "3.10", "3.11"]) +@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) def test(session: nox.Session): install(session, ".[test, coverage]", editable=True) covfile = Path(session.create_tmp(), ".coverage") more_args = [] - if session.python == "3.11": + if session.python == "3.12": more_args.append("--error-for-skips") session.run( "pytest", diff --git a/pyproject.toml b/pyproject.toml index ceb379fa..74fd70e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Typing :: Typed", ] dependencies = [