diff --git a/pyproject.toml b/pyproject.toml index 3ccb3c4..874388a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,18 +3,17 @@ requires = [ "setuptools >= 45", "wheel >= 0.30.0", "setuptools_scm >= 6.2", - # Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml + # Copied from https://github.com/scipy/scipy/blob/1a72584820e53d83d5f6daab6c7fbafbe9af50d7/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'", + "Cython>=0.29.33", "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'", + "numpy==1.22.3; python_version=='3.9' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", + "numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", + "numpy==1.21.6; python_version=='3.9' and (platform_system!='Windows' and platform_machine!='loongarch64') and platform_python_implementation != 'PyPy'", + "numpy==1.21.6; python_version=='3.10' and (platform_system!='Windows' and platform_machine!='loongarch64') and platform_python_implementation != 'PyPy'", + "numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'", + "numpy; python_version>='3.12'", + "numpy; python_version>='3.9' and platform_python_implementation=='PyPy'", ] build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt index dbf2f9c..43bafb3 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -numpy>=1.19.5 \ No newline at end of file +# https://github.com/scipy/scipy/blob/1a72584820e53d83d5f6daab6c7fbafbe9af50d7/setup.py#L452 +numpy>=1.21.6 \ No newline at end of file