Add Support for PYTHON|3.12.2 and PYTHON|3.11.8 (#2359)

* Add support for Python 3.12.2 and 3.11.8

* add python|3.12.2 and 3.11.8

* update base tag for python|3.12.2 and python|3.11.8

* refactor

* refactor

* refactor

* update dockerfile path

* test pipeline

* update python version in dockerfiles

* Update base tag for runtime images

---------

Co-authored-by: root <root@Akshay-D22.fareast.corp.microsoft.com>
This commit is contained in:
kumaraksh1 2024-03-12 22:09:38 +05:30 коммит произвёл GitHub
Родитель 9de9485111
Коммит 65fa32e00c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
11 изменённых файлов: 29 добавлений и 17 удалений

Просмотреть файл

@ -1,6 +1,6 @@
# This file was auto-generated from 'constants.yaml'. Changes may be overridden.
PYTHON_RUNTIME_BASE_TAG='20240110.3'
PYTHON_RUNTIME_BASE_TAG='20240227.1'
PIP_VERSION='21.2.4'
PYTHON27_VERSION='2.7.18'
PYTHON36_VERSION='3.6.15'
@ -8,5 +8,5 @@ PYTHON37_VERSION='3.7.15'
PYTHON38_VERSION='3.8.18'
PYTHON39_VERSION='3.9.18'
PYTHON310_VERSION='3.10.13'
PYTHON311_VERSION='3.11.7'
PYTHON312_VERSION='3.12.1'
PYTHON311_VERSION='3.11.8'
PYTHON312_VERSION='3.12.2'

Просмотреть файл

@ -149,7 +149,7 @@
file-name-prefix: __
- name: python-versions
constants:
python-runtime-base-tag: 20240110.3
python-runtime-base-tag: 20240227.1
pip-version: 21.2.4
python27-version: 2.7.18
python36-version: 3.6.15
@ -157,8 +157,8 @@
python38-version: 3.8.18
python39-version: 3.9.18
python310-version: 3.10.13
python311-version: 3.11.7
python312-version: 3.12.1
python311-version: 3.11.8
python312-version: 3.12.2
runtime-versions:
- 3.7-debian-bullseye
- 3.7-debian-buster

Просмотреть файл

@ -1246,7 +1246,9 @@
- 3.9.18
- 3.10.13
- 3.11.7
- 3.11.8
- 3.12.1
- 3.12.2
### bullseye
@ -1272,8 +1274,10 @@
- 3.11.0
- 3.11.6
- 3.11.7
- 3.11.8
- 3.12.0
- 3.12.1
- 3.12.2
### buster
@ -1299,7 +1303,9 @@
- 3.10.13
- 3.11.6
- 3.11.7
- 3.11.8
- 3.12.1
- 3.12.2
### focal-scm

Просмотреть файл

@ -29,7 +29,7 @@ ADD build ${BUILD_DIR}
RUN find ${IMAGES_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
RUN find ${BUILD_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
ENV PYTHON_VERSION 3.11.7
ENV PYTHON_VERSION 3.11.8
RUN true
COPY build/__pythonVersions.sh ${BUILD_DIR}
RUN true
@ -58,7 +58,7 @@ RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
RUN set -ex \
&& cd /opt/python/ \
&& ln -s 3.11.7 3.11 \
&& ln -s 3.11.8 3.11 \
&& ln -s 3.11 3 \
&& echo /opt/python/3/lib >> /etc/ld.so.conf.d/python.conf \
&& ldconfig \

Просмотреть файл

@ -29,7 +29,7 @@ ADD build ${BUILD_DIR}
RUN find ${IMAGES_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
RUN find ${BUILD_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
ENV PYTHON_VERSION 3.11.0
ENV PYTHON_VERSION 3.11.8
RUN true
COPY build/__pythonVersions.sh ${BUILD_DIR}
RUN true
@ -58,7 +58,7 @@ RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
RUN set -ex \
&& cd /opt/python/ \
&& ln -s 3.11.0 3.11 \
&& ln -s 3.11.8 3.11 \
&& ln -s 3.11 3 \
&& echo /opt/python/3/lib >> /etc/ld.so.conf.d/python.conf \
&& ldconfig \

Просмотреть файл

@ -29,7 +29,7 @@ ADD build ${BUILD_DIR}
RUN find ${IMAGES_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
RUN find ${BUILD_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
ENV PYTHON_VERSION 3.12.1
ENV PYTHON_VERSION 3.12.2
RUN true
COPY build/__pythonVersions.sh ${BUILD_DIR}
RUN true
@ -58,7 +58,7 @@ RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
RUN set -ex \
&& cd /opt/python/ \
&& ln -s 3.12.1 3.12 \
&& ln -s 3.12.2 3.12 \
&& ln -s 3.12 3 \
&& echo /opt/python/3/lib >> /etc/ld.so.conf.d/python.conf \
&& ldconfig \

Просмотреть файл

@ -29,7 +29,7 @@ ADD build ${BUILD_DIR}
RUN find ${IMAGES_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
RUN find ${BUILD_DIR} -type f -iname "*.sh" -exec chmod +x {} \;
ENV PYTHON_VERSION 3.12.0
ENV PYTHON_VERSION 3.12.2
RUN true
COPY build/__pythonVersions.sh ${BUILD_DIR}
RUN true
@ -58,7 +58,7 @@ RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
RUN set -ex \
&& cd /opt/python/ \
&& ln -s 3.12.0 3.12 \
&& ln -s 3.12.2 3.12 \
&& ln -s 3.12 3 \
&& echo /opt/python/3/lib >> /etc/ld.so.conf.d/python.conf \
&& ldconfig \

Просмотреть файл

@ -5,4 +5,6 @@
3.9.18, E3FF2839C048B25C084DEBE9B26995E310250568,
3.10.13, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.7, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.8, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.12.1, 7169605F62C751356D054A26A821E680E5FA6305,
3.12.2, 7169605F62C751356D054A26A821E680E5FA6305,

Просмотреть файл

@ -10,8 +10,10 @@
3.11.0b1, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.6, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.7, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.8, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.12.0, 7169605F62C751356D054A26A821E680E5FA6305,
3.12.1, 7169605F62C751356D054A26A821E680E5FA6305,
3.12.2, 7169605F62C751356D054A26A821E680E5FA6305,
3.7.12, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,
3.7.15, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,
3.7.9, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,

Просмотреть файл

@ -8,7 +8,9 @@
3.10.8, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.6, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.7, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.11.8, A035C8C19219BA821ECEA86B64E628F8D684696D,
3.12.1, 7169605F62C751356D054A26A821E680E5FA6305,
3.12.2, 7169605F62C751356D054A26A821E680E5FA6305,
3.6.12, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,
3.6.15, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,
3.7.12, 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D,

Просмотреть файл

@ -6,7 +6,7 @@ namespace Microsoft.Oryx.BuildScriptGenerator.Common
{
public static class PythonVersions
{
public const string PythonRuntimeBaseTag = "20240110.3";
public const string PythonRuntimeBaseTag = "20240227.1";
public const string PipVersion = "21.2.4";
public const string Python27Version = "2.7.18";
public const string Python36Version = "3.6.15";
@ -14,8 +14,8 @@ namespace Microsoft.Oryx.BuildScriptGenerator.Common
public const string Python38Version = "3.8.18";
public const string Python39Version = "3.9.18";
public const string Python310Version = "3.10.13";
public const string Python311Version = "3.11.7";
public const string Python312Version = "3.12.1";
public const string Python311Version = "3.11.8";
public const string Python312Version = "3.12.2";
public static readonly List<string> RuntimeVersions = new List<string> { "3.7-debian-bullseye", "3.7-debian-buster", "3.8-debian-bookworm", "3.8-debian-bullseye", "3.8-debian-buster", "3.9-debian-bookworm", "3.9-debian-bullseye", "3.9-debian-buster", "3.10-debian-bookworm", "3.10-debian-bullseye", "3.10-debian-buster", "3.11-debian-bookworm", "3.11-debian-bullseye", "3.12-debian-bookworm", "3.12-debian-bullseye", "dynamic-debian-buster" };
}
}