From c4cdc973b9f53d269fbb6590dcf5c172d06c4e54 Mon Sep 17 00:00:00 2001 From: kodonnell Date: Tue, 28 Jun 2022 00:11:43 +1200 Subject: [PATCH] Feature/fixnumpy (#10) fixing numpy builds --- pyproject.toml | 16 +++++++++++++--- requirements-dev.txt | 0 requirements.txt | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) mode change 100644 => 100755 requirements-dev.txt mode change 100644 => 100755 requirements.txt diff --git a/pyproject.toml b/pyproject.toml index d18aa87..3ccb3c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,18 @@ requires = [ "setuptools >= 45", "wheel >= 0.30.0", "setuptools_scm >= 6.2", - "numpy >= 1.20.0", - "Cython" + # Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml + # NOTE: if you update this, you'll need to update install_requires in setup.py + "Cython>=0.29.21", + "numpy==1.19.5; python_version=='3.8' and platform_machine=='aarch64' and platform_python_implementation != 'PyPy'", + "numpy==1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'", + "numpy==1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'", + "numpy==1.22.0; platform_machine=='loongarch64'", + "numpy==1.19.5; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_machine!='loongarch64' and platform_python_implementation != 'PyPy'", + "numpy==1.19.5; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='loongarch64' and platform_python_implementation != 'PyPy'", + "numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64' and platform_python_implementation != 'PyPy'", + "numpy; python_version>='3.11'", + "numpy; python_version>='3.8' and platform_python_implementation=='PyPy'", ] build-backend = "setuptools.build_meta" @@ -15,7 +25,7 @@ write_to_template = "__version__ = \"{version}\"" [tool.cibuildwheel] test-requires = "pytest" test-command = "pytest {project}/tests" -build = "cp37-* cp38-* cp39-* cp310-*" +build = "cp38-* cp39-* cp310-*" # skip musl and ignore the non-standard linux builds skip = "*-musllinux_* *s390x* *ppc64le*" build-frontend = "build" diff --git a/requirements-dev.txt b/requirements-dev.txt old mode 100644 new mode 100755 diff --git a/requirements.txt b/requirements.txt old mode 100644 new mode 100755 index 296d654..dbf2f9c --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -numpy \ No newline at end of file +numpy>=1.19.5 \ No newline at end of file