Skip to content

Commit

Permalink
[PyOV] Limit numpy to major version (#24103)
Browse files Browse the repository at this point in the history
### Details:

Numpy started preparation to release 2.0 version.
It brings many breaking changes listed below.
Align with these changes it's a plan for further development
(CVS-138766), for today we want to secure users against unintentional
installation of 2.x version of numpy with OV.

This PR has to be ported for 2024/1 branch

- Preparing to restrict OV to not use release of Numpy 2.0 which may
introduce many breaking changes including:
     - required bump of `pybind` to 2.12+
     - API and namespaces clean-ups and deprecations
     - behavior changes of keywords such as `copy`
- changes to existing and introduction of new dtypes (such as
`StringDType` and possibility of adding custom ones)
- more can be found here:
https://numpy.org/devdocs/release/2.0.0-notes.html
- and here:
https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-migration-guide
 
### Tickets:
 - CVS-138838

---------

Co-authored-by: Michal Lukaszewski <[email protected]>
  • Loading branch information
Jan Iwaszkiewicz and mlukasze authored Apr 22, 2024
1 parent f9f41bd commit a19c34a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bindings/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy>=1.16.6
numpy>=1.16.6,<2.0.0
openvino-telemetry>=2023.2.1
packaging
2 changes: 1 addition & 1 deletion tools/benchmark_tool/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-c ../constraints.txt
numpy>=1.16.6
numpy>=1.16.6,<2.0.0
2 changes: 1 addition & 1 deletion tools/mo/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-c ../constraints.txt
numpy>=1.16.6
numpy>=1.16.6,<2.0.0
importlib-metadata; python_version < "3.8" and sys_platform == "win32"
networkx
defusedxml
Expand Down

0 comments on commit a19c34a

Please sign in to comment.