OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CI] Drop Python 3.10 from NCC naming style check (#40010)
Alicja Miloszewska4fd3dd0607ea
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex 6833bae5c14..c0411b737f8 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-38775+pr-40010diff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_code_style/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_code_style/Dockerfileindex 2946f35452f..6edf2bc46fa 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_code_style/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_code_style/Dockerfile@@ -18,6 +18,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \RUN apt-get update && \apt-get install software-properties-common && \add-apt-repository --yes --no-update ppa:git-core/ppa && \+ add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \apt-get update && \apt-get install \curl \@@ -28,14 +29,29 @@ RUN apt-get update && \shellcheck \clang-14 \libclang-14-dev \+ python3.11-dev \+ python3.11-venv \&& \rm -rf /var/lib/apt/lists/*ENV PIP_VERSION="24.0"RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \rm -f get-pip.py+# Use Python 3.11 as default instead of Python 3.10+# Using venv here 'cause other methods to switch the default Python on Ubuntu break both system and wheels build+RUN python3.11 -m venv venv+ENV PATH="/venv/bin:$PATH"++# 'packaging' is required by OpenVINO cmake (check_python_requirements.py). get-pip.py installs it+# for the system Python 3.11, but not as part of the venv+# chown: code_style jobs run the container as uid 1001, so the venv must be writable for pip install, see+# https://github.com/openvinotoolkit/openvino/blob/154c1eecbad6a481cae9a110cd28dbe6842f2322/.github/workflows/code_style.yml#L210+RUN python3 -m pip install --no-cache-dir packaging && \+ chown -R 1001 /venv+# Install CMake 3.26.4 using the Kitware installer scriptRUN wget https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.sh && \sh cmake-3.26.4-linux-x86_64.sh --skip-license --prefix=/usr/local && \diff --git a/cmake/developer_package/ncc_naming_style/ncc_naming_style.cmake b/cmake/developer_package/ncc_naming_style/ncc_naming_style.cmakeindex 56fd4408db8..0a89928059a 100644--- a/cmake/developer_package/ncc_naming_style/ncc_naming_style.cmake+++ b/cmake/developer_package/ncc_naming_style/ncc_naming_style.cmake@@ -20,17 +20,7 @@ if(ENABLE_NCC_STYLE)endif()if(ENABLE_NCC_STYLE)- if(Python3_VERSION_MINOR EQUAL 6)- set(clang_version 10)- elseif(Python3_VERSION_MINOR EQUAL 7)- set(clang_version 11)- elseif(Python3_VERSION_MINOR EQUAL 8)- set(clang_version 12)- elseif(Python3_VERSION_MINOR EQUAL 9)- set(clang_version 12)- elseif(Python3_VERSION_MINOR EQUAL 10)- set(clang_version 14)- elseif(Python3_VERSION_MINOR EQUAL 11)+ if(Python3_VERSION_MINOR EQUAL 11)set(clang_version 14)elseif(Python3_VERSION_MINOR EQUAL 12)set(clang_version 15)diff --git a/cmake/developer_package/ncc_naming_style/requirements_dev.txt b/cmake/developer_package/ncc_naming_style/requirements_dev.txtindex 3af21f73166..fa37dc00288 100644--- a/cmake/developer_package/ncc_naming_style/requirements_dev.txt+++ b/cmake/developer_package/ncc_naming_style/requirements_dev.txt@@ -1,4 +1,3 @@-clang==14.0; python_version == '3.10'clang==14.0; python_version == '3.11'clang==15.0.7; python_version == '3.12'pyyaml\ No newline at end of file