-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
41 lines (33 loc) · 1.36 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
import os.path as osp
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from bayes_cbf import __version__
class Pytest(TestCommand):
def run_tests(self):
import pytest
errno = pytest.main(["tests"])
sys.exit(errno)
def rel2abs(relpath, basedir=osp.dirname(__file__) or '.'):
return osp.join(basedir, relpath)
setup(name="bayes_cbf",
version=__version__,
packages=find_packages(),
tests_require=['pytest', 'scipy'],
cmdclass = {'test': Pytest},
description=open(rel2abs('README.md')).readlines(),
install_requires=open(rel2abs('requirements.txt')).readlines(),
python_requires=">=3.6",
include_package_data=True,
package_data={
"": ["*.sdf", "checker_blue.png", "*.mtl", "*.obj"],
},
entry_points={
'console_scripts': [
'run_pendulum_control_trival = bayes_cbf.pendulum:run_pendulum_control_trival',
'run_pendulum_control_cbf_clf = bayes_cbf.pendulum:run_pendulum_control_cbf_clf',
'pendulum_learn_dynamics = bayes_cbf.pendulum:learn_dynamics',
'pendulum_control_ground_truth = bayes_cbf.pendulum:run_pendulum_control_ground_truth',
'pendulum_control_online_learning = bayes_cbf.pendulum:run_pendulum_control_online_learning'
]}
)