Skip to content

Commit

Permalink
ci: Test with Python 3.13
Browse files Browse the repository at this point in the history
Note that wheels are not yet published, because Python 3.13 is not yet
ABI stable.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Jun 4, 2024
1 parent eef8e03 commit ae78675
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp3{7..12}-${{ matrix.wheel_type }}"
CIBW_BUILD: "cp3{7..13}-${{ matrix.wheel_type }}"
CIBW_ARCHS_LINUX: auto aarch64
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_EXTRAS: test
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp3{8..12}-*"
CIBW_BUILD: "cp3{8..13}-*"
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {package}/tests
Expand Down Expand Up @@ -196,6 +196,10 @@ jobs:
rmdir dist/{sdist,*-wheels}
rm -r dist/tests
ls -R dist
- name: Avoid publishing Python 3.13 wheels
run: |
rm -f dist/*cp313*
ls -l dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Cython
coverage[toml]
greenlet; python_version < '3.12'
greenlet; python_version < '3.13'
pytest
pytest-cov
ipython
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def build_js_files(self):

test_requires = [
"Cython",
"greenlet; python_version < '3.12'",
"greenlet; python_version < '3.13'",
"pytest",
"pytest-cov",
"ipython",
Expand Down

0 comments on commit ae78675

Please sign in to comment.