Skip to content

Commit

Permalink
chore: build for 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug authored and mwilliamson committed Aug 14, 2024
1 parent 0ce4b21 commit 9c8736f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=$(
{
Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
)

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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}
Expand Down

0 comments on commit 9c8736f

Please sign in to comment.