This commit is contained in:
Derek Bekoe 2016-03-25 09:53:27 -07:00
Родитель e309d4eebb
Коммит eff520c6c9
62 изменённых файлов: 724 добавлений и 50 удалений

Просмотреть файл

@ -1,2 +1 @@
include *.rst
exclude src/azure/__init__.py

Просмотреть файл

@ -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

Просмотреть файл

@ -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',
],
},
)

Просмотреть файл

@ -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 <python@microsoft.com>"
__version__ = "0.0.1"
__version__ = "0.0.3.dev0"

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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():

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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.'))

Просмотреть файл

@ -0,0 +1 @@
azure-cli

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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 <name>')
# 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 <name>', required=True)
# @option('--version -v <version>')
# 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 <name>', 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 <name>', 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.")

Просмотреть файл

@ -0,0 +1,2 @@
azure-cli
pip

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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'))

Просмотреть файл

@ -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

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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.'))

Просмотреть файл

@ -0,0 +1 @@
azure-cli

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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)

Просмотреть файл

@ -0,0 +1,2 @@
azure-cli
azure==2.0.0rc1

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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)

Просмотреть файл

@ -0,0 +1,2 @@
azure-cli
azure==2.0.0rc1

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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():

Просмотреть файл

@ -0,0 +1,2 @@
azure-cli
azure==2.0.0rc1

Просмотреть файл

@ -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,
)

Просмотреть файл

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

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

Просмотреть файл

@ -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)

Просмотреть файл

@ -0,0 +1,2 @@
azure-cli
azure==2.0.0rc1

Просмотреть файл

@ -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,
)