-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
executable file
·42 lines (37 loc) · 1.39 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
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
def get_ini_variable(name):
with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f:
return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1)
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as r_file:
readme = r_file.read()
setup(
name='ros_get',
license='MIT',
version=get_ini_variable('__version__'),
url=get_ini_variable('__url__'),
author=get_ini_variable('__author__'),
author_email=get_ini_variable('__email__'),
description='Simple tools for working with ROS source packages',
long_description=readme,
package_dir={'': 'src'}, # tell distutils packages are under src
packages=find_packages('src'), # include all packages under src
install_requires=[
"mock < 4; python_version < '3'",
'argcomplete',
'catkin_pkg',
'catkin_tools',
"colcon-common-extensions; python_version >= '3'",
'colorlog',
'future',
'rosdep',
'rosdistro >= 0.7.3',
'rosinstall_generator',
'six>=1.7', # https://github.com/testing-cabal/mock/issues/257
'trollius', # remove when catkin>0.4.4 is released
'vcstools',
'xdg==1.0.7',
],
entry_points={'console_scripts': ['ros-get=ros_get.__main__:main']}, )