Skip to content

Commit edada9e

Browse files
committed
setup配置传递依赖,修改sdk名称
Change-Id: I6cb4c1c84606b01dffbbbd0148798905994da8d3
1 parent 43736f2 commit edada9e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ dist/
55
test_env/
66
samples/
77
build.sh
8-
TIoTExploreSDK.egg-info/
8+
*.egg-info/
99
*.pyc
1010
logs/log

setup.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@
33
import urllib.request
44
import setuptools
55

6-
name = "TIoTExploreSDK"
7-
resp = urllib.request.urlopen(f'https://test.pypi.org/pypi/{name}/json')
8-
data = json.loads(resp.read().decode("utf-8"))
9-
version = data['info']['version']
10-
last_num = re.findall(r'\d+', version)[-1]
11-
version = version[:-len(last_num)] + str(int(last_num) + 1)
6+
name = "tencent-iot-device"
7+
# resp = urllib.request.urlopen(f'https://pypi.org/pypi/{name}/json')
8+
# resp = urllib.request.urlopen(f'https://test.pypi.org/pypi/{name}/json')
9+
# data = json.loads(resp.read().decode("utf-8"))
10+
# version = data['info']['version']
11+
# last_num = re.findall(r'\d+', version)[-1]
12+
# version = version[:-len(last_num)] + str(int(last_num) + 1)
1213

1314
with open("README.md", mode='r', encoding='UTF-8') as fh:
1415
long_description = fh.read()
1516

1617
setuptools.setup(
1718
name=("%s" % name),
18-
# version="0.0.1a01",
19-
version=f"{version}",
19+
version="1.0.0",
20+
# version=f"{version}",
2021
author="larrytin",
2122
author_email="dev_tester@163.com",
2223
description="Tencent IoT Explorer SDK for Python",
2324
long_description=long_description,
2425
long_description_content_type="text/markdown",
2526
url="https://github.com/tencentyun/iot-device-python",
2627
packages=setuptools.find_packages(),
28+
install_requires = ["paho-mqtt==1.5.1", "pycrypto==2.6.1"],
2729
classifiers=[
2830
"Programming Language :: Python :: 3",
2931
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)