Skip to content

Commit a22b1eb

Browse files
authored
Add mypyc 3.13 wheel build (#4449)
1 parent b7d0e72 commit a22b1eb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/pypi_upload.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ jobs:
4747
include: ${{ steps.set-matrix.outputs.include }}
4848
steps:
4949
- uses: actions/checkout@v4
50+
# Keep cibuildwheel version in sync with below
5051
- name: Install cibuildwheel and pypyp
5152
run: |
52-
pipx install cibuildwheel==2.20.0
53+
pipx install cibuildwheel==2.21.2
5354
pipx install pypyp==1
5455
- name: generate matrix
5556
if: github.event_name != 'pull_request'
@@ -74,7 +75,7 @@ jobs:
7475
| pyp 'json.dumps({"only": x, "os": "ubuntu-latest"})'
7576
} | pyp 'json.dumps(list(map(json.loads, lines)))' > /tmp/matrix
7677
env:
77-
CIBW_BUILD: "cp39-* cp312-*"
78+
CIBW_BUILD: "cp39-* cp313-*"
7879
CIBW_ARCHS_LINUX: x86_64
7980
- id: set-matrix
8081
run: echo "include=$(cat /tmp/matrix)" | tee -a $GITHUB_OUTPUT
@@ -90,7 +91,8 @@ jobs:
9091

9192
steps:
9293
- uses: actions/checkout@v4
93-
- uses: pypa/[email protected]
94+
# Keep cibuildwheel version in sync with above
95+
- uses: pypa/[email protected]
9496
with:
9597
only: ${{ matrix.only }}
9698

CHANGES.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

77
<!-- Include any especially major or disruptive changes here -->
88

9-
- Black is now officially tested with Python 3.13. Note that Black does not yet provide
10-
mypyc-compiled wheels for Python 3.13, so performance may be slower than on other
11-
versions of Python. We will provide 3.13 mypyc-compiled wheels in a future release.
12-
(#4436)
9+
- Black is now officially tested with Python 3.13 and provides Python 3.13
10+
mypyc-compiled wheels. (#4436) (#4449)
1311
- Black will issue an error when used with Python 3.12.5, due to an upstream memory
1412
safety issue in Python 3.12.5 that can cause Black's AST safety checks to fail. Please
1513
use Python 3.12.6 or Python 3.12.4 instead. (#4447)

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ macos-max-compat = true
125125
enable-by-default = false
126126
dependencies = [
127127
"hatch-mypyc>=0.16.0",
128-
"mypy==1.11.2",
128+
"mypy @ git+https://github.com/python/mypy@bc8119150e49895f7a496ae7ae7362a2828e7e9e",
129129
"click>=8.1.7",
130130
]
131131
require-runtime-dependencies = true
@@ -192,7 +192,7 @@ build-frontend = { name = "build", args = ["--no-isolation"] }
192192
# Note we don't have a good test for this sed horror, so if you futz with it
193193
# make sure to test manually
194194
before-build = [
195-
"python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy==1.11.2' 'click>=8.1.7'",
195+
"python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy @ git+https://github.com/python/mypy@bc8119150e49895f7a496ae7ae7362a2828e7e9e' 'click>=8.1.7'",
196196
"""sed -i '' -e "600,700s/'10_16'/os.environ['MACOSX_DEPLOYMENT_TARGET'].replace('.', '_')/" $(python -c 'import hatchling.builders.wheel as h; print(h.__file__)') """,
197197
]
198198

0 commit comments

Comments
 (0)