forked from openwsn-berkeley/openvisualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (62 loc) · 2.41 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
import os
from setuptools import setup, find_packages
from openvisualizer import VERSION, PACKAGE_NAME
web_static = 'client/web_files/static'
web_templates = 'client/web_files/templates'
# Cannot create this list with pip.req.parse_requirements() because it requires
# the pwd module, which is Unix only.
def _read_requirements(file_name):
"""
Returns list of required modules for 'install_requires' parameter. Assumes
requirements file contains only module lines and comments.
"""
requirements = []
with open(os.path.join(file_name)) as f:
for line in f:
if not line.startswith('#'):
requirements.append(line)
return requirements
INSTALL_REQUIREMENTS = _read_requirements('requirements.txt')
# read the contents of your README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md')) as f:
LONG_DESCRIPTION = f.read()
setup(
name=PACKAGE_NAME,
packages=find_packages(exclude=['tests', '*.tests', 'tests.*', '*.tests.*']),
python_requires='<=2.7.18',
include_package_data=True,
entry_points={
'console_scripts': [
'openv-server = openvisualizer.__main__:main',
'openv-client = openvisualizer.client.main:cli',
'openv-serial = scripts.serialtester_cli:cli',
'openv-tun = scripts.ping_responder:cli',
],
},
install_requires=INSTALL_REQUIREMENTS,
# Must extract zip to edit conf files.
zip_safe=False,
version=VERSION,
author='Thomas Watteyne',
author_email='[email protected]',
description='Wireless sensor network monitoring and visualization tool',
long_description_content_type='text/markdown',
long_description=LONG_DESCRIPTION,
url='https://openwsn.atlassian.net/wiki/display/OW/OpenVisualizer',
keywords=['6TiSCH', 'Internet of Things', '6LoWPAN', '802.15.4e', 'sensor', 'mote'],
platforms=['platform-independent'],
license='BSD 3-Clause',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Communications',
'Topic :: Home Automation',
'Topic :: Internet',
'Topic :: Software Development',
],
)