-
Notifications
You must be signed in to change notification settings - Fork 56
/
setup.py
56 lines (49 loc) · 1.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
import os
from setuptools import setup
# retrieve the version number
from coap import coapVersion
VERSION = '.'.join([str(v) for v in coapVersion.VERSION])
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
with open('COPYING.txt') as f:
LICENSE = f.read()
# Create list of required modules for 'install_requires' parameter. Cannot create
# this list with pip.req.parse_requirements() because it requires the pwd module,
# which is Unix only.
# Assumes requirements file contains only module lines and comments.
deplist = []
with open(os.path.join('requirements.txt')) as f:
for line in f:
if not line.startswith('#'):
deplist.append(line)
setup(
name="openwsn-coap",
packages=["coap"],
version=VERSION,
author="Thomas Watteyne",
author_email="watteyne@eecs.berkeley.edu",
description="A CoAP Python library",
long_description=LONG_DESCRIPTION,
url="http://www.openwsn.org/",
keywords=["CoAP", "Internet of Things", "IETF CORE"],
license=LICENSE,
install_requires=deplist,
platforms=['platform-independent'],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Communications",
"Topic :: Home Automation",
"Topic :: Internet",
# "Topic :: Internet :: Proxy Servers",
# "Topic :: Internet :: WWW/HTTP :: Browsers",
# "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)