Skip to content

Commit

Permalink
ci: rebuild for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jun 22, 2024
1 parent 5a64389 commit 9e374fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@ on:
- '*'

env:
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-* *-win32 *-manylinux_i686 *-musllinux* pp27* pp36* pp37* pp38* pp39* pp310*
CIBW_SKIP: pp* *-win32 *-manylinux_i686 *-musllinux*
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]

arch: [auto]
include:
- os: ubuntu-20.04
arch: aarch64
steps:
- uses: actions/checkout@v2

- name: Build wheels
uses: joerick/cibuildwheel@v2.16.2
uses: joerick/cibuildwheel@v2.19.1
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BEFORE_BUILD: pip install numpy
CIBW_ARCHS_MACOS: "x86_64 arm64"

- uses: actions/upload-artifact@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def __repr__(self):
include_dirs = [ str(NumpyImport()), 'zi_lib/', './' ]

setuptools.setup(
setup_requires=['pbr', 'numpy', 'cython<3'],
python_requires=">=3.7", # >= 3.6 < 4.0
setup_requires=['pbr', 'numpy', 'cython'],
python_requires=">=3.8",
pbr=True,
define_macros=[ ("NDEBUG", 1) ],
ext_modules=[
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ deps =
pip
setuptools
wheel
oldest-supported-numpy
numpy
-rrequirements.txt
-rdev_requirements.txt

Expand Down

0 comments on commit 9e374fa

Please sign in to comment.