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

Remove 'az component' #4902

Merged
merged 1 commit into from
Nov 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions doc/authoring_command_modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,45 +190,3 @@ Release History
* This is the changelog from a prev. release.

```

Packaging/Publishing
--------------------
### Packaging
You have finished your command module and now want to package and publish it.

Make sure you are in the directory for your command module.
Create the package by running:
```
python setup.py sdist
```
This will create a `dist` directory that contains your package.

### Publishing
You are now ready to publish the package to PyPI or a private PyPI server of your choice.

There are many ways to publish but here is a template using Twine.
```bash
echo "[distutils]
index-servers =
cli-pypi

[cli-pypi]
repository: <PYPI_REPO_URL>
username: <PYPI_REPO_USERNAME>
password: <PYPI_REPO_PASSWORD>
" > ~/.pypirc

pip install twine
# Uploads the packages in dist/ to the server referred to by cli-pypi.
twine upload -r cli-pypi dist/*
```

### Installing your published command module

If you published the package publicly, simply use `az component update --add example`.

If you published it to a private server, use `az component update --add example --private`.

NOTE:
- Don't include the `azure-cli-` prefix when installing a command module.

1 change: 0 additions & 1 deletion doc/sphinx/azhelpgen/doc_source_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"billing": "src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/_help.py",
"cdn": "src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/_help.py",
"cloud": "src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/_help.py",
"component": "src/command_modules/azure-cli-component/azure/cli/command_modules/component/_help.py",
"consumption": "src/command_modules/azure-cli-consumption/azure/cli/command_modules/consumption/_help.py",
"container": "src/command_modules/azure-cli-container/azure/cli/command_modules/container/_help.py",
"cognitiveservices": "src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/_help.py",
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

CONFIRM_PARAM_NAME = 'yes'

BLACKLISTED_MODS = ['context', 'shell', 'documentdb']
BLACKLISTED_MODS = ['context', 'shell', 'documentdb', 'component']


class VersionConstraint(object):
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Release History

2.0.22
++++++
* Minor fixes
* Remove `az component` commands. Use `az extension` instead. `az component` has been deprecated for several months now.

2.0.21
++++++
Expand Down
1 change: 0 additions & 1 deletion src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
'azure-cli-cdn',
'azure-cli-cloud',
'azure-cli-cognitiveservices',
'azure-cli-component',
'azure-cli-container',
'azure-cli-configure',
'azure-cli-consumption',
Expand Down
81 changes: 0 additions & 81 deletions src/command_modules/azure-cli-component/HISTORY.rst

This file was deleted.

1 change: 0 additions & 1 deletion src/command_modules/azure-cli-component/MANIFEST.in

This file was deleted.

7 changes: 0 additions & 7 deletions src/command_modules/azure-cli-component/README.rst

This file was deleted.

6 changes: 0 additions & 6 deletions src/command_modules/azure-cli-component/azure/__init__.py

This file was deleted.

6 changes: 0 additions & 6 deletions src/command_modules/azure-cli-component/azure/cli/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading