Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update numpy build constraints for numpy 1.25 #12839

Merged

Conversation

adrianeboyd
Copy link
Contributor

Description

Starting in numpy 1.25 (see
https://github.com/numpy/numpy/releases/tag/v1.25.0, https://numpy.org/doc/1.25/dev/depending_on_numpy.html), the numpy C API is backwards-compatible by default.

For python 3.9+, we should be able to drop the specific numpy build requirements and use numpy>=1.25, which is currently backwards-compatible to numpy>=1.19.

In the future when python 3.8 is dropped, the specific python <3.9 requirements could be dropped and the lower numpy pin could correspond to the oldest supported version for the current lower python pin.

Types of change

?

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

Starting in numpy 1.25 (see
https://github.com/numpy/numpy/releases/tag/v1.25.0), the numpy C API is
backwards-compatible by default.

For python 3.9+, we should be able to drop the specific numpy build
requirements and use `numpy>=1.25`, which is currently
backwards-compatible to `numpy>=1.19`.

In the future, the python <3.9 requirements could be dropped and the
lower numpy pin could correspond to the oldest supported version for the
current lower python pin.
@adrianeboyd adrianeboyd added the v3.7 Related to v3.7 label Jul 18, 2023
@adrianeboyd
Copy link
Contributor Author

The CI does not currently really test this, since numpy isn't downgraded after building.

From what I understand the lower numpy build constraint will need to be numpy>=2.0 once numpy 2 is released.

@adrianeboyd adrianeboyd marked this pull request as draft July 18, 2023 15:06
@adrianeboyd adrianeboyd marked this pull request as ready for review July 21, 2023 08:21
spacy/tests/package/test_requirements.py Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
@svlandeg svlandeg merged commit 5888afa into explosion:develop Jul 24, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3.7 Related to v3.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants