diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 22d886700c..d2de3c7735 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -66,7 +66,7 @@ jobs: - name: Build manylinux2010 image containing Python 3.11 and 3.12 if: matrix.manylinux2010_hack run: | - echo "CIBW_SKIP=*cp3{7,8,9,10}*" >> $GITHUB_ENV + echo "CIBW_SKIP=*cp3{7,8,9,10,13}*" >> $GITHUB_ENV echo "CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010-with-modern-cpython" >> $GITHUB_ENV docker build -t manylinux2010-with-modern-cpython - <<'EOF' # syntax=docker/dockerfile:1 @@ -107,7 +107,7 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.18.1 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 @@ -156,7 +156,7 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.18.1 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 @@ -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 diff --git a/requirements-test.txt b/requirements-test.txt index c459be6f25..a75d2cf20d 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ Cython coverage[toml] -greenlet; python_version < '3.12' +greenlet; python_version < '3.13' pytest pytest-cov ipython diff --git a/setup.py b/setup.py index 5a60176732..bf72e06631 100644 --- a/setup.py +++ b/setup.py @@ -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",