Skip to content

Commit d32ea97

Browse files
committed
更新接入文档
Change-Id: I35de7b138eb0e8d9149472b2e760a7626eaf5297
1 parent 86f097d commit d32ea97

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

explorer/doc/SDK接入说明.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- Install from pip
88

99
```
10-
pip install TIoTExploreSDK
10+
pip install tencent-iot-device
1111
```
1212
1313

hub/doc/SDK接入说明.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- Install from pip
88

99
```
10-
pip install TIotHubSDK
10+
pip install tencent-iot-device
1111
```
1212
1313

setup.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
import setuptools
55

66
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)
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)
1312

1413
with open("README.md", mode='r', encoding='UTF-8') as fh:
1514
long_description = fh.read()
1615

1716
setuptools.setup(
1817
name=("%s" % name),
19-
version="1.0.0",
20-
# version=f"{version}",
18+
version=f"{version}",
2119
author="larrytin",
2220
author_email="dev_tester@163.com",
2321
description="Tencent IoT Explorer SDK for Python",

0 commit comments

Comments
 (0)