Skip to content

Commit 863302a

Browse files
Support Python 3.13 (#512)
* use mypy 1.12 dev for python 3.13 --------- Co-authored-by: Ahmed TAHRI <[email protected]>
1 parent b6c460e commit 863302a

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: |
8282
python -m pip install -U pip wheel setuptools build twine
8383
- name: Build wheels
84-
uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1
84+
uses: pypa/cibuildwheel@f1859528322d7b29d4493ee241a167807661dfb4 # v2.21.2
8585
env:
8686
#CIBW_BUILD_FRONTEND: "build"
8787
CIBW_ARCHS_MACOS: x86_64 arm64 universal2

.github/workflows/ci.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
48+
python-version:
49+
- "3.7"
50+
- "3.8"
51+
- "3.9"
52+
- "3.10"
53+
- "3.11"
54+
- "3.12"
55+
- "3.13"
4956

5057
steps:
5158
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
@@ -176,8 +183,21 @@ jobs:
176183
strategy:
177184
fail-fast: false
178185
matrix:
179-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
186+
python-version:
187+
- "3.8"
188+
- "3.9"
189+
- "3.10"
190+
- "3.11"
191+
- "3.12"
192+
- "3.13"
180193
os: [ ubuntu-latest, macos-latest, windows-latest ]
194+
include:
195+
- python-version: "3.7"
196+
os: ubuntu-latest
197+
- python-version: "3.7"
198+
os: macos-13
199+
- python-version: "3.7"
200+
os: windows-latest
181201
env:
182202
PYTHONIOENCODING: utf8 # only needed for Windows (console IO output encoding)
183203
steps:

build-requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# in the meantime we migrate to pyproject.toml
22
# this represent the minimum requirement to build (for the optional speedup)
3-
mypy==1.9.0; python_version >= '3.8'
3+
--find-links https://github.com/mypyc/mypy_mypyc-wheels/releases/expanded_assets/v1.12.0+dev.b2deaaecf1a11e13bc962558992b5f2d5701f295
4+
mypy==1.11.2; python_version >= '3.8' and python_version < '3.13'
5+
mypy==1.12.0; python_version >= '3.13'
46
mypy==1.4.1; python_version < '3.8'
57
build==0.10.0
68
wheel==0.42.0

dev-requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
--find-links https://github.com/mypyc/mypy_mypyc-wheels/releases/expanded_assets/v1.12.0+dev.b2deaaecf1a11e13bc962558992b5f2d5701f295
12
flake8==5.0.4
23
chardet==5.1.0
34
isort==5.11.4
45
codecov==2.1.13
56
pytest-cov==4.1.0
67
build==0.10.0
78
wheel==0.42.0
8-
99
black==23.3.0
10-
mypy==1.9.0; python_version >= '3.8'
10+
mypy==1.11.2; python_version >= '3.8' and python_version < '3.13'
11+
mypy==1.12.0; python_version >= '3.13'
1112
mypy==1.4.1; python_version < '3.8'
1213
Flask==2.2.3
1314
pytest>=7.4.4,<=8.3.3

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers =
2525
Programming Language :: Python :: 3.10
2626
Programming Language :: Python :: 3.11
2727
Programming Language :: Python :: 3.12
28+
Programming Language :: Python :: 3.13
2829
Programming Language :: Python :: Implementation :: PyPy
2930
Topic :: Text Processing :: Linguistic
3031
Topic :: Utilities

0 commit comments

Comments
 (0)