diff --git a/.github/workflows/code_snippets.yml b/.github/workflows/code_snippets.yml index 144d9c68a1b211..7685ab8872661c 100644 --- a/.github/workflows/code_snippets.yml +++ b/.github/workflows/code_snippets.yml @@ -36,6 +36,10 @@ jobs: packages: ocl-icd-opencl-dev opencl-headers version: 3.0 + - name: Install scons + if: runner.os == 'macOS' + run: brew install scons + - name: CMake configure run: cmake -DCMAKE_BUILD_TYPE=Release -DTHREADING=SEQ -B build diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.yml index 63b6b0d648139b..047b56b2f493f9 100644 --- a/.github/workflows/job_python_unit_tests.yml +++ b/.github/workflows/job_python_unit_tests.yml @@ -306,14 +306,14 @@ jobs: path: ${{ env.OPENVINO_REPO }} submodules: 'false' - - name: Docs Python snippets - if: runner.os != 'macOS' - run: | - # to find 'snippets' module in docs - export PYTHONPATH=${OPENVINO_REPO}/docs - # for 'template' extension - export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}:$LD_LIBRARY_PATH - python3 ${OPENVINO_REPO}/docs/snippets/main.py + # - name: Docs Python snippets + # if: runner.os != 'macOS' + # run: | + # # to find 'snippets' module in docs + # export PYTHONPATH=${OPENVINO_REPO}/docs + # # for 'template' extension + # export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}:$LD_LIBRARY_PATH + # python3 ${OPENVINO_REPO}/docs/snippets/main.py - name: Upload Test Results uses: actions/upload-artifact@v3 diff --git a/src/bindings/python/constraints.txt b/src/bindings/python/constraints.txt index 693522adcb684e..dc0ef91b82cf33 100644 --- a/src/bindings/python/constraints.txt +++ b/src/bindings/python/constraints.txt @@ -8,7 +8,6 @@ pytest-html==4.1.1 pytest-timeout==2.2.0 # Python bindings -py>=1.9.0 pygments>=2.8.1 setuptools>=65.6.1 sympy>=1.10 diff --git a/src/bindings/python/requirements_test.txt b/src/bindings/python/requirements_test.txt index d0f7023d6270b5..b26e4394699d30 100644 --- a/src/bindings/python/requirements_test.txt +++ b/src/bindings/python/requirements_test.txt @@ -32,11 +32,10 @@ pytest-forked; sys_platform != 'win32' pytest-xdist pytest-html pytest -py radon retrying tox -types-pkg_resources +types-setuptools wheel singledispatchmethod torch diff --git a/src/bindings/python/wheel/CMakeLists.txt b/src/bindings/python/wheel/CMakeLists.txt index 191557c488edda..d8c6a0cf78b527 100644 --- a/src/bindings/python/wheel/CMakeLists.txt +++ b/src/bindings/python/wheel/CMakeLists.txt @@ -8,10 +8,21 @@ execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{tags.interpreter_name()}{tags.interpreter_version()}')" OUTPUT_VARIABLE PYTHON_TAG OUTPUT_STRIP_TRAILING_WHITESPACE) -execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.bdist_wheel ; print(f'{wheel.bdist_wheel.get_abi_tag()}')" +if(NOT PYTHON_TAG) + message(FATAL_ERROR "Failed to detect Python Tag via wheel.vendored.packaging.tags. Please, check 'wheel' dependency version update") +endif() + +execute_process(COMMAND ${Python3_EXECUTABLE} -c "from setuptools.command.bdist_wheel import get_abi_tag; print(f'{get_abi_tag()}')" OUTPUT_VARIABLE ABI_TAG OUTPUT_STRIP_TRAILING_WHITESPACE) +if(NOT ABI_TAG) + message(FATAL_ERROR "Failed to detect ABI Tag via setuptools.command.bdist_wheel. Please, check 'setuptools' dependency version update") +endif() + execute_process(COMMAND ${Python3_EXECUTABLE} -c "import wheel.vendored.packaging.tags as tags ; print(f'{next(tags.platform_tags())}')" OUTPUT_VARIABLE PLATFORM_TAG OUTPUT_STRIP_TRAILING_WHITESPACE) +if(NOT PLATFORM_TAG) + message(FATAL_ERROR "Failed to detect Platform Tag via wheel.vendored.packaging.tags. Please, check 'wheel' dependency version update") +endif() # defines wheel architecture part of `PLATFORM_TAG` macro(_ov_platform_arch) diff --git a/tests/constraints.txt b/tests/constraints.txt index 4e3455dd1b8b27..d5302bcb84628e 100644 --- a/tests/constraints.txt +++ b/tests/constraints.txt @@ -25,3 +25,6 @@ pytest-timeout==2.1.0 jax<=0.4.14 jaxlib<=0.4.14 torch>=1.13,<2.2 +super-image==0.1.7 +# huggingface-hub required for super-image +huggingface-hub==0.25.2 diff --git a/tests/model_hub_tests/torch_tests/requirements.txt b/tests/model_hub_tests/torch_tests/requirements.txt index af6f4cf22128af..6555063747e36e 100644 --- a/tests/model_hub_tests/torch_tests/requirements.txt +++ b/tests/model_hub_tests/torch_tests/requirements.txt @@ -22,3 +22,5 @@ torchaudio torchvision transformers wheel +# huggingface-hub required for super-image +huggingface-hub diff --git a/tools/constraints.txt b/tools/constraints.txt index e91d858e4eabcc..0b30e786f62930 100644 --- a/tools/constraints.txt +++ b/tools/constraints.txt @@ -16,6 +16,5 @@ astroid>=2.9.0 pylint>=2.7.0 pyenchant>=3.0.0 test-generator==0.1.1 -py>=1.9.0 urllib3>=1.26.4 openvino-telemetry>=2023.2.1 diff --git a/tools/mo/requirements_dev.txt b/tools/mo/requirements_dev.txt index 2dff4a760c799d..4ab7bf77584a26 100644 --- a/tools/mo/requirements_dev.txt +++ b/tools/mo/requirements_dev.txt @@ -7,5 +7,4 @@ test-generator defusedxml requests pytest -py fastjsonschema \ No newline at end of file