From 9c8736f5ec8a3945f43d52933398d539d4cdcfdf Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Sat, 3 Aug 2024 15:58:14 +0200 Subject: [PATCH] chore: build for 3.13 --- .github/workflows/build.yml | 13 +++++++------ makefile | 2 +- pyproject.toml | 2 +- setup.py | 1 + tox.ini | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38e5f31..514b914 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04, macos-13] - python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "pypy-3.7"] + python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev", "pypy-3.7"] use-system-libs: [false] include: - os: ubuntu-20.04 @@ -84,13 +84,14 @@ jobs: python-version: '3.11' - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.17.0 + run: python -m pip install cibuildwheel==2.19.2 - id: set-matrix env: CIBW_ARCHS_LINUX: "auto aarch64" CIBW_ARCHS_MACOS: "auto" CIBW_SKIP: "cp36-win_amd64 cp36-win32 pp*-win_amd64 pp*-win32" + CIBW_PRERELEASE_PYTHONS: "True" # XXX Can be removed on cibuildwheel 2.20 run: | MATRIX=$( { @@ -145,7 +146,7 @@ jobs: - name: Build wheels if: steps.should-build-wheel.outputs.true - uses: pypa/cibuildwheel@v2.17.0 + uses: pypa/cibuildwheel@v2.19.2 with: only: ${{ matrix.cibw-only }} env: @@ -172,18 +173,18 @@ jobs: - name: Print build identifiers run: | - python -m pip install cibuildwheel==2.17.0 + python -m pip install cibuildwheel==2.19.2 CIBW_SKIP=cp38-macosx_arm64 python -m cibuildwheel --print-build-identifiers - name: Build wheels if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} - uses: pypa/cibuildwheel@v2.17.0 + uses: pypa/cibuildwheel@v2.19.2 env: CIBW_SKIP: cp38-macosx_arm64 - name: Build wheels if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} - uses: pypa/cibuildwheel@v2.17.0 + uses: pypa/cibuildwheel@v2.19.2 with: only: cp310-macosx_arm64 diff --git a/makefile b/makefile index eb65e31..865029d 100644 --- a/makefile +++ b/makefile @@ -28,5 +28,5 @@ _virtualenv: _virtualenv/bin/pip install --upgrade wheel jq.c: _virtualenv jq.pyx - _virtualenv/bin/pip install cython==0.29.35 + _virtualenv/bin/pip install cython==3.0.10 _virtualenv/bin/cython jq.pyx diff --git a/pyproject.toml b/pyproject.toml index 06e1696..c94c102 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] before-build = [ - "pip install cython==0.29.35", + "pip install cython==3.0.10", "cython {project}/jq.pyx", ] test-requires = "-r test-requirements.txt" diff --git a/setup.py b/setup.py index b00b35d..06e16c6 100644 --- a/setup.py +++ b/setup.py @@ -127,6 +127,7 @@ def _extract_tarball(self, tarball_path, lib_dir): 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], ) diff --git a/tox.ini b/tox.ini index 2fb2492..633f248 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36,py37,py38,py39,py310,py311,py312,pypy3 +envlist = py36,py37,py38,py39,py310,py311,py312,py313,pypy3 isolated_build = True [testenv] changedir = {envtmpdir}