forked from Azure/azure-cli-dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (86 loc) · 2.95 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# 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
import os
import re
from setuptools import setup, find_packages
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)
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='azdev',
version=__VERSION__,
description='Microsoft Azure CLI Developer Tools',
long_description=README + '\n\n' + HISTORY,
url='https://github.com/Azure/azure-cli-dev-tools',
author='Microsoft Corporation',
author_email='[email protected]',
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'
],
keywords='azure',
python_requires='>=3.6,<=3.9',
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',
],
install_requires=[
'docutils',
'flake8',
'gitpython',
'jinja2',
'knack',
'mock',
'pytest>=5.0.0',
'pytest-xdist', # depends on pytest-forked
'pyyaml',
'requests',
'sphinx==1.6.7',
'tox',
'wheel==0.30.0',
'azure-storage-blob>=1.3.1,<2.0.0',
'isort==4.3.21'
],
extras_require={
":python_version<'3.0'": ['pylint==1.9.2', 'futures'],
":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,
entry_points={
'console_scripts': ['azdev=azdev.__main__:main']
}
)