diff --git a/MANIFEST.in b/MANIFEST.in index 34fc928f86..bb37a2723d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1 @@ include *.rst -exclude src/azure/__init__.py diff --git a/requirements.txt b/requirements.txt index 45159a2c1a..ffb4e11917 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ applicationinsights==0.10.0 azure==2.0.0rc1 jmespath +pip mock==1.3.0 pylint==1.5.4 six==1.10.0 diff --git a/setup.py b/setup.py index e343310d66..71c3c8bcbf 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ from __future__ import print_function from codecs import open from setuptools import setup -VERSION = '0.0.1' +VERSION = '0.0.3.dev0' # If we have source, validate that our version numbers match # This should prevent uploading releases with mismatched versions. @@ -56,10 +56,12 @@ CLASSIFIERS = [ DEPENDENCIES = [ 'applicationinsights', - 'azure==2.0.0rc1', + 'msrest', 'six', 'jmespath', - 'adal==0.2.0' #from internal index server. + 'pip', + # 'azure-cli-components==0.0.3.dev0', + # 'azure-cli-login==0.0.3.dev0', ] with open('README.rst', 'r', encoding='utf-8') as f: @@ -82,10 +84,17 @@ setup( ], package_dir = {'':'src'}, packages=[ + 'azure', 'azure.cli', 'azure.cli.commands', + 'azure.cli.command_modules', 'azure.cli.extensions', ], package_data={'azure.cli': ['locale/**/*.txt']}, install_requires=DEPENDENCIES, + extras_require={ + ':python_version < "3.4"': [ + 'enum34', + ], + }, ) diff --git a/src/azure/cli/__init__.py b/src/azure/cli/__init__.py index 8c1c1d79bc..51b401c3b9 100644 --- a/src/azure/cli/__init__.py +++ b/src/azure/cli/__init__.py @@ -1,3 +1,4 @@ +__import__('pkg_resources').declare_namespace(__name__) '''The Azure Command-line tool. This tools provides a command-line interface to Azure's management and storage @@ -5,4 +6,4 @@ APIs. ''' __author__ = "Microsoft Corporation " -__version__ = "0.0.1" +__version__ = "0.0.3.dev0" diff --git a/src/azure/cli/command_modules/__init__.py b/src/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/__init__.py b/src/azure/cli/commands/__init__.py index 0f4b0942ac..dc2ef67e76 100644 --- a/src/azure/cli/commands/__init__.py +++ b/src/azure/cli/commands/__init__.py @@ -1,16 +1,10 @@ -from .._argparse import IncorrectUsageError +from pip import get_installed_distributions + +from .._argparse import IncorrectUsageError from .._logging import logger -# TODO: Alternatively, simply scan the directory for all modules -COMMAND_MODULES = [ - 'account', - 'login', - 'logout', - 'network', - 'resource', - 'storage', - 'vm', -] +# Find our command modules, they start with 'azure-cli-' +INSTALLED_COMMAND_MODULES = [dist.key.replace('azure-cli-', '') for dist in get_installed_distributions(local_only=False) if dist.key.startswith('azure-cli-')] _COMMANDS = {} @@ -48,15 +42,16 @@ def add_to_parser(parser, command_name=None): loaded = False if command_name: try: - __import__('azure.cli.commands.' + command_name) + # Try and load the installed command module + __import__('azure.cli.command_modules.'+command_name) loaded = True except ImportError: - # Unknown command - we'll load all below + # Unknown command - we'll load all installed modules below pass if not loaded: - for mod in COMMAND_MODULES: - __import__('azure.cli.commands.' + mod) + for installed_mods in INSTALLED_COMMAND_MODULES: + __import__('azure.cli.command_modules.'+installed_mods) loaded = True for handler, info in _COMMANDS.items(): diff --git a/src/command_modules/azure-cli-account/README.rst b/src/command_modules/azure-cli-account/README.rst new file mode 100644 index 0000000000..94fea86a1f --- /dev/null +++ b/src/command_modules/azure-cli-account/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'account' Command Module +================================== + +This package is for the 'account' module. +i.e. 'az account' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-account/azure/__init__.py b/src/command_modules/azure-cli-account/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-account/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-account/azure/cli/__init__.py b/src/command_modules/azure-cli-account/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-account/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-account/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-account/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-account/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/account.py b/src/command_modules/azure-cli-account/azure/cli/command_modules/account/__init__.py similarity index 85% rename from src/azure/cli/commands/account.py rename to src/command_modules/azure-cli-account/azure/cli/command_modules/account/__init__.py index 77185a2825..a721d6daff 100644 --- a/src/azure/cli/commands/account.py +++ b/src/command_modules/azure-cli-account/azure/cli/command_modules/account/__init__.py @@ -1,6 +1,6 @@ -from .._profile import Profile -from ..commands import command, description, option -from .._locale import L +from azure.cli._profile import Profile +from azure.cli.commands import command, description, option +from azure.cli._locale import L @command('account list') @description(L('List the imported subscriptions.')) diff --git a/src/command_modules/azure-cli-account/requirements.txt b/src/command_modules/azure-cli-account/requirements.txt new file mode 100644 index 0000000000..1a90f07a0c --- /dev/null +++ b/src/command_modules/azure-cli-account/requirements.txt @@ -0,0 +1 @@ +azure-cli diff --git a/src/command_modules/azure-cli-account/setup.py b/src/command_modules/azure-cli-account/setup.py new file mode 100644 index 0000000000..6876f97344 --- /dev/null +++ b/src/command_modules/azure-cli-account/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-account', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.account', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-components/README.rst b/src/command_modules/azure-cli-components/README.rst new file mode 100644 index 0000000000..281a5b7c8b --- /dev/null +++ b/src/command_modules/azure-cli-components/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'components' Command Module +================================== + +This package is for the 'components' module. +i.e. 'az components' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-components/azure/__init__.py b/src/command_modules/azure-cli-components/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-components/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-components/azure/cli/__init__.py b/src/command_modules/azure-cli-components/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-components/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-components/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-components/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-components/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-components/azure/cli/command_modules/components/__init__.py b/src/command_modules/azure-cli-components/azure/cli/command_modules/components/__init__.py new file mode 100644 index 0000000000..2bc0eb8431 --- /dev/null +++ b/src/command_modules/azure-cli-components/azure/cli/command_modules/components/__init__.py @@ -0,0 +1,78 @@ +import pip +from azure.cli.commands import command, description, option +from azure.cli._locale import L + +# TODO:: Support installing/removing of a specific version + +@command('components list') +@description(L('List the installed components.')) +def list_components(args, unexpected): #pylint: disable=unused-argument + return sorted(["%s (%s)" % (dist.key.replace('azure-cli-', ''), dist.version) for dist in pip.get_installed_distributions(local_only=False) if dist.key.startswith('azure-cli-')]) + +# @command('components check') +# @description(L('Check a component for an update')) +# @option('--name -n ') +# def install_component(args, unexpected): #pylint: disable=unused-argument +# component_name = args.get('name') +# if not component_name: +# # Show all +# pip.main(['list', '--pre', '--outdated', '--isolated', +# '--trusted-host', '40.112.211.51', +# '--extra-index-url', 'http://40.112.211.51:8080/']) +# else: +# try: +# __import__('azure.cli.command_modules.'+component_name+'.__main__') +# # Check for updates +# pip.main(['list', '--pre', '--outdated', '--isolated', +# '--trusted-host', '40.112.211.51', +# '--find-links', 'http://40.112.211.51:8080/simple/azure-cli-'+component_name]) +# except ImportError: +# raise RuntimeError("Component not installed.") + +# @command('components install') +# @description(L('Install a component')) +# @option('--name -n ', required=True) +# @option('--version -v ') +# def install_component(args, unexpected): #pylint: disable=unused-argument +# component_name = args.get('name') +# if not component_name: +# raise RuntimeError("Specify a component name.") +# try: +# __import__('azure.cli.command_modules.'+component_name+'.__main__') +# # Check for updates +# pip.main(['list', '--pre', '--outdated', '--isolated', +# '--trusted-host', '40.112.211.51', +# '--find-links', 'http://40.112.211.51:8080/simple/azure-cli-'+component_name]) +# raise RuntimeError("Component already installed.") +# except ImportError: +# version_no = '=='+args.get('version') if args.get('version') else '' +# pip.main(['install', '--quiet', '--isolated', '--disable-pip-version-check', 'azure-cli-'+component_name+version_no, +# '--extra-index-url', 'http://40.112.211.51:8080/', '--trusted-host', '40.112.211.51']) + +# @command('components update') +# @description(L('Update a component')) +# @option('--name -n ', required=True) +# def update_component(args, unexpected): #pylint: disable=unused-argument +# component_name = args.get('name') +# if not component_name: +# raise RuntimeError("Specify a component name.") +# try: +# __import__('azure.cli.command_modules.'+component_name+'.__main__') +# pip.main(['install', '--quiet', '--isolated', '--disable-pip-version-check', '--upgrade', 'azure-cli-'+component_name, +# '--extra-index-url', 'http://40.112.211.51:8080/', '--trusted-host', '40.112.211.51']) +# except ImportError: +# raise RuntimeError("Component not installed.") + +# @command('components remove') +# @description(L('Remove a component')) +# @option('--name -n ', required=True) +# def remove_component(args, unexpected): #pylint: disable=unused-argument +# component_name = args.get('name') +# if not component_name: +# raise RuntimeError("Specify a component name.") +# try: +# __import__('azure.cli.command_modules.'+component_name+'.__main__') +# # The component is installed so we can uninstall it +# pip.main(['uninstall', '--quiet', '--isolated', '--yes', 'azure-cli-'+component_name]) +# except ImportError: +# raise RuntimeError("Component not installed.") diff --git a/src/command_modules/azure-cli-components/requirements.txt b/src/command_modules/azure-cli-components/requirements.txt new file mode 100644 index 0000000000..dd1ca707f1 --- /dev/null +++ b/src/command_modules/azure-cli-components/requirements.txt @@ -0,0 +1,2 @@ +azure-cli +pip diff --git a/src/command_modules/azure-cli-components/setup.py b/src/command_modules/azure-cli-components/setup.py new file mode 100644 index 0000000000..5179cada69 --- /dev/null +++ b/src/command_modules/azure-cli-components/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'pip', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-components', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.components', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-login/README.rst b/src/command_modules/azure-cli-login/README.rst new file mode 100644 index 0000000000..17786eeee2 --- /dev/null +++ b/src/command_modules/azure-cli-login/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'login' Command Module +================================== + +This package is for the 'login' module. +i.e. 'az login' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-login/azure/__init__.py b/src/command_modules/azure-cli-login/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-login/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-login/azure/cli/__init__.py b/src/command_modules/azure-cli-login/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-login/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-login/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-login/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-login/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/login.py b/src/command_modules/azure-cli-login/azure/cli/command_modules/login/__init__.py similarity index 92% rename from src/azure/cli/commands/login.py rename to src/command_modules/azure-cli-login/azure/cli/command_modules/login/__init__.py index c1e03dcf73..f3641db53f 100644 --- a/src/azure/cli/commands/login.py +++ b/src/command_modules/azure-cli-login/azure/cli/command_modules/login/__init__.py @@ -1,4 +1,4 @@ -from __future__ import print_function +from __future__ import print_function from msrest.authentication import BasicTokenAuthentication from adal import (acquire_token_with_username_password, acquire_token_with_client_credentials, @@ -7,11 +7,11 @@ from adal import (acquire_token_with_username_password, from azure.mgmt.resource.subscriptions import (SubscriptionClient, SubscriptionClientConfiguration) -from .._profile import Profile -from ..commands import command, description, option +from azure.cli._profile import Profile +from azure.cli.commands import command, description, option #TODO: update adal-python to support it -#from .._debug import should_disable_connection_verify -from .._locale import L +#from azure.cli._debug import should_disable_connection_verify +from azure.cli._locale import L @command('login') @description(L('log in to an Azure subscription using Active Directory Organization Id')) diff --git a/src/command_modules/azure-cli-login/requirements.txt b/src/command_modules/azure-cli-login/requirements.txt new file mode 100644 index 0000000000..0b3ca8590c --- /dev/null +++ b/src/command_modules/azure-cli-login/requirements.txt @@ -0,0 +1,5 @@ +azure-cli +azure==2.0.0rc1 + +#Same as: -e git+https://github.com/yugangw-msft/azure-activedirectory-library-for-python.git@device#egg=azure-activedirectory-library-for-python +http://40.112.211.51:8080/packages/adal-0.2.0.zip diff --git a/src/command_modules/azure-cli-login/setup.py b/src/command_modules/azure-cli-login/setup.py new file mode 100644 index 0000000000..e80c70d8bb --- /dev/null +++ b/src/command_modules/azure-cli-login/setup.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'azure==2.0.0rc1', + 'adal==0.2.0' #from internal index server. +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-login', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.login', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-logout/README.rst b/src/command_modules/azure-cli-logout/README.rst new file mode 100644 index 0000000000..c1caf43d8b --- /dev/null +++ b/src/command_modules/azure-cli-logout/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'logout' Command Module +================================== + +This package is for the 'logout' module. +i.e. 'az logout' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-logout/azure/__init__.py b/src/command_modules/azure-cli-logout/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-logout/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-logout/azure/cli/__init__.py b/src/command_modules/azure-cli-logout/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-logout/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-logout/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-logout/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-logout/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/logout.py b/src/command_modules/azure-cli-logout/azure/cli/command_modules/logout/__init__.py similarity index 77% rename from src/azure/cli/commands/logout.py rename to src/command_modules/azure-cli-logout/azure/cli/command_modules/logout/__init__.py index d4ce01a202..fbd3052ba0 100644 --- a/src/azure/cli/commands/logout.py +++ b/src/command_modules/azure-cli-logout/azure/cli/command_modules/logout/__init__.py @@ -1,6 +1,6 @@ -from .._profile import Profile -from ..commands import command, description, option -from .._locale import L +from azure.cli._profile import Profile +from azure.cli.commands import command, description, option +from azure.cli._locale import L @command('logout') @description(L('Log out from Azure subscription using Active Directory.')) diff --git a/src/command_modules/azure-cli-logout/requirements.txt b/src/command_modules/azure-cli-logout/requirements.txt new file mode 100644 index 0000000000..1a90f07a0c --- /dev/null +++ b/src/command_modules/azure-cli-logout/requirements.txt @@ -0,0 +1 @@ +azure-cli diff --git a/src/command_modules/azure-cli-logout/setup.py b/src/command_modules/azure-cli-logout/setup.py new file mode 100644 index 0000000000..81d77a6f5b --- /dev/null +++ b/src/command_modules/azure-cli-logout/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-logout', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.logout', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-network/README.rst b/src/command_modules/azure-cli-network/README.rst new file mode 100644 index 0000000000..94929e4e33 --- /dev/null +++ b/src/command_modules/azure-cli-network/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'network' Command Module +================================== + +This package is for the 'network' module. +i.e. 'az network' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-network/azure/__init__.py b/src/command_modules/azure-cli-network/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-network/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-network/azure/cli/__init__.py b/src/command_modules/azure-cli-network/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-network/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/network.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/__init__.py similarity index 98% rename from src/azure/cli/commands/network.py rename to src/command_modules/azure-cli-network/azure/cli/command_modules/network/__init__.py index a2b93eb923..9d908c0fbf 100644 --- a/src/azure/cli/commands/network.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/__init__.py @@ -1,4 +1,3 @@ -from .._locale import L from azure.mgmt.network import NetworkManagementClient, NetworkManagementClientConfiguration from azure.mgmt.network.operations import (ApplicationGatewaysOperations, ExpressRouteCircuitAuthorizationsOperations, @@ -19,9 +18,10 @@ from azure.mgmt.network.operations import (ApplicationGatewaysOperations, VirtualNetworkGatewaysOperations, VirtualNetworksOperations) -from ._command_creation import get_mgmt_service_client -from ..commands._auto_command import build_operation, LongRunningOperation, GLOBALPARAMALIASES -from ..commands import command, description, option +from azure.cli._locale import L +from azure.cli.commands._command_creation import get_mgmt_service_client +from azure.cli.commands._auto_command import build_operation, LongRunningOperation, GLOBALPARAMALIASES +from azure.cli.commands import command, description, option def _network_client_factory(): return get_mgmt_service_client(NetworkManagementClient, NetworkManagementClientConfiguration) @@ -294,5 +294,3 @@ def create_update_subnet(args, unexpected): #pylint: disable=unused-argument smc = _network_client_factory() poller = smc.subnets.create_or_update(resource_group, vnet, name, subnet_settings) return op(poller) - - diff --git a/src/command_modules/azure-cli-network/requirements.txt b/src/command_modules/azure-cli-network/requirements.txt new file mode 100644 index 0000000000..687ec88fd6 --- /dev/null +++ b/src/command_modules/azure-cli-network/requirements.txt @@ -0,0 +1,2 @@ +azure-cli +azure==2.0.0rc1 diff --git a/src/command_modules/azure-cli-network/setup.py b/src/command_modules/azure-cli-network/setup.py new file mode 100644 index 0000000000..88c7625577 --- /dev/null +++ b/src/command_modules/azure-cli-network/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'azure==2.0.0rc1', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-network', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.network', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-resource/README.rst b/src/command_modules/azure-cli-resource/README.rst new file mode 100644 index 0000000000..cc1ca29375 --- /dev/null +++ b/src/command_modules/azure-cli-resource/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'resource' Command Module +================================== + +This package is for the 'resource' module. +i.e. 'az resource' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-resource/azure/__init__.py b/src/command_modules/azure-cli-resource/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-resource/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-resource/azure/cli/__init__.py b/src/command_modules/azure-cli-resource/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-resource/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-resource/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-resource/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-resource/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/resource.py b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py similarity index 94% rename from src/azure/cli/commands/resource.py rename to src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py index 5ce01c2df0..ea0c46ae7f 100644 --- a/src/azure/cli/commands/resource.py +++ b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py @@ -1,7 +1,7 @@ -from .._argparse import IncorrectUsageError -from ..commands import command, description, option -from ._command_creation import get_mgmt_service_client -from .._locale import L +from azure.cli._argparse import IncorrectUsageError +from azure.cli.commands import command, description, option +from azure.cli.commands._command_creation import get_mgmt_service_client +from azure.cli._locale import L from azure.mgmt.resource.resources import (ResourceManagementClient, ResourceManagementClientConfiguration) diff --git a/src/command_modules/azure-cli-resource/requirements.txt b/src/command_modules/azure-cli-resource/requirements.txt new file mode 100644 index 0000000000..687ec88fd6 --- /dev/null +++ b/src/command_modules/azure-cli-resource/requirements.txt @@ -0,0 +1,2 @@ +azure-cli +azure==2.0.0rc1 diff --git a/src/command_modules/azure-cli-resource/setup.py b/src/command_modules/azure-cli-resource/setup.py new file mode 100644 index 0000000000..57552952a6 --- /dev/null +++ b/src/command_modules/azure-cli-resource/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'azure==2.0.0rc1', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-resource', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.resource', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-storage/README.rst b/src/command_modules/azure-cli-storage/README.rst new file mode 100644 index 0000000000..d65be7ee8f --- /dev/null +++ b/src/command_modules/azure-cli-storage/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'storage' Command Module +================================== + +This package is for the 'storage' module. +i.e. 'az storage' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-storage/azure/__init__.py b/src/command_modules/azure-cli-storage/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-storage/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-storage/azure/cli/__init__.py b/src/command_modules/azure-cli-storage/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-storage/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/storage.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py similarity index 97% rename from src/azure/cli/commands/storage.py rename to src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py index 966c1acb8d..b2e16f4ea8 100644 --- a/src/azure/cli/commands/storage.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py @@ -1,4 +1,4 @@ -from __future__ import print_function +from __future__ import print_function from os import environ from sys import stderr from six.moves import input #pylint: disable=redefined-builtin @@ -7,11 +7,11 @@ from azure.storage.blob import PublicAccess from azure.mgmt.storage import StorageManagementClient, StorageManagementClientConfiguration from azure.mgmt.storage.operations import StorageAccountsOperations -from .._argparse import IncorrectUsageError -from ..commands import command, description, option -from ._command_creation import get_mgmt_service_client, get_data_service_client -from ..commands._auto_command import build_operation -from .._locale import L +from azure.cli._argparse import IncorrectUsageError +from azure.cli.commands import command, description, option +from azure.cli.commands._command_creation import get_mgmt_service_client, get_data_service_client +from azure.cli.commands._auto_command import build_operation +from azure.cli._locale import L def _storage_client_factory(): diff --git a/src/command_modules/azure-cli-storage/requirements.txt b/src/command_modules/azure-cli-storage/requirements.txt new file mode 100644 index 0000000000..687ec88fd6 --- /dev/null +++ b/src/command_modules/azure-cli-storage/requirements.txt @@ -0,0 +1,2 @@ +azure-cli +azure==2.0.0rc1 diff --git a/src/command_modules/azure-cli-storage/setup.py b/src/command_modules/azure-cli-storage/setup.py new file mode 100644 index 0000000000..aca61d5a96 --- /dev/null +++ b/src/command_modules/azure-cli-storage/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'azure==2.0.0rc1', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-storage', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.storage', + ], + install_requires=DEPENDENCIES, +) diff --git a/src/command_modules/azure-cli-vm/README.rst b/src/command_modules/azure-cli-vm/README.rst new file mode 100644 index 0000000000..f03c4005bc --- /dev/null +++ b/src/command_modules/azure-cli-vm/README.rst @@ -0,0 +1,7 @@ +Microsoft Azure CLI 'vm' Command Module +================================== + +This package is for the 'vm' module. +i.e. 'az vm' + +This package has [not] been tested [much] with Python 2.7, 3.4 and 3.5. diff --git a/src/command_modules/azure-cli-vm/azure/__init__.py b/src/command_modules/azure-cli-vm/azure/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-vm/azure/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-vm/azure/cli/__init__.py b/src/command_modules/azure-cli-vm/azure/cli/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-vm/azure/cli/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/__init__.py new file mode 100644 index 0000000000..de40ea7ca0 --- /dev/null +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/azure/cli/commands/vm.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py similarity index 97% rename from src/azure/cli/commands/vm.py rename to src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py index c3c597a65c..bdebabd916 100644 --- a/src/azure/cli/commands/vm.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py @@ -1,4 +1,3 @@ -from .._locale import L from azure.mgmt.compute import ComputeManagementClient, ComputeManagementClientConfiguration from azure.mgmt.compute.operations import (AvailabilitySetsOperations, VirtualMachineExtensionImagesOperations, @@ -10,8 +9,9 @@ from azure.mgmt.compute.operations import (AvailabilitySetsOperations, VirtualMachineScaleSetsOperations, VirtualMachineScaleSetVMsOperations) -from ._command_creation import get_mgmt_service_client -from ..commands._auto_command import build_operation, LongRunningOperation +from azure.cli._locale import L +from azure.cli.commands._command_creation import get_mgmt_service_client +from azure.cli.commands._auto_command import build_operation, LongRunningOperation def _compute_client_factory(): return get_mgmt_service_client(ComputeManagementClient, ComputeManagementClientConfiguration) diff --git a/src/command_modules/azure-cli-vm/requirements.txt b/src/command_modules/azure-cli-vm/requirements.txt new file mode 100644 index 0000000000..687ec88fd6 --- /dev/null +++ b/src/command_modules/azure-cli-vm/requirements.txt @@ -0,0 +1,2 @@ +azure-cli +azure==2.0.0rc1 diff --git a/src/command_modules/azure-cli-vm/setup.py b/src/command_modules/azure-cli-vm/setup.py new file mode 100644 index 0000000000..f005fac1f1 --- /dev/null +++ b/src/command_modules/azure-cli-vm/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#-------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup + +VERSION = '0.0.3.dev0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + #'License :: OSI Approved :: Apache Software License', + #'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-cli', + 'azure==2.0.0rc1', +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() + +setup( + name='azure-cli-vm', + version=VERSION, + description='Microsoft Azure Command-Line Tools', + long_description=README, + license='TBD', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + namespace_packages = ['azure.cli.command_modules'], + packages=[ + 'azure.cli.command_modules.vm', + ], + install_requires=DEPENDENCIES, +)