forked from Azure/azure-iot-cli-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (56 loc) · 2.33 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
#!/usr/bin/env python
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import re
import os.path
from io import open # pylint: disable=W0622
from setuptools import setup, find_packages
package_folder_path = 'azext_iot'
# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, '_constants.py'), 'r') as fd:
VERSION = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
]
# The following dependencies are needed by the IoT extension.
# Most of these are leveraged from Az CLI Core.
# 'msrestazure>=0.4.29,<2.0.0',
# 'paho-mqtt==1.3.1',
# 'jmespath==0.9.3',
# 'pyyaml==3.13'
# 'knack>=0.3.1'
# There is also a dependency for uamqp for amqp based commands
# though that is installed out of band (managed by the extension)
# for compatibility reasons.
DEPENDENCIES = [
'paho-mqtt==1.3.1'
]
setup(
name='azure-cli-iot-ext',
version=VERSION,
description='Provides the data plane command layer for Azure IoT Hub, IoT Edge and IoT Device Provisioning Service',
long_description='Authoritative IoT data plane extension for Azure CLI. '
'Focused on providing data plane commands for Azure IoT Hub, IoT Edge and IoT Device Provisioning Service',
license='MIT',
author='Microsoft',
author_email='[email protected]', # +@digimaun
url='https://github.com/azure/azure-iot-cli-extension',
classifiers=CLASSIFIERS,
packages=find_packages(),
package_data={'azext_iot': ['azext_metadata.json', 'digicert.pem']},
install_requires=DEPENDENCIES
)