forked from Azure/iotedgedev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (79 loc) · 2.56 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
94
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import atexit
from subprocess import check_call
from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
def _execute():
check_call('pip install azure-cli --no-deps'.split())
class PostInstall(install):
def run(self):
atexit.register(_execute)
install.run(self)
class PostDevelop(develop):
def run(self):
atexit.register(_execute)
develop.run(self)
with open('CHANGELOG.md') as history_file:
history = history_file.read()
requirements = [
'click>=6.0',
'docker >= 3.7.0, < 4.0',
'python-dotenv',
'requests >= 2.20.0, < 2.21',
'fstrings',
'msrestazure~=0.4.32',
'azure-cli-core',
'azure-cli-iot',
'azure-cli-profile',
'azure-cli-extension',
'azure-cli-configure',
'azure-cli-resource',
'azure-cli-cloud',
'iotedgehubdev >= 0.8.0',
'six',
'applicationinsights < 0.11.8',
'commentjson',
'pyyaml>=3.10,<4.3',
'pypiwin32==219; sys_platform == "win32" and python_version < "3.6"',
'pypiwin32==223; sys_platform == "win32" and python_version >= "3.6"'
]
setup_requirements = [
]
test_requirements = [
]
setup(
name='iotedgedev',
version='2.0.0',
description='The Azure IoT Edge Dev Tool greatly simplifies the IoT Edge development process by automating many routine manual tasks, such as building, deploying, pushing modules and configuring the IoT Edge Runtime.',
long_description='See https://github.com/azure/iotedgedev for usage instructions.',
author='Microsoft Corporation',
author_email='vsciet@microsoft.com',
url='https://github.com/azure/iotedgedev',
packages=find_packages(include=['iotedgedev']),
entry_points={
'console_scripts': [
'iotedgedev=iotedgedev.cli:main'
]
},
include_package_data=True,
install_requires=requirements,
license='MIT license',
zip_safe=False,
keywords='azure iot edge dev tool',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
cmdclass={'install': PostInstall, 'develop': PostDevelop}
)