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 azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ jobs:
-e CLI_VERSION=$CLI_VERSION \
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
--name azurecli \
mcr.microsoft.com/azurelinux/base/python:3 \
mcr.microsoft.com/azurelinux/base/python:3.12 \
/mnt/scripts/run.sh

# clean up
Expand Down
3 changes: 3 additions & 0 deletions scripts/release/homebrew/docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Pin setuptools<82 because homebrew-pypi-poet (abandoned since 2018) uses pkg_resources
# which was removed in setuptools 82+. See https://github.com/Azure/azure-cli/issues/32800
setuptools<82
homebrew-pypi-poet~=0.10.0
jinja2~=3.1.6
requests>=2.20.0
Expand Down
8 changes: 7 additions & 1 deletion scripts/release/homebrew/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

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

tdnf install -y ca-certificates
if command -v tdnf &> /dev/null; then
# Azure Linux
tdnf install -y ca-certificates
elif command -v apt-get &> /dev/null; then
# Debian/Ubuntu
apt-get update && apt-get install -y ca-certificates
fi

pip install wheel
pip install -U pip
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/homebrew/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docker run -v $docker_files:/mnt/scripts \
-e CLI_VERSION=$CLI_VERSION \
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
--name azurecli \
python:3.6 \
python:3.12-bookworm \
/mnt/scripts/run.sh

# clean up
Expand Down