Skip to content

Conversation

braingram
Copy link

@braingram braingram commented Sep 11, 2025

This PR relaxes the runtime numpy dependency to allow the latest released minor version (2.3.x).

This follows the recommendations linked in #1119 (which added the runtime upper pin) and updates the pin based on the latest released version. EDIT: see #1142 (comment) for discussion on pin

issue #1140 #1135

@braingram braingram marked this pull request as ready for review September 11, 2025 16:03
setup.py Outdated
@@ -26,7 +26,7 @@ def main():
# see https://numpy.org/doc/stable/release/2.3.0-notes.html#numpy-2-3-0-release-notes
install_requires = [
'numpy<2.0; python_version<"3.9"',
'numpy(>=2, <2.3.0); python_version>="3.9"',
'numpy(>=2, <2.4.0); python_version>="3.9"',
Copy link

@opencv-alalek opencv-alalek Sep 16, 2025

Choose a reason for hiding this comment

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

  1. just numpy>=2
  2. drop comment above this section

We should not push unnecessary locks on user environment.

@asmorkalov CI environment should be pinned instead (if necessary - probably not).

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! Updated to >2 in 7bd1825

@vfazio
Copy link

vfazio commented Sep 18, 2025

This would be good to have considering python 3.14 is around the corner and numpy 2.3.x adds support for that version.

Currently, opencv users cannot test against python 3.14 (easily).

I found this out today when trying to setup some 3.14 canary pipelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants