示例#1
0
    def test_parse_generated(self):
        maint = self.get_maintainer()
        pack = PackageTemplate(name='bar',
                               package_format=1,
                               version='0.0.0',
                               version_abi='pabi',
                               urls=[Url('foo')],
                               description='pdesc',
                               maintainers=[maint],
                               licenses=['BSD'])
        try:
            rootdir = tempfile.mkdtemp()
            file1 = os.path.join(rootdir, 'CMakeLists.txt')
            file2 = os.path.join(rootdir, PACKAGE_MANIFEST_FILENAME)
            create_package_files(rootdir, pack, 'groovy')
            self.assertTrue(os.path.isfile(file1))
            self.assertTrue(os.path.isfile(file2))

            pack_result = parse_package(file2)
            self.assertEqual(pack.name, pack_result.name)
            self.assertEqual(pack.package_format, pack_result.package_format)
            self.assertEqual(pack.version, pack_result.version)
            self.assertEqual(pack.version_abi, pack_result.version_abi)
            self.assertEqual(pack.description, pack_result.description)
            self.assertEqual(pack.maintainers[0].name, pack_result.maintainers[0].name)
            self.assertEqual(pack.maintainers[0].email, pack_result.maintainers[0].email)
            self.assertEqual(pack.authors, pack_result.authors)
            self.assertEqual(pack.urls[0].url, pack_result.urls[0].url)
            self.assertEqual('website', pack_result.urls[0].type)
            self.assertEqual(pack.licenses, pack_result.licenses)
            self.assertEqual(pack.build_depends, pack_result.build_depends)
            self.assertEqual(pack.buildtool_depends, pack_result.buildtool_depends)
            self.assertEqual(pack.run_depends, pack_result.run_depends)
            self.assertEqual(pack.test_depends, pack_result.test_depends)
            self.assertEqual(pack.conflicts, pack_result.conflicts)
            self.assertEqual(pack.replaces, pack_result.replaces)
            self.assertEqual(pack.exports, pack_result.exports)

            rdict = generate_distutils_setup(package_xml_path=file2)
            self.assertEqual({'name': 'bar',
                              'maintainer': u'John Foo',
                              'maintainer_email': '*****@*****.**',
                              'description': 'pdesc',
                              'license': 'BSD',
                              'version': '0.0.0',
                              'author': '',
                              'url': 'foo'}, rdict)
        finally:
            shutil.rmtree(rootdir)
示例#2
0
文件: setup.py 项目: xingyezhang/barc
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    ##  don't do this unless you want a globally visible script
    # scripts=['bin/myscript'],
    packages=['barc_gui'],
    package_dir={'': 'src'},
    scripts=['scripts/barc_gui']
)

setup(**d)
示例#3
0
文件: setup.py 项目: rorromr/ei4001
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['bender_torso'],
    package_dir={'': 'src'},
    )

setup(**d)
示例#4
0
#!/usr/bin/env python
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['kuon_control'],
    package_dir={'':"src"},
    )

setup(**setup_args)
示例#5
0
文件: setup.py 项目: Humhu/percepto
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['adel', 'tensorflow_vgg'],
    package_dir={'': 'python'},
)

setup(**setup_args)
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['aman_sandbox'],
    package_dir={'':'python'},
)

setup(**setup_args)
示例#7
0
文件: setup.py 项目: RobTek8Grp/RoVi
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
  scripts=['src/stereo_get_images.py'],
)

setup(**d)
示例#8
0
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['navigator_scan_the_code']
)

setup(**setup_args)
示例#9
0
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['rospy_util'],
    package_dir={'': 'src'},
)

setup(**setup_args)
示例#10
0
#!/usr/bin/env python

from os import system
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

print("Running PyRCC generator for rqt_default_theme Qt resources...")
system("pyrcc5 themes/tango/theme.qrc -o resource/tango_rc.py")

d = generate_distutils_setup(packages=['rqt_default_theme'],
                             package_dir={'': 'src'})

setup(**d)
示例#11
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['zzz_visualization_web_dash'],
                             package_dir={'': 'src'},
                             install_requires={'rospy', 'plot.ly', 'dash'})

setup(**d)
示例#12
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['traffic_light'],
    package_dir={'': 'include'},
)

