Skip to content

Commit be3f3be

Browse files
authored
Python 3.14 support (#69)
1 parent dde24f7 commit be3f3be

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fail-fast: false
4040
matrix:
4141
os: [ubuntu-latest, windows-latest, macos-latest]
42-
python_version: ["3.10", "3.12", "3.13"]
42+
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4343

4444
runs-on: ${{ matrix.os }}
4545

confection/util.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
import functools
2-
import sys
32
from copy import deepcopy
4-
from typing import Any, Callable, Iterator, TypeVar
3+
from typing import Any, Callable, Iterator, Protocol, TypeVar
54

65
from pydantic import GetCoreSchemaHandler
76
from pydantic_core import core_schema
87

9-
if sys.version_info < (3, 8):
10-
# Ignoring type for mypy to avoid "Incompatible import" error (https://github.com/python/mypy/issues/4427).
11-
from typing_extensions import Protocol # type: ignore
12-
else:
13-
from typing import Protocol
14-
158
_DIn = TypeVar("_DIn")
169

1710

requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
pydantic>=2.0,<3.0
2-
typing_extensions>=3.7.4.1,<5.0.0; python_version < "3.8"
32
srsly>=2.4.0,<3.0.0
43
# Development requirements
54
catalogue>=2.0.3,<2.1.0
65
pathy>=0.3.5
76
pytest>=5.2.0,!=7.1.0
8-
mypy>=1.7.0,<1.8.0; platform_machine != 'aarch64' and python_version >= '3.8'
9-
types-dataclasses>=0.1.3; python_version < '3.7'
7+
mypy>=1.7.0,<1.8.0; platform_machine != 'aarch64'
108
numpy>=1.15.0
119
black>=22.0,<23.0
1210
flake8>=3.8.0,<6.0.0

setup.cfg

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,19 @@ classifiers =
1717
Operating System :: MacOS :: MacOS X
1818
Operating System :: Microsoft :: Windows
1919
Programming Language :: Python :: 3
20-
Programming Language :: Python :: 3.6
21-
Programming Language :: Python :: 3.7
22-
Programming Language :: Python :: 3.8
23-
Programming Language :: Python :: 3.9
2420
Programming Language :: Python :: 3.10
2521
Programming Language :: Python :: 3.11
2622
Programming Language :: Python :: 3.12
23+
Programming Language :: Python :: 3.13
24+
Programming Language :: Python :: 3.14
2725
Topic :: Scientific/Engineering
2826

2927
[options]
3028
zip_safe = true
3129
include_package_data = true
32-
python_requires = >=3.9,<3.14
30+
python_requires = >=3.10
3331
install_requires =
3432
pydantic>=2.0,<3.0
35-
typing_extensions>=3.7.4.1,<5.0.0; python_version < "3.8"
3633
srsly>=2.4.0,<3.0.0
3734

3835
[sdist]

0 commit comments

Comments
 (0)