Skip to content

Commit

Permalink
numpy 2 is out!
Browse files Browse the repository at this point in the history
  • Loading branch information
kodonnell committed Jun 23, 2024
1 parent da38d5d commit f514cbf
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@ requires = [
"Cython>=3.0.8",
# Below copied from scipy https://github.com/scipy/scipy/blob/main/pyproject.toml

# default numpy requirements
"numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'",
"numpy>=1.26.0,<1.27; python_version=='3.12'",

# PyPy requirements; 1.25.0 was the first version to have pypy-3.9 wheels,
# and 1.25.0 also changed the C API target to 1.19.x, so no longer a need
# for an exact pin.
"numpy>=1.25.0; python_version>='3.9' and platform_python_implementation=='PyPy'",

# For Python versions which aren't yet officially supported, we specify an
# unpinned NumPy which allows source distributions to be used and allows
# wheels to be used as soon as they become available.
# Python 3.13 has known issues that are only fixed in numpy 2.0.0.dev0
"numpy>=2.0.0.dev0; python_version>='3.13'",
# numpy requirement for wheel builds for distribution on PyPI - building
# against 2.x yields wheels that are also compatible with numpy 1.x at
# runtime.
# Note that building against numpy 1.x works fine too - users and
# redistributors can do this by installing the numpy version they like and
# disabling build isolation.
"numpy>=2.0.0rc1",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit f514cbf

Please sign in to comment.