This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
65 lines (56 loc) · 1.79 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
from setuptools import setup
import imp
with open('README.rst') as readme_file:
README = readme_file.read()
def get_version():
ver_file = None
try:
ver_file, pathname, description = imp.find_module('__version__', ['src/rosinstall'])
vermod = imp.load_module('__version__', ver_file, pathname, description)
version = vermod.version
return version
finally:
if ver_file is not None:
ver_file.close()
test_required = [
"nose",
"coverage",
"mock",
# run checks in multiple environments
"tox",
"tox-pyenv"
]
setup(name='rosinstall',
version=get_version(),
packages=['rosinstall'],
package_dir={'': 'src'},
install_requires=[
'vcstools>=0.1.38',
'pyyaml',
'rosdistro>=0.3.0',
'catkin_pkg',
'wstool>=0.1.14',
'rospkg'
],
tests_require=test_required,
# extras_require allow pip install .[test]
extras_require={
'test': test_required
},
scripts=["scripts/rosinstall", "scripts/roslocate",
"scripts/rosws", "scripts/rosco"],
author="Tully Foote",
author_email="[email protected]",
url="http://wiki.ros.org/rosinstall",
download_url="http://download.ros.org/downloads/rosinstall/",
keywords=["ROS"],
classifiers=["Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Development Status :: 7 - Inactive",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Version Control"
],
description="The installer for ROS",
long_description=README,
license="BSD")