Skip to main content

Microsoft Azure CLI Developer Tools

Project description

Microsoft Azure CLI Dev Tools (azdev)

The azdev tool is designed to aid new and experienced developers in contributing to Azure CLI command modules and extensions.

Setting up your development environment

  1. Install Python 3.5+ or 2.7+ from http://python.org. Please note that the version of Python that comes preinstalled on OSX is 2.7.

  2. Fork and clone the repository or repositories you wish to develop for.
  3. Create a new virtual environment for Python in the root of your clone. You can do this by running:

    Python 3.5+ (all platforms):

    python -m venv env

    or:

    python3 -m venv env

    Python 2.7+ (all platforms):

    python -m virtualenv env
  4. Activate the env virtual environment by running:

    Windows CMD.exe:

    env\scripts\activate.bat

    Windows Powershell:

    env\scripts\activate.ps1

    OSX/Linux (bash):

    source env/bin/activate
  5. Install azdev by running:

    pip install azdev
  6. Complete setup by running:

    azdev setup

    This will launch the interactive setup process. To see non-interactive options run azdev setup -h.

Reporting issues and feedback

If you encounter any bugs with the tool please file an issue in the Issues section of our GitHub repo.

Contribute Code

This project has adopted the Microsoft Open Source Code of Conduct.

For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

License

Azure CLI Dev Tools (azdev)

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.::

Release History

0.1.8

  • fix: azdev test cannot be used in python 3.8.1 or later

0.1.7

  • fix: azdev test cannot find core tests

0.1.6

  • Fix bug: azdev==0.1.5 help commands’ error

0.1.5

  • azdev extension add/remove:
    • Add ability to supply wildcard (*) to install all available dev extensions.

    • Add ability to remove all installed dev extensions.

  • azdev setup:
    • Add ability to install all extensions using –ext/-e *.

    • Add ability to install CLI edge build with –cli/-c EDGE.

  • azdev style/test/linter:
    • Add special names CLI and EXT to allow running on just CLI modules or just extensions. extensions which have changed based on a git diff.

  • azdev linter:
    • Added –include-whl-extensions flag to permit running the linter on extensions installed using the az extension add command.

  • azdev verify license:
    • Command will not check any dev-installed CLI and extension repos. Previously, it only checked the CLI repo.

  • New Command:
    • azdev cli/extension generate-docs to generate sphinx documentation.

0.1.4

  • azdev linter: Fix issue with help example rule.

  • azdev style: Omit namespace packages from core modules.

  • azdev verify document-map: Updates to work correctly on Linux.

0.1.3

  • azdev linter: Fix issue where certain installations would fail on ci_exclusions.yml not found.

0.1.2

  • azdev setup: Fix regression where azure.cli could not be run after installation.

0.1.1

  • azdev cli/extension create: Fix issue where supporting files were not included. Adjust generation logic.

0.1.0

  • Update for compatability with azure-cli 2.0.68’s new package structure.

  • BREAKING CHANGE: Removed azdev cli update-setup. Package changes to azure-cli no longer require this.

  • BREAKING CHANGE: azdev verify history and azdev cli check-versions no longer accept any arguments. Since there are now far fewer modules, these were deemed unnecessary.

0.0.6

  • Added new commands azdev cli create and azdev extension create to scaffold new modules/extensions.

  • azdev setup: Tweaks to interactive experience.

  • azdev test: Fix issue where using –profile did not use the correct index.

    Changed the behavior to switch back to the original profile upon completion of tests.

0.0.5

  • Fix issue where azdev cli check-versions did not accept the short form of a module name.

  • Update azdev cli check-versions to allow modules as a positional argument, consistent with other azdev commands.

  • Fix issue where azdev test –discover could result in a stack trace when a virtual environment exists within an extensions repo.

0.0.4

  • Fix critical bug in azdev setup.

0.0.3

  • Adds new commands azdev extension build and azdev extension publish to simplify extension publishing.

  • Updates default exclusions for azdev linter when used on extensions.

  • Adds a –ci-exclusions flag to azdev linter to emulate CI mode when run locally.

  • Fix issue where azdev test –discover could result in a stack trace when a virtual environment exists within a cloned repo.

  • Tweaks thresholds for azdev per load-times.

0.0.2

  • Changes the behavior of azdev test to, by default, run tests on everything to be consistent with commands like azdev style and azdev linter.

  • Removes azdev verify version and splits into two commands azdev cli check-versions and azdev cli update-setup.

  • Various modifications to play nicely with azure-cli’s CI build system.

  • Revamps azdev perf load-times to reduce spurious failures.

0.0.1

  • Initial release

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azdev-0.1.8.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

azdev-0.1.8-py2.py3-none-any.whl (80.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file azdev-0.1.8.tar.gz.

File metadata

  • Download URL: azdev-0.1.8.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for azdev-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3aca7c98902760a125d80e336c1960c94751ac97d47299f6c872b6b870729060
MD5 4c9c029994d638ea78a7ba2e5cc982cb
BLAKE2b-256 26b3e90a3d82517d0e67d66c68d4948f50df5460083d749b90620911ec3dcb94

See more details on using hashes here.

File details

Details for the file azdev-0.1.8-py2.py3-none-any.whl.

File metadata

  • Download URL: azdev-0.1.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for azdev-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f1d9bc5be667fbb3aa57580a2d58b5bbc9b608c0dba985c9fe6bf3d70dc59c42
MD5 e33ec450e5e7696041f004466f8b266b
BLAKE2b-256 9916e453cb6d7f17fbce8b7c1eaf0277d44e9d778882025beeff87e157b7f2a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page