[PyOV] Delete repeated requirements files (#14609)
* [PyOV] Delete repeated requirements files * update azure jobs * update cmakefiles
This commit is contained in:
parent
3c31488dfe
commit
4e8d48a072
@ -149,7 +149,6 @@ jobs:
|
||||
sudo apt --assume-yes install openjdk-11-jdk libbz2-dev clang
|
||||
# For Python API
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/requirements.txt
|
||||
# For running Python API tests
|
||||
|
@ -151,7 +151,7 @@ jobs:
|
||||
export INSTALL_OPENVINO=$(INSTALL_OPENVINO)
|
||||
$(OPENVINO_CONTRIB_REPO_DIR)/modules/arm_plugin/scripts/install_build_dependencies.sh
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
|
||||
python3 -m pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/requirements.txt
|
||||
python3 -m pip install -r $(OPENVINO_REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
|
||||
workingDirectory: $(BUILD_OPENVINO)
|
||||
displayName: 'Install dependencies'
|
||||
|
@ -125,7 +125,6 @@ jobs:
|
||||
sudo apt --assume-yes install --no-install-recommends libopencv-imgproc-dev libopencv-imgcodecs-dev
|
||||
# For opencv-python: python3-setuptools and pip upgrade
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/wheel/requirements-dev.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/requirements.txt
|
||||
# For running Python API tests
|
||||
|
4
.github/workflows/code_style.yml
vendored
4
.github/workflows/code_style.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt --assume-yes install libusb-1.0-0-dev
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r ./src/bindings/python/src/compatibility/openvino/requirements.txt
|
||||
python3 -m pip install -r ./src/bindings/python/requirements.txt
|
||||
# Add for -DENABLE_PYTHON=ON, no cython
|
||||
python3 -m pip install -r ./src/bindings/python/src/compatibility/openvino/requirements-dev.txt
|
||||
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
sudo apt --assume-yes install shellcheck
|
||||
|
||||
- name: Install dependencies
|
||||
run: python3 -m pip install -r ./src/bindings/python/src/compatibility/openvino/requirements.txt
|
||||
run: python3 -m pip install -r ./src/bindings/python/requirements.txt
|
||||
|
||||
- name: CMake
|
||||
run: |
|
||||
|
@ -54,7 +54,3 @@ endif()
|
||||
# install
|
||||
|
||||
ie_cpack_add_component(${PYTHON_COMPONENT} HIDDEN)
|
||||
|
||||
install(FILES requirements.txt
|
||||
DESTINATION ${OV_CPACK_PYTHONDIR}
|
||||
COMPONENT ${PYTHON_COMPONENT})
|
||||
|
@ -67,8 +67,6 @@ add_custom_command(TARGET ${TARGET_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/__init__.py
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../__init__.py ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../__init__.py
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_BRIDGE_SRC_ROOT}/requirements.txt ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../../requirements.txt
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_BRIDGE_SRC_ROOT}/requirements.txt ${PYTHON_BRIDGE_OUTPUT_DIRECTORY}/../../requirements.txt
|
||||
)
|
||||
|
||||
# install
|
||||
|
@ -1 +0,0 @@
|
||||
numpy>=1.16.6
|
@ -1,27 +0,0 @@
|
||||
bandit
|
||||
black
|
||||
flake8
|
||||
flake8-annotations-complexity
|
||||
flake8-broken-line
|
||||
flake8-bugbear
|
||||
flake8-class-attributes-order
|
||||
flake8-comprehensions
|
||||
flake8-debugger
|
||||
flake8-eradicate
|
||||
flake8-executable
|
||||
flake8-expression-complexity
|
||||
flake8-print
|
||||
flake8-pytest-style
|
||||
flake8-rst-docstrings
|
||||
# Force version of pygments from flake8-rst-docstrings
|
||||
pygments>=2.8.1
|
||||
flake8-string-format
|
||||
flake8-variables-names
|
||||
flake8_builtins
|
||||
flake8_coding
|
||||
flake8_commas
|
||||
flake8_pep3101
|
||||
flake8_quotes
|
||||
mypy
|
||||
Pep8-naming
|
||||
radon
|
@ -84,7 +84,9 @@ addVersionDefines(pyopenvino.cpp CI_BUILD_NUMBER)
|
||||
if(OpenVINO_SOURCE_DIR)
|
||||
add_custom_command(TARGET ${PROJECT_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../openvino ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${OpenVINOPython_SOURCE_DIR}/src/openvino ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${OpenVINOPython_SOURCE_DIR}/requirements.txt ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../requirements.txt
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${OpenVINOPython_SOURCE_DIR}/requirements.txt ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../../requirements.txt
|
||||
)
|
||||
endif()
|
||||
|
||||
@ -105,6 +107,10 @@ if(OpenVINO_SOURCE_DIR OR OpenVINODeveloperPackage_FOUND)
|
||||
DESTINATION ${OV_CPACK_PYTHONDIR}/openvino
|
||||
COMPONENT ${OV_CPACK_COMP_PYTHON_OPENVINO}_${pyversion})
|
||||
|
||||
install(FILES ${OpenVINOPython_SOURCE_DIR}/requirements.txt
|
||||
DESTINATION ${OV_CPACK_PYTHONDIR}
|
||||
COMPONENT ${OV_CPACK_COMP_PYTHON_OPENVINO}_${pyversion})
|
||||
|
||||
install(DIRECTORY ${OpenVINOPython_SOURCE_DIR}/tests
|
||||
DESTINATION tests/${PROJECT_NAME}
|
||||
COMPONENT tests EXCLUDE_FROM_ALL)
|
||||
|
Loading…
Reference in New Issue
Block a user