deploy-to-azure-cli-extension/deploy-to-azure/setup.py

65 строки
2.1 KiB
Python

# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import os
import re
from codecs import open
from setuptools import setup, find_packages
NAME = 'deploy-to-azure'
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = [
]
# Version extraction inspired from 'requests'
with open(os.path.join('azext_deploy_to_azure', 'version.py'), 'r') as fd:
VERSION = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not VERSION:
raise RuntimeError('Cannot find version information')
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'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',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
]
with open('README.rst', 'r', encoding='utf-8') as f:
README = f.read()
with open('HISTORY.rst', 'r', encoding='utf-8') as f:
HISTORY = f.read()
setup(
name=NAME,
version=VERSION,
description="Extension to deploy to Azure.",
long_description=README + '\n\n' + HISTORY,
license='MIT',
author="Microsoft",
author_email="VSTS_Social@microsoft.com",
url="https://github.com/atbagga/aks-deploy-cli-extension",
classifiers=CLASSIFIERS,
package_data={'azext_deploy_to_azure': ['azext_metadata.json']},
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),
include_package_data=True,
install_requires=REQUIRES
)