-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
67 lines (59 loc) · 2.12 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
#!/usr/bin/env python3
#
# Copyright (c) 2015, Tinghui Wang <tinghui.wang@wsu.edu>
# All rights reserved.
from setuptools import setup, find_packages
from Cython.Build import cythonize
import os
CLASSIFIERS = """\
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: POSIX
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3.5
Topic :: Home Automation
Topic :: Scientific/Engineering :: Artificial Intelligence
Topic :: Scientific/Engineering :: Information Analysis
""".splitlines()
NAME = "pyActLearn"
MAINTAINER = "Tinghui Wang (Steve)"
MAINTAINER_EMAIL = "tinghui.wang@wsu.edu"
DESCRIPTION = ("Activity Learning package designed for rapid prototyping of " +
"activity learning algorithms used with WSU CASAS smart home datasets.")
LONG_DESCRIPTION = DESCRIPTION
LICENSE = "BSD"
URL = "https://github.com/TinghuiWang/pyActLearn"
DOWNLOAD_URL = ""
AUTHOR = "Tinghui Wang (Steve)"
AUTHOR_EMAIL = "tinghui.wang@wsu.edu"
PLATFORMS = ["Linux"]
# Get Version from pyActLearn.version
exec_results = {}
exec(open(os.path.join(os.path.dirname(__file__), 'pyActLearn/version.py')).read(), exec_results)
version = exec_results['version']
# Get Install Requirements
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), 'r') as f:
install_requires = f.read().splitlines()
def do_setup():
setup(
name=NAME,
version=version,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
platforms=PLATFORMS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
keywords=' '.join(['activity recognition', 'smart home', 'smart environment']),
packages=find_packages('.'),
entry_points={'console_scripts': ['casas_download = pyActLearn.bin.casas_download:main']},
install_requires=install_requires,
ext_modules=cythonize("pyActLearn/learning/*.pyx", gdb_debug=True)
)
if __name__ == "__main__":
do_setup()