From 4a2c1540764066ce258d03a6d477a74d2284f7c1 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 12 Dec 2024 13:06:54 -0800 Subject: [PATCH] Add support for Python 3.13 Bump the minimum version of dataclasses-avroschema to the one with Python 3.13 support, add Python 3.13 to the test matrix, and add it to the classifiers as a supported version. Fix the link to Click now that it uses a stable URL. --- .github/workflows/ci.yaml | 1 + .github/workflows/periodic-ci.yaml | 1 + docs/_rst_epilog.rst | 2 +- docs/documenteer.toml | 2 +- safir-arq/pyproject.toml | 1 + safir-logging/pyproject.toml | 1 + safir/pyproject.toml | 3 ++- 7 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f9ec23a3..d84036ba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,6 +49,7 @@ jobs: python: - "3.11" - "3.12" + - "3.13" steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/periodic-ci.yaml b/.github/workflows/periodic-ci.yaml index 4aace637..7eec292b 100644 --- a/.github/workflows/periodic-ci.yaml +++ b/.github/workflows/periodic-ci.yaml @@ -26,6 +26,7 @@ jobs: python: - "3.11" - "3.12" + - "3.13" steps: - uses: actions/checkout@v4 diff --git a/docs/_rst_epilog.rst b/docs/_rst_epilog.rst index 4f676d48..c7980f53 100644 --- a/docs/_rst_epilog.rst +++ b/docs/_rst_epilog.rst @@ -1,7 +1,7 @@ .. _Alembic: https://alembic.sqlalchemy.org/en/latest/ .. _arq: https://arq-docs.helpmanual.io .. _asyncpg: https://magicstack.github.io/asyncpg/current/ -.. _Click: https://click.palletsprojects.com/ +.. _Click: https://click.palletsprojects.com/en/stable/ .. _cryptography: https://cryptography.io/en/latest/ .. _FastAPI: https://fastapi.tiangolo.com/ .. _fastapi_safir_app: https://github.com/lsst/templates/tree/main/project_templates/fastapi_safir_app diff --git a/docs/documenteer.toml b/docs/documenteer.toml index e2592b58..3b9c2b4a 100644 --- a/docs/documenteer.toml +++ b/docs/documenteer.toml @@ -76,7 +76,7 @@ extensions = [ [sphinx.intersphinx.projects] aiokafka = "https://aiokafka.readthedocs.io/en/stable" arq = "https://arq-docs.helpmanual.io" -click = "https://click.palletsprojects.com" +click = "https://click.palletsprojects.com/en/stable" cryptography = "https://cryptography.io/en/latest" gidgethub = "https://gidgethub.readthedocs.io/en/latest" python = "https://docs.python.org/3" diff --git a/safir-arq/pyproject.toml b/safir-arq/pyproject.toml index b25b22d7..d52cdcca 100644 --- a/safir-arq/pyproject.toml +++ b/safir-arq/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX", diff --git a/safir-logging/pyproject.toml b/safir-logging/pyproject.toml index ac3c5f69..4a1dcc7c 100644 --- a/safir-logging/pyproject.toml +++ b/safir-logging/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX", diff --git a/safir/pyproject.toml b/safir/pyproject.toml index 11b3a99a..f25450da 100644 --- a/safir/pyproject.toml +++ b/safir/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX", @@ -26,7 +27,7 @@ dependencies = [ "aiokafka>=0.11,<1", "click<9", "cryptography<45", - "dataclasses-avroschema>=0.65.3,<1", + "dataclasses-avroschema>=0.65.7,<1", "fastapi<1", "faststream>0.5,<0.6", "gidgethub<6",