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

Depend on oldest-supported-numpy instead of plain NumPy #134

Closed
wants to merge 4 commits into from

Conversation

ivilata
Copy link
Contributor

@ivilata ivilata commented Sep 26, 2023

Requiring an oldest version of NumPy causes less incompatibilities with other projects (esp. if they depend on oldest-supported-numpy themselves).

Tests seem to work just fine, and generated documentation still looks ok.

Requiring an oldest version of NumPy causes less incompatibilities with other
projects (esp. if they depend on oldest-supported-numpy themselves).

Tests seem to work just fine, and generated documentation still looks ok.
@ivilata ivilata self-assigned this Sep 26, 2023
@ivilata ivilata added the dependencies Pull requests that update a dependency file label Sep 26, 2023
@@ -1,4 +1,4 @@
msgpack
ndindex>=1.4
numpy>=1.20.3
oldest-supported-numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for runtime numpy<2 is a better option (oldest-supported-numpy is mainly for building purposes).

@@ -1,5 +1,5 @@
pip
numpy<2
oldest-supported-numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@@ -1,5 +1,5 @@
pip
numpy<2
oldest-supported-numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

ivilata and others added 3 commits September 26, 2023 12:29
This makes the package more compatible with others at runtime too.

With this, the modifications amount to changing build dependency on numpy<2 to
oldest-supported-numpy, and runtime dependency on numpy>=1.20.3 to numpy<2 (as
in other runtime-like requirements files).

Suggested by @FrancescAlted.
Copy link
Collaborator

@martaiborra martaiborra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FrancescAlted
Copy link
Member

I am doing the necessary changes for this in PR #135. This can be closed now.

@FrancescAlted FrancescAlted deleted the dep-oldest-supported-numpy branch September 27, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants