Skip to content

Commit

Permalink
fix: ensure works with numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jun 18, 2024
1 parent 23b9fff commit a38a2a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags:
- '*'
env:
CIBW_SKIP: pp37* pp38* pp39* pp310* *-musllinux*
CIBW_SKIP: pp38* pp39* pp310* *-musllinux*

jobs:
build_wheels:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BEFORE_BUILD: pip install "numpy>=2" setuptools wheel
CIBW_BEFORE_BUILD: pip install numpy setuptools wheel
CIBW_ARCHS_MACOS: "x86_64 arm64"

- uses: actions/upload-artifact@v2
Expand Down
4 changes: 2 additions & 2 deletions python/edt.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import cython
from cython cimport floating
from cpython cimport array
cimport numpy as np
import numpy as np
np.import_array()

__VERSION__ = '2.3.2'
import numpy as np

ctypedef fused UINT:
uint8_t
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
requires = [
"setuptools",
"wheel",
"oldest-supported-numpy",
"numpy",
"cython",
]

0 comments on commit a38a2a0

Please sign in to comment.