-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (51 loc) · 1.72 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
import os
from setuptools import setup, find_packages
about = {
'here': os.path.abspath(os.path.dirname(__file__))
}
with open(os.path.join(about['here'], 'version.py')) as f:
exec (f.read(), about)
try:
with open(os.path.join(about['here'], 'test', '__init__.py')) as f:
exec (f.read(), about)
except IOError:
pass
with open(os.path.join(about['here'], 'README.md')) as f:
about['readme'] = f.read()
setup(
# available in PKG-INFO
name='ioteclabs-wrapper',
version=about['__version__'],
description='Python Wrapper for the iotec labs API',
url='https://github.com/iotgdev/ioteclabs-wrapper/',
author='iotec',
author_email='dev@dsp.io',
license='MIT',
download_url='https://github.com/iotgdev/ioteclabs-wrapper/archive/{}.tar.gz'.format(about['__version__']),
long_description=about['readme'],
platforms=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
# Package Properties
packages=find_packages(include=['ioteclabs_wrapper', 'ioteclabs_wrapper.*']),
include_package_data=True,
test_suite='test',
setup_requires=['pytest-runner'],
tests_require=['mock>=2.0.0', 'pytest'],
cmdclass={'pytest': about.get('PyTest')},
scripts=['bin/ioteclabs_credentials'],
install_requires=[
'keyrings.alt>=3.1',
'keyring==15.1.0',
'requests>=2.19.1',
'boltons>=18.0.0; python_version<"3.0"',
'six>=1.11.0',
'retrying'
]
)