-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (61 loc) · 2.08 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
import os
from setuptools import find_packages
from setuptools import setup
# Get a list of scripts to install
scripts = []
for root, dirnames, filenames in os.walk('scripts'):
# don't install the wrapper scripts
# since they would overlay Python packages with the same name
if 'wrapper' in dirnames:
dirnames.remove('wrapper')
for filename in filenames:
if not filename.endswith('.py'):
continue
scripts.append(os.path.join(root, filename))
# Get the long description out of the readme.md
with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f:
long_description = f.read()
kwargs = {
'name': 'ros_buildfarm',
# same version as in:
# - ros_buildfarm/__init__.py
# - stdeb.cfg
'version': '3.0.1-master',
'packages': find_packages(exclude=['test']),
'scripts': scripts,
'include_package_data': True,
'zip_safe': False,
'install_requires': [
'empy',
'PyYAML'],
'tests_require': [
'flake8 >= 3.7',
'flake8_class_newline',
'flake8_docstrings',
'flake8_import_order',
'pep8',
'pyflakes'],
'author': 'Dirk Thomas',
'author_email': '[email protected]',
'maintainer': 'Dirk Thomas',
'maintainer_email': '[email protected]',
'url': 'https://github.com/ros-infrastructure/ros_buildfarm',
'keywords': ['ROS', 'buildfarm', 'catkin'],
'classifiers': [
'Programming Language :: Python',
'License :: OSI Approved :: Apache Software License'],
'description': "Build farm used to build the ROS ecosystem's packages.",
'long_description': long_description,
'license': 'Apache 2.0',
}
if os.sys.version_info[0] == 2:
kwargs['install_requires'].append('configparser')
if 'SKIP_PYTHON_MODULES' in os.environ:
kwargs['packages'] = []
elif 'SKIP_PYTHON_SCRIPTS' in os.environ:
kwargs['name'] += '_modules'
kwargs['scripts'] = []
else:
kwargs['install_requires'] += [
'catkin_pkg >= 0.2.6', 'jenkinsapi', 'rosdistro >= 0.4.0', 'vcstool >= 0.1.37']
setup(**kwargs)