diff --git a/.github/workflows/build-and-publish-to-pypi.yml b/.github/workflows/build-and-publish-to-pypi.yml index df28e97..2028109 100644 --- a/.github/workflows/build-and-publish-to-pypi.yml +++ b/.github/workflows/build-and-publish-to-pypi.yml @@ -43,12 +43,14 @@ jobs: echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg - name: Build wheels - uses: pypa/cibuildwheel@v2.14.1 + uses: pypa/cibuildwheel@v2.15.0 env: # Disable building for PyPy and 32bit. CIBW_SKIP: pp* *-win32 *-manylinux_i686 # Fix error for python 3.11 on macOS CIBW_ENVIRONMENT_MACOS: SETUPTOOLS_USE_DISTUTILS=stdlib + # get the binary only to avoid building numpy or other dependent wheels + CIBW_ENVIRONMENT: PIP_ONLY_BINARY=":all:" PIP_PRE="1" # Package the DLL dependencies in the wheel for windows (done by default for the other platforms). # delvewheel cannot mangle the libraries, stripping does not work. CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel diff --git a/pyproject.toml b/pyproject.toml index 7c153c9..2675f34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,11 @@ [build-system] -requires = ["setuptools<60.0", "setuptools_scm[toml]>=6.2", "numpy<1.23.0", "wheel"] +requires = [ + "setuptools<60.0", + "setuptools_scm[toml]>=6.2", + "numpy; python_version<'3.12'", + "numpy>1.26.0b1; python_version>='3.12'", + "wheel", +] build-backend = "setuptools.build_meta" [project]