From d9bb1437761b05cd41f8b9e397ed88ee3755068c Mon Sep 17 00:00:00 2001 From: Anton Agestam Date: Sun, 15 Sep 2024 14:36:33 +0200 Subject: [PATCH] chore: Bump version matrix - Drop support for Python 3.8, which has imminent EOL. - Add support for Python 3.13. --- .github/workflows/ci.yaml | 2 +- setup.cfg | 6 +++--- tests/pydantic/test_schemas.py | 9 --------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38e98ac..12962b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13-dev"] steps: - uses: actions/checkout@v3 - name: Set up Python diff --git a/setup.cfg b/setup.cfg index 586214c..8c93574 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,11 +12,11 @@ classifiers = Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - 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 Development Status :: 5 - Production/Stable author = Anton Agestam author_email = git@antonagestam.se @@ -30,7 +30,7 @@ include_package_data = True package_dir = =src packages = find: -python_requires = >=3.8 +python_requires = >=3.9 install_requires = typeguard>=4 typing_extensions>=4.3.0 @@ -63,7 +63,7 @@ test = coverage [mypy] -python_version = 3.8 +python_version = 3.9 show_error_codes = True pretty = True files = src, tests diff --git a/tests/pydantic/test_schemas.py b/tests/pydantic/test_schemas.py index 6ba7686..cebc39c 100644 --- a/tests/pydantic/test_schemas.py +++ b/tests/pydantic/test_schemas.py @@ -1,5 +1,3 @@ -import sys - import pydantic import pytest @@ -229,13 +227,6 @@ def test_formatted_phone_number_implements_schema(self): "format": "E.164", } - @pytest.mark.skipif( - sys.version_info < (3, 9), - reason=( - "Pydantic behavior oddly differs for Python 3.8 and below, where it " - "instead of using the class name, uses the name of the field as title." - ), - ) def test_sequence_not_str_implements_schema(self): assert DataModel.schema()["properties"]["sequence_not_str"] == { "title": "SequenceNotStr",