[PyOV] Bump `numpy` to 1.24 in runtime (#16886)

* Bump runtime numpy

* Try forcing lower numpy in tests

* Lower numpy in tox

* Force numpy
This commit is contained in:
Przemyslaw Wysocki 2023-04-17 11:25:26 +02:00 committed by GitHub
parent d329f4ddd3
commit 41f0419b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
numpy>=1.16.6,<=1.23.4
numpy>=1.16.6,<1.25

View File

@ -17,6 +17,7 @@ passenv =
commands=
{envbindir}/python setup.py bdist_wheel
{envbindir}/pip install --no-index --pre --find-links=dist/ openvino
pip install numpy<=1.23.5 # ONNX==1.12 requires numpy<1.24
pytest --backend={env:OV_BACKEND} tests -m "not template_plugin" -v -k 'not _cuda' --ignore=tests/test_onnx/test_zoo_models.py --ignore=tests/test_utils
pytest --backend={env:OV_BACKEND} tests_compatibility/test_ngraph -v -k 'not _cuda' --ignore=tests_compatibility/test_onnx/test_zoo_models.py
@ -24,6 +25,7 @@ commands=
commands=
{envbindir}/python setup.py bdist_wheel
{envbindir}/pip install --no-index --pre --find-links=dist/ openvino
pip install numpy<=1.23.5 # ONNX==1.12 requires numpy<1.24
pytest --backend={env:OV_BACKEND} tests/test_onnx/test_zoo_models.py -v -n 4 --forked -k 'not _cuda' --model_zoo_xfail
[testenv:devenv]