|
3 | 3 | import urllib.request |
4 | 4 | import setuptools |
5 | 5 |
|
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) |
12 | 13 |
|
13 | 14 | with open("README.md", mode='r', encoding='UTF-8') as fh: |
14 | 15 | long_description = fh.read() |
15 | 16 |
|
16 | 17 | setuptools.setup( |
17 | 18 | name=("%s" % name), |
18 | | -# version="0.0.1a01", |
19 | | - version=f"{version}", |
| 19 | + version="1.0.0", |
| 20 | + # version=f"{version}", |
20 | 21 | author="larrytin", |
21 | 22 | author_email="dev_tester@163.com", |
22 | 23 | description="Tencent IoT Explorer SDK for Python", |
23 | 24 | long_description=long_description, |
24 | 25 | long_description_content_type="text/markdown", |
25 | 26 | url="https://github.com/tencentyun/iot-device-python", |
26 | 27 | packages=setuptools.find_packages(), |
| 28 | + install_requires = ["paho-mqtt==1.5.1", "pycrypto==2.6.1"], |
27 | 29 | classifiers=[ |
28 | 30 | "Programming Language :: Python :: 3", |
29 | 31 | "License :: OSI Approved :: MIT License", |
|
0 commit comments