Skip to content

Commit d9df1dd

Browse files
godlygeekpablogsal
authored andcommitted
ci: Test with Python 3.13
Note that wheels are not yet published, because Python 3.13 is not yet ABI stable. Signed-off-by: Matt Wozniski <[email protected]>
1 parent 19ab5ff commit d9df1dd

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/build_wheels.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Build manylinux2010 image containing Python 3.11 and 3.12
6767
if: matrix.manylinux2010_hack
6868
run: |
69-
echo "CIBW_SKIP=*cp3{7,8,9,10}*" >> $GITHUB_ENV
69+
echo "CIBW_SKIP=*cp3{7,8,9,10,13}*" >> $GITHUB_ENV
7070
echo "CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010-with-modern-cpython" >> $GITHUB_ENV
7171
docker build -t manylinux2010-with-modern-cpython - <<'EOF'
7272
# syntax=docker/dockerfile:1
@@ -107,7 +107,7 @@ jobs:
107107
- name: Build wheels
108108
uses: pypa/[email protected]
109109
env:
110-
CIBW_BUILD: "cp3{7..12}-${{ matrix.wheel_type }}"
110+
CIBW_BUILD: "cp3{7..13}-${{ matrix.wheel_type }}"
111111
CIBW_ARCHS_LINUX: auto aarch64
112112
CIBW_PRERELEASE_PYTHONS: True
113113
CIBW_TEST_EXTRAS: test
@@ -156,7 +156,7 @@ jobs:
156156
- name: Build wheels
157157
uses: pypa/[email protected]
158158
env:
159-
CIBW_BUILD: "cp3{8..12}-*"
159+
CIBW_BUILD: "cp3{8..13}-*"
160160
CIBW_PRERELEASE_PYTHONS: True
161161
CIBW_TEST_EXTRAS: test
162162
CIBW_TEST_COMMAND: pytest {package}/tests
@@ -196,6 +196,10 @@ jobs:
196196
rmdir dist/{sdist,*-wheels}
197197
rm -r dist/tests
198198
ls -R dist
199+
- name: Avoid publishing Python 3.13 wheels
200+
run: |
201+
rm -f dist/*cp313*
202+
ls -l dist/
199203
- uses: pypa/gh-action-pypi-publish@release/v1
200204
with:
201205
skip_existing: true

requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cython
22
coverage[toml]
3-
greenlet; python_version < '3.12'
3+
greenlet; python_version < '3.13'
44
pytest
55
pytest-cov
66
ipython

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def build_js_files(self):
113113

114114
test_requires = [
115115
"Cython",
116-
"greenlet; python_version < '3.12'",
116+
"greenlet; python_version < '3.13'",
117117
"pytest",
118118
"pytest-cov",
119119
"ipython",

0 commit comments

Comments
 (0)