forked from splintered-reality/py_trees
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·74 lines (69 loc) · 2.97 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
68
69
70
71
72
73
74
#!/usr/bin/env python
from setuptools import find_packages, setup
import os
# You need install_requires if you don't have a ROS environment
install_requires = [] if os.environ.get('CATKIN_BINARY_DIR') else [
# tests
"nose",
# runtime
'enum34',
'pydot'
]
##############################
# Pull in __version__
##############################
project_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), os.pardir))
version_file = os.path.join(project_dir, 'py_trees', 'version.py')
with open(version_file) as f:
exec(f.read())
# Some duplication of properties here and in package.xml.
# Make sure to update them both.
# That is the price paid for a pypi and catkin package.
d = setup(
name='py_trees',
version=__version__,
packages=find_packages(exclude=['tests*', 'docs*']),
install_requires=install_requires,
author='Daniel Stonier, Naveed Usmani, Michal Staniaszek',
maintainer='Daniel Stonier <[email protected]>, Naveed Usmani <[email protected]>',
url='http://github.com/stonier/py_trees',
keywords='behaviour-trees',
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries'
],
description="pythonic implementation of behaviour trees",
long_description="A behaviour tree implementation for rapid development of small scale decision making engines that don't need to be real time reactive.",
license='BSD',
test_suite='nose.collector',
tests_require=['nose'],
# test_suite='tests',
# Unfortunately catkin builds do not like this
# entry_points={
# 'console_scripts': [
# 'py-trees-demo-action-behaviour = py_trees.demos.action:main',
# 'py-trees-demo-behaviour-lifecycle = py_trees.demos.lifecycle:main',
# 'py-trees-demo-blackboard = py_trees.demos.blackboard:main',
# 'py-trees-demo-context-switching = py_trees.demos.context_switching:main',
# 'py-trees-demo-dot-graphs = py_trees.demos.dot_graphs:main',
# 'py-trees-demo-selector = py_trees.demos.selector:main',
# 'py-trees-demo-sequence = py_trees.demos.sequence:main',
# 'py-trees-demo-tree-stewardship = py_trees.demos.stewardship:main',
# ],
# },
# So we do the tedious way
scripts=['scripts/py-trees-demo-action-behaviour',
'scripts/py-trees-demo-behaviour-lifecycle',
'scripts/py-trees-demo-blackboard',
'scripts/py-trees-demo-context-switching',
'scripts/py-trees-demo-dot-graphs',
'scripts/py-trees-demo-selector',
'scripts/py-trees-demo-sequence',
'scripts/py-trees-demo-tree-stewardship',
'scripts/py-trees-render'
],
)