forked from agmangas/wot-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
86 lines (74 loc) · 2.44 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path
from setuptools import find_packages, setup
from wotpy.__version__ import __version__
from wotpy.support import (is_coap_supported, is_dnssd_supported,
is_mqtt_supported)
install_requires = [
'tornado>=5.1,<6.0',
'jsonschema>=2.0,<3.0',
'six>=1.10.0,<2.0',
'rx>=1.6.0,<2.0',
'python-slugify>=1.2.4,<2.0'
]
test_requires = [
'pytest>=3.6.1,<4.0.0',
'pytest-cov>=2.5.1,<2.6.0',
'pytest-rerunfailures>=4.1,<5.0',
'mock>=2.0,<3.0',
'tox>=3.0,<4.0',
'faker>=0.8.15,<0.9',
'Sphinx>=1.7.5,<2.0.0',
'sphinx-rtd-theme>=0.4.0,<0.5.0',
'futures>=3.1.1,<4.0.0',
'pyOpenSSL>=18.0.0,<19.0.0',
'coveralls>=1.0,<2.0',
'coverage>=5.0<6.0',
'autopep8>=1.4,<2.0',
'rope>=0.14.0,<1.0'
]
if sys.version_info[0] is 3:
test_requires.append("bump2version>=1.0,<2.0")
if is_coap_supported():
install_requires.append('aiocoap[linkheader]==0.4a1')
if is_mqtt_supported():
install_requires.append('hbmqtt>=0.9.4,<1.0')
install_requires.append('websockets>=8.0,<9.0')
if is_dnssd_supported():
install_requires.append('zeroconf>=0.21.3,<0.22.0')
test_requires.append('aiozeroconf==0.1.8')
this_dir = path.abspath(path.dirname(__file__))
with open(path.join(this_dir, 'README.md')) as fh:
long_description = fh.read()
setup(
name='wotpy',
version=__version__,
description='Python implementation of a W3C WoT Runtime and the WoT Scripting API',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='wot iot gateway fog w3c',
author='Andres Garcia Mangas',
author_email='[email protected]',
url='https://github.com/agmangas/wot-py',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
],
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
extras_require={
'tests': test_requires,
'uvloop': ['uvloop>=0.12.2,<0.13.0']
}
)