-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Packaging] Release Azure Linux 3 RPM package #29348
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Packaging |
Azure Linux 3 uses Python 3.12. We need to resolve #27673 first. |
@@ -21,8 +21,8 @@ COPY . . | |||
RUN dos2unix ./scripts/release/rpm/azure-cli.spec && \ | |||
REPO_PATH=$(pwd) CLI_VERSION=$cli_version PYTHON_PACKAGE=python3 PYTHON_CMD=python3 \ | |||
rpmbuild -v -bb --clean scripts/release/rpm/azure-cli.spec && \ | |||
cp /usr/src/mariner/RPMS/*/azure-cli-${cli_version}-1.*.rpm /azure-cli-dev.rpm && \ | |||
mkdir /out && cp /usr/src/mariner/RPMS/*/azure-cli-${cli_version}-1.*.rpm /out/ | |||
cp /usr/src/*/RPMS/*/azure-cli-${cli_version}-1.*.rpm /azure-cli-dev.rpm && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the new path on Azure Linux 3.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/usr/src/azl/RPMS/x86_64/azure-cli-2.62.0-1.azl3.x86_64.rpm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add some example names in the comment.
@@ -839,7 +841,7 @@ jobs: | |||
set -ex | |||
|
|||
CLI_VERSION=`cat $SYSTEM_ARTIFACTSDIRECTORY/metadata/version` | |||
RPM_NAME=$(find $SYSTEM_ARTIFACTSDIRECTORY/rpm/ -type f -name "azure-cli-$CLI_VERSION-1.cm2.*.rpm" -printf '%f\n') | |||
RPM_NAME=$(find $SYSTEM_ARTIFACTSDIRECTORY/rpm/ -type f -name "azure-cli-$CLI_VERSION-1.*.rpm" -printf '%f\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will be the new package name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azure-cli-2.62.0-1.azl3.x86_64.rpm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some example names to the comment, including both Mariner 2 and Azure Linux 3? This will increase the readability.
@@ -14,7 +14,7 @@ time az self-test | |||
time az --version | |||
|
|||
cd /azure-cli/ | |||
pip install wheel | |||
python -m pip install --upgrade pip setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, python3-setuptools
package is installed by python3-devel
package. The pip
and setuptools
are not latest version.
In Azure Linux 3, setuptools
is not installed automatically. Use pip
to explicitly install latest pip
and setuptools
wheel
is not a required package.
set -ev | ||
|
||
export REPO_PATH=`cd $(dirname $0); cd ../../../; pwd` | ||
rpmbuild -v -bb --clean $REPO_PATH/scripts/release/rpm/azure-cli.spec && cp /root/rpmbuild/RPMS/x86_64/* /mnt/output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is not used anymore.
PR title can be changed to
|
Co-authored-by: Jiashuo Li <4003950+jiasli@users.noreply.github.com>
Support Azure Linux 3
Resolve #29382