Skip to content

Commit

Permalink
chore: Bump version matrix
Browse files Browse the repository at this point in the history
- Drop support for Python 3.8, which has imminent EOL.
- Add support for Python 3.13.
  • Loading branch information
antonagestam committed Sep 15, 2024
1 parent 0b2fcaa commit d9bb143
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -63,7 +63,7 @@ test =
coverage

[mypy]
python_version = 3.8
python_version = 3.9
show_error_codes = True
pretty = True
files = src, tests
Expand Down
9 changes: 0 additions & 9 deletions tests/pydantic/test_schemas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys

import pydantic
import pytest

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit d9bb143

Please sign in to comment.