Skip to content

Commit e2cefcc

Browse files
committed
feat(ci): Add GitHub Actions workflow for NumPy 2.0 compatibility
1 parent 2f43c33 commit e2cefcc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ jobs:
8181
platforms: all
8282

8383
- name: Build wheels
84-
uses: pypa/cibuildwheel@v2.11.2
84+
uses: pypa/cibuildwheel@v2.16.0
8585
env:
8686
CIBW_ARCHS_MACOS: "x86_64 arm64"
8787
CIBW_ARCHS_LINUX: ${{ fromJson(needs.generate_matrix.outputs.CIBW_ARCHS_LINUX) }}
8888
CIBW_TEST_REQUIRES: pytest
89-
CIBW_TEST_EXTRAS: "py36"
89+
CIBW_BEFORE_BUILD: "pip install numpy>=2.0.0"
90+
CIBW_TEST_EXTRAS: "py310"
9091
CIBW_TEST_COMMAND: "pytest {package}/test"
9192

9293
- uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ homepage = "https://sites.google.com/view/yiqiuwang/dbscan"
3737
repository = "https://github.com/wangyiqiu/dbscan-python"
3838

3939
[build-system]
40-
requires = ["setuptools", "setuptools_scm", "wheel", "oldest-supported-numpy"]
40+
requires = ["setuptools", "setuptools_scm", "wheel"]
41+
backend = "setuptools.build_meta"
4142

4243
[tool.setuptools_scm]
4344
write_to = "pythonmodule/_version.py"

0 commit comments

Comments
 (0)