Skip to content

Commit 9fd855c

Browse files
{Packaging} Bump python version to 3.12 in homebrew release script. (#32793)
1 parent 16e043d commit 9fd855c

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ jobs:
613613
-e CLI_VERSION=$CLI_VERSION \
614614
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
615615
--name azurecli \
616-
mcr.microsoft.com/azurelinux/base/python:3 \
616+
mcr.microsoft.com/azurelinux/base/python:3.12 \
617617
/mnt/scripts/run.sh
618618
619619
# clean up

scripts/release/homebrew/docker/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Pin setuptools<82 because homebrew-pypi-poet (abandoned since 2018) uses pkg_resources
2+
# which was removed in setuptools 82+. See https://github.com/Azure/azure-cli/issues/32800
3+
setuptools<82
14
homebrew-pypi-poet~=0.10.0
25
jinja2~=3.1.6
36
requests>=2.20.0

scripts/release/homebrew/docker/run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
root=$(cd $(dirname $0); pwd)
44

5-
tdnf install -y ca-certificates
5+
if command -v tdnf &> /dev/null; then
6+
# Azure Linux
7+
tdnf install -y ca-certificates
8+
elif command -v apt-get &> /dev/null; then
9+
# Debian/Ubuntu
10+
apt-get update && apt-get install -y ca-certificates
11+
fi
612

713
pip install wheel
814
pip install -U pip

scripts/release/homebrew/pipeline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ docker run -v $docker_files:/mnt/scripts \
1717
-e CLI_VERSION=$CLI_VERSION \
1818
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
1919
--name azurecli \
20-
python:3.6 \
20+
python:3.12-bookworm \
2121
/mnt/scripts/run.sh
2222

2323
# clean up

0 commit comments

Comments
 (0)