setup(**setup_args)
示例#13
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['sdpp_devel'],
    package_dir={'': 'src'},
)

setup(**setup_args)
示例#14
0
# # ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(packages=['manipulator_control_gui'],
                                      package_dir={'': 'src'},
                                      requires=['std_msgs', 'roscpp'])

setup(**setup_args)
示例#15
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Yuki Furuta <*****@*****.**>

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['jsk_owl_exporter'],
                             package_dir={'': 'src'})

setup(**d)
示例#16
0
文件: setup.py 项目: vjampala/cse481
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=["rqt_simplegui"], package_dir={"": "src"}, requires=["rqt_gui", "rqt_gui_py", "rospy", "sound_play"]
)

setup(**setup_args)
示例#17
0
#!/usr/bin/env python

#
# Written by MangoMango to install the rosgraph_msgs package after generating
# the Python classes for its .msg definitions, and copying the generated classes
# to ./std_msgs/msgs (relative to setup.py's location)
#

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['std_msgs'],
    requires=['message_generation']
)

setup(**d)
示例#18
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    scripts=['bin/joint_controller', 'bin/joint_client', 'bin/Teleop_key'],
    packages=['teleop_base_arm'],
    package_dir={'': 'src'},
    requires=['rospy'])

setup(**d)
示例#19
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['vigir_rqt_sensor_param_control'],
    scripts=['scripts/sensor_param_control'],
    package_dir={'': 'src'}
)

setup(**d)
示例#20
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

setup_args = generate_distutils_setup(packages=['rqt_rotors'],
                                      package_dir={'': 'src'},
                                      scripts=['scripts/hil_plugin'])

setup(**setup_args)
示例#21
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    scripts=[
        "mission/keyboard_mission_node.py",
        "mission/wiimote_mission_node.py",
        "navigation/waypoint_navigation_node.py",
    ]
)

setup(**d)
示例#22
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['vigir_synthesis_manager'],
                             package_dir={'': 'src'})

setup(**d)
示例#23
0
文件: setup.py 项目: JamesKlee/part3
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
   packages=['pf_localisation'],
   package_dir={'': 'src'}
)

setup(**d)
示例#24
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['bitbots_bezier_pathfinding'],
    package_dir={'': 'src'},
)

setup(**d)
示例#25
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup()
d['packages'] = ['moveit_ros_visualization']
d['scripts'] = []
d['package_dir'] = {'': 'python'}
setup(**d)
示例#26
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(packages=['rv_panda_driver'],
                                      package_dir={'': 'src'})

setup(**setup_args)
示例#27
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['rocket'],
    package_dir={'':'python'})

setup(**setup_args)
示例#28
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

package_info = generate_distutils_setup()
package_info['packages'] = ['robot_properties_solo']
package_info['package_dir'] = {'': 'python'}
package_info['install_requires'] = []
package_info['scrips'] = ['nodes']

setup(**package_info)
示例#29
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['parallel_autonomy'],
    package_dir={'': 'include'},
)

setup(**setup_args)
示例#30
0
# # ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=[
        'what_the_duck',
        'what_the_duck_tests',
    ],
    install_requires=['termcolor'],
    package_dir={'': 'include'},
)
setup(**setup_args)
示例#31
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
   packages=['pr2_pretouch_grasp'],
   package_dir={'': 'src'}
)

setup(**d)
示例#32
0
#!/usr/bin/env python2

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['nmea2tf'],
    package_dir={'': 'src'},
)

setup(**d)
示例#33
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
  scripts=['MarkerLocatorROS.py', 'MarkerCaptureROS.py'],)
setup(**d)

示例#34
0
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from catkin_pkg.python_setup import generate_distutils_setup
from setuptools import setup

setup_args = generate_distutils_setup(
    packages=[
        'march_shared_classes', 'march_shared_classes.gait',
        'march_shared_classes.exceptions'
    ],
    package_dir={'': 'src'},
)

setup(**setup_args)
示例#35
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD 
from distutils.core import setup 
from catkin_pkg.python_setup import generate_distutils_setup 
 
# fetch values from package.xml 
setup_args = generate_distutils_setup( packages=['rqt_dvl'], package_dir={'': 'script'}, ) 
setup(**setup_args) 
示例#36
0
文件: setup.py 项目: U-M-R/rqt_bag
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['rqt_bag_plugins'],
                             package_dir={'': 'src'})

