Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dockerfiles/docker_tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pr-32342
pr-32459
24 changes: 0 additions & 24 deletions .github/dockerfiles/ov_build/debian_10_arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,6 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
ENV PATH="$SCCACHE_HOME:$PATH"

# Build Pythons
# Python 3.9

# To cross-compile Python 3.9 we need to first compile it for the host
RUN wget https://www.python.org/ftp/python/3.9.21/Python-3.9.21.tar.xz

RUN tar -xf Python-3.9.21.tar.xz && \
cd Python-3.9.21 && \
./configure --enable-optimizations && \
make -j $(nproc) && \
make altinstall

# Compile Python 3.9 for ARM
RUN cd Python-3.9.21 && make distclean && \
./configure \
--host=arm-linux-gnueabihf \
--build=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) \
--disable-ipv6 \
--enable-shared \
--prefix=/opt/python3.9_arm \
ac_cv_file__dev_ptmx=no \
ac_cv_file__dev_ptc=no && \
make -j $(nproc) && make altinstall

# Python 3.10
# To cross-compile Python 3.10 we need to first compile it for the host
RUN wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz
Expand Down Expand Up @@ -215,7 +192,6 @@ RUN cd Python-3.13.2 && make distclean && \
# Setup pip
ENV PIP_VERSION="24.0"
RUN python3 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.9 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.10 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.11 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.12 -m pip install --upgrade pip==${PIP_VERSION} && \
Expand Down
15 changes: 3 additions & 12 deletions .github/dockerfiles/ov_build/fedora_29/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ RUN chmod +x /install_build_dependencies.sh && \
rm -rf /var/lib/apt/lists/*

# Build Pythons
# Python 3.9
RUN cd /usr/src && \
wget https://www.python.org/ftp/python/3.9.21/Python-3.9.21.tar.xz && \
tar xvf Python-3.9.21.tar.xz
RUN cd /usr/src/Python-3.9.21 && \
./configure --enable-optimizations --enable-loadable-sqlite-extensions --prefix=/usr && \
make altinstall

# Python 3.10
RUN cd /usr/src && \
wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz && \
Expand Down Expand Up @@ -85,15 +77,14 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \

ENV PATH="$SCCACHE_HOME:$PATH"

# Use Python 3.9 as default
RUN python3.9 -m venv venv
# Use Python 3.10 as default
RUN python3.10 -m venv venv
ENV PATH="/venv/bin:$PATH"
RUN alternatives --install /usr/bin/python python /usr/bin/python3.9 10
RUN alternatives --install /usr/bin/python python /usr/bin/python3.10 10

# Setup pip
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
Expand Down
8 changes: 2 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ RUN apt-get update && \
# parallel gzip
pigz \
# Pythons
python3.9-dev \
python3.9-venv \
python3.9-distutils \
python3.10-dev \
python3.10-venv \
python3.10-distutils \
Expand Down Expand Up @@ -66,16 +63,15 @@ ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3.8.py && \
python3 get-pip-3.8.py --no-cache-dir pip==${PIP_VERSION} && \
python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.9 as default instead of Python 3.8
# Use Python 3.10 as default instead of Python 3.8
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
RUN python3.9 -m venv venv
RUN python3.10 -m venv venv
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
4 changes: 0 additions & 4 deletions .github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ RUN apt-get update && \
# parallel gzip
pigz \
# Pythons
python3.9-dev \
python3.9-venv \
python3.9-distutils \
python3.10-dev \
python3.10-venv \
python3.10-distutils \
Expand Down Expand Up @@ -80,7 +77,6 @@ ENV PATH="$SCCACHE_HOME:$PATH"
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.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
Expand Down
4 changes: 0 additions & 4 deletions .github/dockerfiles/ov_build/ubuntu_24_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ RUN apt-get update && \
# parallel gzip
pigz \
# Pythons
python3.9-dev \
python3.9-venv \
python3.9-distutils \
python3.10-dev \
python3.10-venv \
python3.10-distutils \
Expand Down Expand Up @@ -76,7 +73,6 @@ ENV PATH="/venv/bin:$PATH"
# Setup pip
ENV PIP_VERSION="24.0"
RUN /venv/bin/python3 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.9 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.10 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.11 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.12 -m pip install --upgrade pip==${PIP_VERSION} && \
Expand Down
3 changes: 2 additions & 1 deletion .github/dockerfiles/ov_test/fedora_33/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG REGISTRY="docker.io"
FROM ${REGISTRY}/library/fedora:33
FROM ${REGISTRY}/library/fedora:35

USER root

Expand All @@ -11,6 +11,7 @@ RUN dnf update -y && dnf install -y \
git \
curl \
python3 \
python3-pip \
findutils \
ocl-icd \
ocl-icd-devel \
Expand Down
14 changes: 7 additions & 7 deletions .github/dockerfiles/ov_test/ubuntu_20_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RUN apt-get update && \
# Samples
clang \
# Python
python3.9-dev \
python3.9-venv \
python3.9-distutils \
python3.10-dev \
python3.10-venv \
python3.10-distutils \
libhdf5-dev \
&& \
rm -rf /var/lib/apt/lists/*
Expand All @@ -45,13 +45,13 @@ ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3-8.py && \
python3 get-pip-3-8.py --no-cache-dir pip==${PIP_VERSION} && \
python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.9 as default instead of Python 3.8
# Use Python 3.10 as default instead of Python 3.8
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
RUN python3.9 -m venv venv
RUN python3.10 -m venv venv
ENV PATH="/venv/bin:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
ENV PIP_INSTALL_PATH=/venv/lib/python3.9/site-packages
ENV PIP_INSTALL_PATH=/venv/lib/python3.10/site-packages
2 changes: 1 addition & 1 deletion .github/workflows/fedora_29.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Fedora 29 (RHEL 8.4), Python 3.9
name: Fedora 29 (RHEL 8.4), Python 3.10
on:
workflow_dispatch:
inputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job_build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ on:
required: false
default: false
build-additional-python-packages:
description: 'Whether to build additional, i.e., non-system Python packages. Should have Python 3.9-3.13 installed'
description: 'Whether to build additional, i.e., non-system Python packages. Should have Python 3.10-3.13 installed'
type: boolean
required: false
default: false
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
- name: Build Python API and wheels
if: ${{ inputs.build-additional-python-packages }}
run: |
for py_version in "3.9" "3.10" "3.11" "3.12" "3.13"
for py_version in "3.10" "3.11" "3.12" "3.13"
do
export PY_BUILD_DIR=${{ github.workspace }}/py$py_version
mkdir -p $PY_BUILD_DIR
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/job_build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
type: string
required: true
build-additional-python-wheels:
description: 'Whether to build additional, i.e., non-system Python wheels. Should have Python 3.9-3.12 installed'
description: 'Whether to build additional, i.e., non-system Python wheels. Should have Python 3.10-3.13 installed'
type: boolean
required: false
default: false
Expand Down Expand Up @@ -198,16 +198,6 @@ jobs:
cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_PDB_DIR }} --component pdb
cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DEV_PACKAGE }} --component developer_package

# Setup additional Python versions for wheels building
- name: Setup Python 3.9
if: ${{ inputs.build-additional-python-wheels }}
uses: ./openvino/.github/actions/setup_python
with:
version: '3.9'
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
should-setup-pip-paths: 'true'
self-hosted-runner: 'true'

# Setup additional Python versions for wheels building
- name: Setup Python 3.10
if: ${{ inputs.build-additional-python-wheels }}
Expand Down Expand Up @@ -241,7 +231,7 @@ jobs:
- name: Build additional Python wheels
if: ${{ inputs.build-additional-python-wheels }}
run: |
$pyVersions = '3.9', '3.10', '3.11', '3.12', '3.13'
$pyVersions = '3.10', '3.11', '3.12', '3.13'
foreach ($pyVersion in $pyVersions) {
$pyBuildDir = "${{ github.workspace }}/py$pyVersion"
New-Item -ItemType Directory -Path "$pyBuildDir" -Force
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,6 @@ jobs:
working-directory: ${{ env.INSTALL_TEST_DIR }}

# Setup additional Python versions for wheels building
- name: Setup Python 3.9
uses: ./openvino/.github/actions/setup_python
with:
version: "3.9"
should-setup-pip-paths: 'false'
self-hosted-runner: 'false'

- name: Setup Python 3.10
uses: ./openvino/.github/actions/setup_python
with:
Expand All @@ -244,7 +237,7 @@ jobs:

- name: Build Python API and wheels
run: |
for py_version in "3.9" "3.10" "3.11" "3.12" "3.13"
for py_version in "3.10" "3.11" "3.12" "3.13"
do
python_exec_path=$(python$py_version -c "import sys; print(sys.executable)")
$python_exec_path -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/mac_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,6 @@ jobs:
popd

# Setup additional Python versions for wheels building
- name: Setup Python 3.9
uses: ./openvino/.github/actions/setup_python
with:
version: "3.9"
should-setup-pip-paths: 'false'
self-hosted-runner: 'false'

- name: Setup Python 3.10
uses: ./openvino/.github/actions/setup_python
with:
Expand All @@ -242,7 +235,7 @@ jobs:

- name: Build additional Python wheels
run: |
for py_version in "3.9" "3.10" "3.11" "3.12"
for py_version in "3.10" "3.11" "3.12"
do
python_exec_path=$(python$py_version -c "import sys; print(sys.executable)")
$python_exec_path -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
Expand Down Expand Up @@ -406,7 +399,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.10', '3.11', '3.12' ]
with:
runner: 'macos-14'
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/manylinux_2014.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ jobs:
cmake --install /work/build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /work/api_tests --component tests
"

- name: Build Python API (Python 3.9-3.13)
- name: Build Python API (Python 3.10-3.13)
run: |
SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")
SUPPORTED_PYTHON_VERSIONS=("3.10" "3.11" "3.12" "3.13")
for PY_VER in "${SUPPORTED_PYTHON_VERSIONS[@]}"; do
simpler_python_version=$(echo $PY_VER | sed -e 's/\.//g')
python_path=/opt/python/cp${simpler_python_version}-cp${simpler_python_version}/bin
Expand Down Expand Up @@ -279,8 +279,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.9"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.fedora_33 }}
- python-version: "3.10"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.debian_10_py310 }}
- python-version: "3.11"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/manylinux_2_28.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ jobs:
env:
CXXFLAGS: "-Wno-dangling-reference" # bug in gcc-14: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532

- name: Build Python API (Python 3.9-3.13)
- name: Build Python API (Python 3.10-3.13)
run: |
SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")
SUPPORTED_PYTHON_VERSIONS=("3.10" "3.11" "3.12" "3.13")
for PY_VER in "${SUPPORTED_PYTHON_VERSIONS[@]}"; do

py_build_dir=${{ github.workspace }}/build_py${PY_VER}
Expand Down Expand Up @@ -269,8 +269,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.9"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.fedora_33 }}
- python-version: "3.10"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.debian_10_py310 }}
- python-version: "3.11"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/py_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.9'
python-version: '3.10'

- name: Install dependencies
run: python -m pip install -r src/bindings/python/requirements_test.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_vs2022_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
defaults:
run:
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow_rerunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
- "Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)"
- "Linux RISC-V with Xuantie (Ubuntu 22.04, Python 3.10)"
- "Linux (Ubuntu 22.04, Python 3.11, Intel DPC\\+\\+ Compiler)"
- "Linux Sanitizers (Ubuntu 20.04, Python 3.9)"
- "Fedora 29 (RHEL 8.4), Python 3.9"
- "Linux Sanitizers (Ubuntu 22.04, Python 3.11)"
- "Fedora 29 (RHEL 8.4), Python 3.10"
- "Windows (VS 2022, Python 3.11, Release)"
- "Windows (VS 2022, Python 3.11, Debug)"
- "Windows Conditional Compilation (VS 2022, Python 3.11)"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/workflows_to_track.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ name: macOS ARM64 (Python 3.11)
==> ./dependency_review.yml <==
name: 'Dependency Review'
==> ./fedora_29.yml <==
name: Fedora 29 (RHEL 8.4), Python 3.9
name: Fedora 29 (RHEL 8.4), Python 3.10
==> ./code_snippets.yml <==
name: Code snippets
==> ./ubuntu_20.yml <==
name: Linux (Ubuntu 20.04, Python 3.9)
==> ./linux_riscv.yml <==
name: Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)
==> ./workflow_rerunner.yml <==
name: Rerun Workflow with Known Errors
==> ./linux_sanitizers.yml <==
name: Linux Sanitizers (Ubuntu 20.04, Python 3.9)
name: Linux Sanitizers (Ubuntu 22.04, Python 3.11)
==> ./py_checks.yml <==
name: Python API Checks
==> ./webassembly.yml <==
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,6 @@ Discontinued in 2025

Deprecated and to be removed in the future
--------------------------------------------
* Python 3.9 is now deprecated and will be unavailable after OpenVINO version 2025.4.
* ``openvino.Type.undefined`` is now deprecated and will be removed with version 2026.0.
``openvino.Type.dynamic`` should be used instead.
* APT & YUM Repositories Restructure:
Expand Down
Loading
Loading