diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index ee125fe..a013d2a 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -28,11 +28,11 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Build wheels - uses: joerick/cibuildwheel@v2.16.5 + uses: joerick/cibuildwheel@v2.19.1 # to supply options, put them in 'env', like: env: CIBW_ARCHS_LINUX: ${{matrix.arch}} - CIBW_BEFORE_BUILD: pip install oldest-supported-numpy setuptools wheel cython + CIBW_BEFORE_BUILD: pip install numpy setuptools wheel cython CIBW_ARCHS_MACOS: "x86_64 arm64" - uses: actions/upload-artifact@v2 diff --git a/dijkstra3d.pyx b/dijkstra3d.pyx index 2d6279d..a9281d9 100644 --- a/dijkstra3d.pyx +++ b/dijkstra3d.pyx @@ -36,6 +36,9 @@ import cython from libcpp.vector cimport vector cimport numpy as cnp import numpy as np + +np.import_array() + import warnings __VERSION__ = '1.14.0' diff --git a/pyproject.toml b/pyproject.toml index 4ea4769..593be4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,8 @@ requires = [ "setuptools>=42", "wheel", - "oldest-supported-numpy", + "numpy", + "cython", ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 23bfe3d..867c722 100644 --- a/setup.py +++ b/setup.py @@ -23,8 +23,8 @@ def read(fname): setuptools.setup( name="dijkstra3d", - version="1.15.0", - python_requires=">=3.7,<4.0", + version="1.15.1", + python_requires=">=3.8,<4.0", setup_requires=['numpy','cython'], ext_modules=[ setuptools.Extension(