зеркало из https://github.com/microsoft/azure-cli.git
Debian packaging (apt-get) with updated README with instructions (#979)
* Debian directories for Debian (apt-get) package & update README - Packaging instructions (how to create the .deb file) will come later. * Change link to the key
This commit is contained in:
Родитель
4c1ea0b6a1
Коммит
f7876934fc
15
README.rst
15
README.rst
|
@ -15,6 +15,21 @@ For OSX and Linux, you can install with the following curl script.
|
|||
|
||||
$ curl -L https://aka.ms/InstallAzureCli | sudo bash
|
||||
|
||||
For those familiar with pip, use the following:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ pip install azure-cli
|
||||
|
||||
A Debian package is also available. Install as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ echo "deb https://azurecliprod.blob.core.windows.net/repos/apt/debian wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
|
||||
$ curl https://azurecliprod.blob.core.windows.net/azure-cli-preview.gpg.key | sudo apt-key add -
|
||||
$ sudo apt-get update && sudo apt-get install azure-cli
|
||||
|
||||
|
||||
We also maintain a docker image preconfigured with the Azure CLI.
|
||||
|
||||
.. code-block:: console
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
azure-cli (0.1.0-1) unstable; urgency=low
|
||||
|
||||
* Initial preview release
|
||||
* Includes version 0.1.0b7 of all required command modules
|
||||
|
||||
-- Azure Python CLI Team <azpycli@microsoft.com> Sun, 25 Sep 2016 17:00:00 -0700
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -0,0 +1,14 @@
|
|||
Source: azure-cli
|
||||
Section: python
|
||||
Priority: extra
|
||||
Maintainer: Azure Python CLI Team <azpycli@microsoft.com>
|
||||
Build-Depends: debhelper (>= 9), python, dh-virtualenv (>= 0.8), libssl-dev, libffi-dev, python-dev
|
||||
Standards-Version: 3.9.5
|
||||
Homepage: https://github.com/azure/azure-cli
|
||||
|
||||
Package: azure-cli
|
||||
Architecture: all
|
||||
Depends: ${python:Depends}, ${misc:Depends}
|
||||
Description: Azure CLI 2.0 - Preview
|
||||
A great cloud needs great tools; we're excited to introduce Azure CLI 2.0 - Preview,
|
||||
our next generation multi-platform command line experience for Azure.
|
|
@ -0,0 +1,21 @@
|
|||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: azure-cli
|
||||
Upstream-Contact: Azure Python CLI Team <azpycli@microsoft.com>
|
||||
Source: https://github.com/azure/azure-cli
|
||||
|
||||
Files: *
|
||||
Copyright: Copyright (c) Microsoft Corporation
|
||||
License: MIT
|
||||
Azure CLI
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
All rights reserved.
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -0,0 +1,16 @@
|
|||
export DH_VIRTUALENV_INSTALL_ROOT=/opt/
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --with python-virtualenv
|
||||
|
||||
override_dh_virtualenv:
|
||||
dh_virtualenv --sourcedirectory src/azure-cli --install-suffix az
|
||||
mkdir -p debian/azure-cli/usr/bin/
|
||||
echo "\043!/usr/bin/env bash\n/opt/az/bin/python -m azure.cli \"\044\100\"" > debian/azure-cli/usr/bin/az
|
||||
chmod 0755 debian/azure-cli/usr/bin/az
|
||||
mkdir -p debian/azure-cli/etc/bash_completion.d/
|
||||
echo "_python_argcomplete() {\n local IFS='\v'\n COMPREPLY=( \044(IFS=\"\044IFS\" COMP_LINE=\"\044COMP_LINE\" COMP_POINT=\"\044COMP_POINT\" _ARGCOMPLETE_COMP_WORDBREAKS=\"\044COMP_WORDBREAKS\" _ARGCOMPLETE=1 \"\044\061\" 8>&1 9>&2 1>/dev/null 2>/dev/null) )\n if [[ \044? != 0 ]]; then\n unset COMPREPLY\n fi\n}\ncomplete -o nospace -F _python_argcomplete "az"" > debian/azure-cli/etc/bash_completion.d/azure-cli
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --exclude=_cffi_backend
|
|
@ -0,0 +1 @@
|
|||
1.0
|
|
@ -0,0 +1,5 @@
|
|||
Packaging the CLI as a Debian package
|
||||
=====================================
|
||||
|
||||
# TODO - Include well formatted packaging instructions
|
||||
|
Загрузка…
Ссылка в новой задаче