azure-cli-dev-tools/setup.py

94 строки
2.9 KiB
Python
Исходник Постоянная ссылка Обычный вид История

#!/usr/bin/env python
2018-11-21 02:46:13 +03:00
# -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
"""Azure Developer Tools package that can be installed using setuptools"""
from codecs import open
2018-11-21 02:46:13 +03:00
import os
import re
from setuptools import setup, find_packages
2018-11-21 02:46:13 +03:00
azdev_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(azdev_path, 'azdev', '__init__.py'), 'r') as version_file:
__VERSION__ = re.search(r'^__VERSION__\s*=\s*[\'"]([^\'"]*)[\'"]',
version_file.read(), re.MULTILINE).group(1)
2018-11-21 02:46:13 +03:00
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()
2018-11-21 02:46:13 +03:00
setup(
name='azdev',
version=__VERSION__,
description='Microsoft Azure CLI Developer Tools',
2019-11-01 07:29:24 +03:00
long_description=README + '\n\n' + HISTORY,
url='https://github.com/Azure/azure-cli-dev-tools',
2018-11-21 02:46:13 +03:00
author='Microsoft Corporation',
author_email='azpycli@microsoft.com',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
2018-11-21 02:46:13 +03:00
],
keywords='azure',
python_requires='>=3.6,<=3.9',
2018-11-21 02:46:13 +03:00
packages=[
'azdev',
'azdev.config',
'azdev.operations',
'azdev.mod_templates',
'azdev.operations.help',
'azdev.operations.help.refdoc',
'azdev.operations.linter',
'azdev.operations.linter.rules',
'azdev.operations.linter.pylint_checkers',
'azdev.operations.testtool',
'azdev.operations.extensions',
'azdev.utilities',
2018-11-21 02:46:13 +03:00
],
install_requires=[
'docutils',
'flake8',
'gitpython',
'jinja2',
2020-03-20 09:41:12 +03:00
'knack',
'mock',
2020-07-30 11:22:39 +03:00
'pytest>=5.0.0',
'pytest-xdist', # depends on pytest-forked
'pyyaml',
2019-01-11 21:41:02 +03:00
'requests',
'sphinx==1.6.7',
'tox',
'wheel==0.30.0',
'azure-storage-blob>=1.3.1,<2.0.0',
2020-07-08 06:12:42 +03:00
'isort==4.3.21'
2018-11-21 02:46:13 +03:00
],
extras_require={
":python_version<'3.0'": ['pylint==1.9.2', 'futures'],
2020-07-08 06:12:42 +03:00
":python_version>='3.0'": ['pylint==2.3.0']
},
package_data={
'azdev.config': ['*.*', 'cli_pylintrc', 'ext_pylintrc'],
'azdev.mod_templates': ['*.*'],
'azdev.operations.linter.rules': ['ci_exclusions.yml']
},
include_package_data=True,
2018-11-21 02:46:13 +03:00
entry_points={
2019-01-16 23:32:40 +03:00
'console_scripts': ['azdev=azdev.__main__:main']
2018-11-21 02:46:13 +03:00
}
)