Skip to content

Commit

Permalink
Update after NumPy 1.26.0 release (#79)
Browse files Browse the repository at this point in the history
- NumPy 1.26.0 adds support for Python 3.12;
- Pin updated to 1.26.1 as it contains some build fixes

Co-authored-by: Ralf Gommers <[email protected]>
  • Loading branch information
charris and rgommers authored Oct 25, 2023
1 parent 5da7ab4 commit 63e4adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ install_requires =
# however macOS was broken and it's safe to build against 1.21.6 on all platforms (see gh-28 and gh-45)
numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64'
numpy==1.23.2; python_version=='3.11'
numpy==1.26.1; python_version=='3.12'

# PyPy requirements
numpy==1.19.0; python_version=='3.6' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy'
Expand All @@ -71,4 +72,4 @@ install_requires =
# we specify an unpinned Numpy which allows source distributions
# to be used and allows wheels to be used as soon as they
# become available.
numpy; python_version>='3.12'
numpy; python_version>='3.13'
2 changes: 1 addition & 1 deletion tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_has_at_most_one_pinned_dependency(
# for valid combinations, we test more strictly: expect exactly zero or one pins
if valid:
# we only expect a pin for released python versions
expect_pin = False if (python_version == "3.12") else expect_pin
expect_pin = False if (python_version == "3.13") else expect_pin
log_msg = "Expected " + ("exactly one pin" if expect_pin else "no pins")
assert (
len(filtered_requirements) == int(expect_pin)
Expand Down

0 comments on commit 63e4adf

Please sign in to comment.