diff --git a/Dockerfile b/Dockerfile index cb0dc0b55c9..f723c87baca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. #--------------------------------------------------------------------------------------------- -ARG PYTHON_VERSION="3.10" +ARG PYTHON_VERSION="3.11" FROM python:${PYTHON_VERSION}-alpine diff --git a/build_scripts/windows/scripts/build.cmd b/build_scripts/windows/scripts/build.cmd index 94414ed694b..c1cc4859baf 100644 --- a/build_scripts/windows/scripts/build.cmd +++ b/build_scripts/windows/scripts/build.cmd @@ -25,7 +25,7 @@ if "%ARCH%"=="x86" ( echo Please set ARCH to "x86" or "x64" goto ERROR ) -set PYTHON_VERSION=3.10.10 +set PYTHON_VERSION=3.11.5 set WIX_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/msi/wix310-binaries-mirror.zip" set PYTHON_DOWNLOAD_URL="https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-embed-%PYTHON_ARCH%.zip" diff --git a/scripts/release/debian/build.sh b/scripts/release/debian/build.sh index f6471251312..700917cba8d 100755 --- a/scripts/release/debian/build.sh +++ b/scripts/release/debian/build.sh @@ -15,7 +15,7 @@ set -exv ls -Rl /mnt/artifacts WORKDIR=`cd $(dirname $0); cd ../../../; pwd` -PYTHON_VERSION="3.10.10" +PYTHON_VERSION="3.11.5" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Update APT packages diff --git a/scripts/release/homebrew/docker/formula_generate.py b/scripts/release/homebrew/docker/formula_generate.py index ad26b932754..8c2ab96ada9 100644 --- a/scripts/release/homebrew/docker/formula_generate.py +++ b/scripts/release/homebrew/docker/formula_generate.py @@ -19,6 +19,7 @@ CLI_VERSION = os.environ['CLI_VERSION'] HOMEBREW_UPSTREAM_URL = os.environ['HOMEBREW_UPSTREAM_URL'] HOMEBREW_FORMULAR_LATEST = "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/a/azure-cli.rb" +PYTHON_VERSION = '3.11' def main(): @@ -124,6 +125,10 @@ def update_formula() -> str: resp.raise_for_status() text = resp.text + # update python version + text = re.sub('depends_on "python@.*"', f'depends_on "python@{PYTHON_VERSION}"', text, 1) + text = re.sub(r'virtualenv_create\(libexec, "python.*"', f'virtualenv_create(libexec, "python{PYTHON_VERSION}"', text, 1) # pylint: disable=line-too-long + # update url and sha256 of azure-cli text = re.sub('url ".*"', 'url "{}"'.format(HOMEBREW_UPSTREAM_URL), text, 1) upstream_sha = compute_sha256(HOMEBREW_UPSTREAM_URL)