From 08b6ec3a3b76df735addf69a929175e17d450b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 27 Oct 2024 11:21:42 +0100 Subject: [PATCH] chore: python 3.13 support --- .github/workflows/tests.yaml | 3 ++- .gitlab-ci.yml | 15 +++++++++++---- CHANGES.rst | 1 + pyproject.toml | 4 ++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index eb8c7663..1c4ece0d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,6 +17,7 @@ jobs: fail-fast: false matrix: python: + - '3.13' - '3.12' - '3.11' - '3.10' @@ -85,7 +86,7 @@ jobs: uses: snok/install-poetry@v1 - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' cache: 'poetry' - name: Install apt dependencies run: | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca632345..25a78032 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ cache: - .venv style: - image: python:3.12 + image: python:3.13 stage: test script: - pip install pre-commit @@ -43,8 +43,15 @@ python312: - poetry install --extras all - poetry run pytest +python313: + image: python:3.13 + stage: test + script: + - poetry install --extras all + - poetry run pytest + minversions: - image: python:3.10 + image: python:3.13 stage: test script: - sed -i -E 's/"(\^|>=)([0-9\.]+)([^,]*)"/"==\2"/' pyproject.toml @@ -54,14 +61,14 @@ minversions: - poetry run pytest doc: - image: python:3.12 + image: python:3.13 stage: test script: - poetry install --only doc - poetry run sphinx-build doc build/sphinx/html coverage: - image: python:3.12 + image: python:3.13 stage: test allow_failure: true script: diff --git a/CHANGES.rst b/CHANGES.rst index 258cd41d..d726035b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Added ^^^^^ - New security events logs :issue:`177` +- Support for Python 3.13 :pr:`186` Changed ^^^^^^^ diff --git a/pyproject.toml b/pyproject.toml index 00fc713c..16a3ce62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,10 @@ keywords = ["oidc", "oauth", "oauth2", "openid", "identity"] classifiers = [ "Intended Audience :: Developers", "Development Status :: 3 - Alpha", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "License :: OSI Approved :: MIT License", "Environment :: Web Environment", @@ -214,6 +213,7 @@ envlist = py310 py311 py312 + py313 doc coverage