forked from ibm-watson-iot/iot-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
87 lines (81 loc) · 2.84 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# *****************************************************************************
# Copyright (c) 2014, 2018 IBM Corporation and other Contributors.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
# *****************************************************************************
import sys
sys.path.insert(0, 'src')
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# =============================================================================
# Convert README.md to README.rst for pypi
# Need to install both pypandoc and pandoc
# - pip insall pypandoc
# - https://pandoc.org/installing.html
# =============================================================================
try:
from pypandoc import convert
def read_md(f):
return convert(f, 'rst')
except:
print('Warning: pypandoc module not found, unable to convert README.md to RST')
print('Unless you are packaging this module for distribution you can ignore this error')
def read_md(f):
return "Python SDK for IBM Watson IoT Platform"
setup(
name='wiotp-sdk',
version="0.9.0",
author='David Parker',
author_email='[email protected]',
package_dir={'': 'src'},
packages=[
'wiotp.sdk',
'wiotp.sdk.device',
'wiotp.sdk.gateway',
'wiotp.sdk.application',
'wiotp.sdk.api',
'wiotp.sdk.api.dsc',
'wiotp.sdk.api.registry',
'wiotp.sdk.api.mgmt',
'wiotp.sdk.api.status',
'wiotp.sdk.api.usage',
'wiotp.sdk.api.lec',
'wiotp.sdk.api.services'
],
namespace_packages=['wiotp'],
package_data={'wiotp.sdk': ['*.pem']},
scripts=[
'bin/wiotp-cli'
],
url='https://github.com/ibm-watson-iot/iot-python',
license=open('LICENSE').read(),
description='Python SDK for IBM Watson IoT Platform',
long_description=read_md('README.md'),
install_requires=[
"iso8601 >= 0.1.12",
"pytz >= 2018.9",
"pyyaml >= 3.13",
"paho-mqtt >= 1.4.0",
"requests >= 2.21.0"
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Communications',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)