forked from Azure/iotedgedev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (75 loc) · 2.32 KB
/
setup.py
File metadata and controls
89 lines (75 loc) · 2.32 KB
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
#!/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('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
'docker>=3.5',
'python-dotenv',
'requests',
'fstrings',
'msrestazure~=0.4.32',
'azure-cli-iot',
'azure-cli-profile',
'azure-cli-extension',
'azure-cli-configure',
'azure-cli-resource',
'azure-cli-cloud',
'iotedgehubdev',
'six',
'applicationinsights',
'commentjson'
]
setup_requirements = [
]
test_requirements = [
]
setup(
name='iotedgedev',
version='0.81.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='Jon Gallant',
author_email='info@jongallant.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}
)