-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (56 loc) · 1.51 KB
/
Copy pathsetup.py
File metadata and controls
57 lines (56 loc) · 1.51 KB
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
from setuptools import find_packages, setup
import os, sys
# Run tests
# Ref: http://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'test':
test_requirements = [
'pytest',
'pytest-cov',
'pytest-describe',
'coverage',
'mock'
]
try:
modules = map(__import__, test_requirements)
except ImportError as e:
err_msg = e.message.replace("No module named ", "")
msg = "%s is not installed. Install your test requirments." % err_msg
raise ImportError(msg)
os.system('py.test tests')
sys.exit()
setup(name="beluga",
version="0.1",
description="A trajectory optimization framework",
author="Michael J. Grant",
author_email='mjgrant@purdue.edu',
platforms=["any"], # or more specific, e.g. "win32", "cygwin", "osx"
license="",
url="http://github.rcac.purdue.edu/RDSL/beluga",
py_modules=['beluga'],
packages=find_packages(exclude=['docs', 'tests*', 'sandbox', 'examples']),
# scripts=['bin/beluga'],
entry_points={
'console_scripts': [
'beluga = beluga.__main__:main'
]
},
install_requires=[
"dill",
"numpy",
"sympy",
"scipy",
"pytest",
"pytest-cov",
"pytest-describe",
"coverage",
"mock",
"matplotlib",
"numexpr",
"pystache",
"docopt",
"simplepipe",
"multiprocessing_on_dill",
"toyplot",
"PyQt5",
]
)