setup(**d)
示例#37
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

#fetch values from package.xml

setup_args = generate_distutils_setup(
    packages=['needybot_hello_world'],
    package_dir={'': 'src'})

setup(**setup_args)
示例#38
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['rosjava_build_tools'],
    package_dir={'': 'src'},
    scripts=[
        'scripts/catkin_create_android_pkg',
        'scripts/catkin_create_android_project',
        'scripts/catkin_create_android_library_project',
        'scripts/catkin_create_rosjava_pkg',
        'scripts/catkin_create_rosjava_project',
        'scripts/catkin_create_rosjava_library_project',
    ],
    package_data={
        'rosjava_build_tools': [
            'templates/android_package/*',
            'templates/android_project/*',
            'templates/rosjava_library_project/*',
            'templates/rosjava_package/*',
            'templates/rosjava_project/*',
            'templates/init_repo/*',
        ]
    },
)

setup(**d)
示例#39
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['glasgow_baxter_helpers'],
    package_dir={'': 'src/'}
)

setup(**d)
示例#40
0
#!/usr/bin/env python

from setuptools import setup
from catkin_pkg.python_setup import generate_distutils_setup

package_info = generate_distutils_setup(
    packages=['kalman_filter'],
    package_dir={'': 'src'},
)

setup(**package_info)
示例#41
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['rockin_scoring'],
    package_dir={'': 'src'})

setup(**setup_args)
示例#42
0
# Copyright (c) 2016 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['PID'],
    package_dir={'': 'src'},
    requires=['std_msgs', 'rospy']
)

setup(**setup_args)
示例#43
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['pm_control'],
    package_dir={'': 'src'}
)

setup(**d)
示例#44
0
#! /usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

setup_args = generate_distutils_setup(
    packages=['detection_calculation_node'],
    package_dir={'': 'src'},
)

setup(**setup_args)
示例#45
0
"""Setup file to expose python libraries."""

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['behavior_trees'],
    package_dir={'': 'src'},
)

setup(**setup_args)
示例#46
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

CONFIG = generate_distutils_setup(
    packages=['system_checker'],
    package_dir={'': 'src'}
)

setup(**CONFIG)
示例#47
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['sphero_driver'],
    package_dir={'': 'src'},
    )

setup(**d)
示例#48
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

setup_args = generate_distutils_setup(
    packages=['radlocc_calibration'],
    package_dir={'': 'src'},
)

setup(**setup_args)
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['common'],
    package_dir={'': 'src'}
)

setup(**d)

示例#50
0
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['kinetic_sample_database_connector'],
    package_dir={'': 'src'},
    requires=['std_msgs', 'rospy'])

setup(**setup_args)
示例#51
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['beaversim'],
    package_dir={'': 'src'},
    install_requires=[],
)

setup(**d)
示例#52
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['human_movement_identifier'],
    #scripts=['scripts/trajectory_publisher.py'],
    package_dir={'': 'src'})

setup(**setup_args)
示例#53
0
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=["vigir_behavior_simple_joint_control_test"], package_dir={"": "src"})

setup(**d)
示例#54
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(packages=['Imitation'],
                                      package_dir={'': 'src'})

setup(**setup_args)
示例#55
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
        packages=['leap_motion_driver'],
        package_dir={ '' : 'src' }
    )

setup(**d)
示例#56
0
from setuptools import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['giskardpy'], package_dir={'': 'src'})

setup(**d)
示例#57
0
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['caddy_ui'],
    package_dir={'': 'src'},
    requires=['std_msgs', 'rospy'])

setup(**setup_args)
示例#58
0
文件: setup.py 项目: scuthbert/ssg
#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(packages=['ssg'], package_dir={'': 'src'})
setup(**d)
示例#59
0
文件: setup.py 项目: fevb/team_cvap
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['pr2_moveit_utils'],
    package_dir={'': 'src'},
    requires=['rospy']
)

setup(**setup_args)
示例#60
0
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values from package.xml
setup_args = generate_distutils_setup(
    packages=['sheldon_servos'],
    package_dir={'': 'scripts'},
)

setup(**setup_args)