1 Star 0 Fork 3

无知少年 / aliyun-iot-device-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
yansongda 提交于 2018-06-14 17:27 . 完善影子功能及事件功能
# -*- 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="me@yansongda.cn",
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",
),
)
Python
1
https://gitee.com/an_ignorant_teenager/aliyun-iot-device-python.git
git@gitee.com:an_ignorant_teenager/aliyun-iot-device-python.git
an_ignorant_teenager
aliyun-iot-device-python
aliyun-iot-device-python
master

搜索帮助