Skip to content
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

Added support for developing the CLI on nixos #7880

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jimurrito
Copy link


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

n/a

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

PR Notes

Added a shell.nix file to the root directory of the repo to allow for az-cli development on NixOS. With this file, developers who use NixOS via WSL are able to quickly setup a development environment needed for for the Az CLI. File is used with a command called nix-shell which generates a virtual environment for scenarios like this.

What does shell.nix do?

  • Installs Python3.9
  • Creates a python venv called env
  • Connects to the venv
  • Updates Pip
  • Installs Azdev pip package

Copy link

azure-client-tools-bot-prd bot commented Aug 13, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

Copy link

Hi @jimurrito,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Aug 13, 2024

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants