pantry/projects/microsoft.com/azure-cli/package.yml
Marc Seitz 7506d017eb
+az (azure-cli) (#451)
* add azure-cli

* simplify build script

* fix srcroot
2023-03-04 20:12:37 -05:00

35 lines
754 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://github.com/Azure/azure-cli/archive/refs/tags/azure-cli-{{version}}.tar.gz
strip-components: 1
# if theres a github then we can parse the versions
versions:
github: Azure/azure-cli/tags # reads github tags from github
strip: /^azure-cli-/
dependencies:
openssl.org: 1.1
python.org: ^3.10
sourceware.org/libffi: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
rust-lang.org: '*'
linux:
freedesktop.org/pkg-config: '*'
script: |
_SRCROOT="$SRCROOT"
for venv in azure-cli{-telemetry,-core,}; do
SRCROOT="$_SRCROOT"/src/"$venv" python-venv.sh "{{prefix}}"/bin/az
done
provides:
- bin/az
test:
script: |
az cloud show --name AzureCloud