-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (49 loc) · 1.68 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
# -*- coding: utf-8 -*-
import setuptools
import sys
import os
from aliyun_iot_device import __version__
with open("README.md", "r") as fh:
long_description = fh.read()
requires = [
'paho-mqtt>=1.3.1',
'requests>=2.18.4',
'cachetools>=2.1.0'
]
if sys.argv[-1] == 'publish':
os.system('python3 setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
os.system("rm -rf ./dist ./build ./yansongda_aliyun_iot_device.egg-info")
sys.exit()
if sys.argv[-1] == 'publish-test':
os.system('python3 setup.py sdist bdist_wheel')
os.system('twine upload --repository-url https://test.pypi.org/legacy/ dist/*')
os.system("rm -rf ./dist ./build ./yansongda_aliyun_iot_device.egg-info")
sys.exit()
setuptools.setup(
name="yansongda-aliyun-iot-device",
version=__version__,
author="yansongda",
author_email="[email protected]",
description="aliyun iot device sdk",
long_description=long_description,
long_description_content_type="text/markdown",
package_data={
'': ['LICENSE', 'NOTICE'],
'aliyun_iot_device': ['*.cer']
},
url="https://github.com/yansongda/aliyun-iot-device-python",
project_urls={
'Source': 'https://github.com/yansongda/aliyun-iot-device-python',
'Tracker': 'https://github.com/yansongda/aliyun-iot-device-python/issues',
},
packages=setuptools.find_packages(),
python_requires=">=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=requires,
keywords='yansongda aliyun iot device',
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
)