-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
60 lines (51 loc) · 1.76 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
import os
from setuptools import setup, find_packages
PACKAGE = "iotlabwebsocket"
def readme(fname):
"""Utility function to read the README. Used for long description."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(package):
"""Extract package version without importing file.
Inspired from pep8 setup.py.
"""
with open(os.path.join(package, "__init__.py")) as init_fd:
for line in init_fd:
if line.startswith("__version__"):
return eval(line.split("=")[-1])
if __name__ == "__main__":
setup(
name=PACKAGE,
version=get_version(PACKAGE),
description=(
"Provides server exposing IoT-LAB nodes via" "a websocket connection."
),
long_description=readme("README.md"),
author="IoT-LAB Team",
author_email="[email protected]",
url="http://www.iot-lab.info",
license="BSD",
keywords="iot websocket serial web",
platforms="any",
packages=find_packages(),
scripts=[],
entry_points={
"console_scripts": [
"iotlab-websocket-service = " "iotlabwebsocket.service_cli:main",
],
},
install_requires=[
"tornado>=6.1",
],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Intended Audience :: Developers",
"Environment :: Console",
"Topic :: Communications",
"License :: OSI Approved :: ",
"License :: OSI Approved :: BSD License",
],
zip_safe=False,
)