Skip to content

Commit

Permalink
build: update to py 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Dec 19, 2023
1 parent e61db94 commit 8315333
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ on:
tags:
- '*'
env:
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-* pp* *-musllinux*
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-* cp36-* cp37-* pp* *-musllinux*

jobs:
build_wheels:
name: Build wheels on ${{matrix.arch}} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-latest]
os: [ubuntu-latest, windows-2019, macos-latest]
arch: [auto]
include:
- os: ubuntu-20.04
- os: ubuntu-latest
arch: aarch64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up QEMU
if: ${{ matrix.arch == 'aarch64' }}
Expand All @@ -32,8 +32,9 @@ jobs:
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy setuptools wheel cython
CIBW_ARCHS_MACOS: "x86_64 arm64"

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def read(fname):
'kimimaro.skeletontricks',
sources=[ './ext/skeletontricks/skeletontricks.pyx' ],
language='c++',
include_dirs=[ NumpyImport() ],
include_dirs=[ str(NumpyImport()) ],
extra_compile_args=[
'-std=c++11', '-O3', '-ffast-math'
]
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[tox]
envlist = py38,py39,py310,py311
envlist = py38,py39,py310,py311,py312

[testenv]
platform = darwin
deps =
setuptools
wheel
cython
-rrequirements.txt
oldest-supported-numpy

Expand Down

0 comments on commit 8315333

Please sign in to comment.