2019-04-09 21:32:38 +03:00
|
|
|
#!/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"""
|
|
|
|
|
2019-04-09 21:32:38 +03:00
|
|
|
from codecs import open
|
2018-11-21 02:46:13 +03:00
|
|
|
import os
|
2019-06-08 01:12:18 +03:00
|
|
|
import re
|
2019-04-09 21:32:38 +03:00
|
|
|
from setuptools import setup, find_packages
|
2018-11-21 02:46:13 +03:00
|
|
|
|
2019-06-08 01:12:18 +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
|
|
|
|
2019-06-28 00:52:09 +03:00
|
|
|
with open('README.rst', 'r', encoding='utf-8') as f:
|
2019-04-09 21:32:38 +03:00
|
|
|
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__,
|
2019-04-09 21:32:38 +03:00
|
|
|
description='Microsoft Azure CLI Developer Tools',
|
2019-11-01 07:29:24 +03:00
|
|
|
long_description=README + '\n\n' + HISTORY,
|
2019-01-10 22:14:27 +03:00
|
|
|
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',
|
2020-01-19 08:38:36 +03:00
|
|
|
'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',
|
2020-03-25 13:11:40 +03:00
|
|
|
python_requires='>=3.6,<=3.9',
|
2018-11-21 02:46:13 +03:00
|
|
|
packages=[
|
|
|
|
'azdev',
|
2018-11-29 20:39:16 +03:00
|
|
|
'azdev.config',
|
|
|
|
'azdev.operations',
|
2019-06-08 01:12:18 +03:00
|
|
|
'azdev.mod_templates',
|
2019-11-19 07:36:24 +03:00
|
|
|
'azdev.operations.help',
|
|
|
|
'azdev.operations.help.refdoc',
|
2018-11-29 20:39:16 +03:00
|
|
|
'azdev.operations.linter',
|
2019-02-12 00:30:33 +03:00
|
|
|
'azdev.operations.linter.rules',
|
2020-08-25 08:50:21 +03:00
|
|
|
'azdev.operations.linter.pylint_checkers',
|
2020-07-16 06:49:24 +03:00
|
|
|
'azdev.operations.testtool',
|
2018-12-06 00:14:46 +03:00
|
|
|
'azdev.operations.extensions',
|
2018-11-29 20:39:16 +03:00
|
|
|
'azdev.utilities',
|
2018-11-21 02:46:13 +03:00
|
|
|
],
|
|
|
|
install_requires=[
|
|
|
|
'docutils',
|
|
|
|
'flake8',
|
|
|
|
'gitpython',
|
2019-06-08 01:12:18 +03:00
|
|
|
'jinja2',
|
2020-03-20 09:41:12 +03:00
|
|
|
'knack',
|
2019-02-09 20:14:56 +03:00
|
|
|
'mock',
|
2020-07-30 11:22:39 +03:00
|
|
|
'pytest>=5.0.0',
|
2020-04-24 09:16:06 +03:00
|
|
|
'pytest-xdist', # depends on pytest-forked
|
2019-03-22 02:14:12 +03:00
|
|
|
'pyyaml',
|
2019-01-11 21:41:02 +03:00
|
|
|
'requests',
|
2019-07-18 19:05:49 +03:00
|
|
|
'sphinx==1.6.7',
|
2019-03-27 22:57:31 +03:00
|
|
|
'tox',
|
2020-03-11 15:44:07 +03:00
|
|
|
'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
|
|
|
],
|
2019-01-10 22:14:27 +03:00
|
|
|
extras_require={
|
2019-04-09 21:32:38 +03:00
|
|
|
":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']
|
2019-01-10 22:14:27 +03:00
|
|
|
},
|
2019-02-21 03:42:56 +03:00
|
|
|
package_data={
|
|
|
|
'azdev.config': ['*.*', 'cli_pylintrc', 'ext_pylintrc'],
|
2019-06-08 01:12:18 +03:00
|
|
|
'azdev.mod_templates': ['*.*'],
|
2019-02-21 03:42:56 +03:00
|
|
|
'azdev.operations.linter.rules': ['ci_exclusions.yml']
|
|
|
|
},
|
2018-11-29 20:39:16 +03:00
|
|
|
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
|
|
|
}
|
2019-04-09 21:32:38 +03:00
|
|
|
)
|