Metadata-Version: 2.1
Name: ros2setup
Version: 1.1
Summary: Python library for the ROS2 module setup
Home-page: https://github.com/Frederic98/ros2_setup
Author: Frederic
License: UNKNOWN
Description: # Ros2Setup
        
        This project is a tiny python library made for ROS2 modules to simplify the packaging process.  
        Instead of having two files -`setup.py` and `package.xml`- with the same duplicated information, this module makes it easy dynamically import the information from the `package.xml` into the python setup file.
        
        This way, only the _package.xml_ file has to be edited, to prevent having the two files with conflicting information.
        ## Installing
        Either install with `pip install ros2setup`, or copy _ros2setup.py_ next to your _setup.py_ so that it is accessible from there.
        
        ## Usage
        In the _setup.py_ file of your ROS2 package, change the hardcoded information to a call to Ros2Setup to pull the data from the XML file.
        ```python
        from setuptools import setup
        from ros2setup import Ros2Setup
        
        package_name = Ros2Setup.tag('name')
        setup(
            name=package_name,
            version=Ros2Setup.tag('version'),
            packages=[package_name],
            data_files=[
                ('share/ament_index/resource_index/packages',
                    ['resource/' + package_name]),
                ('share/' + package_name, ['package.xml']),
            ],
            install_requires=['setuptools'],
            zip_safe=True,
            maintainer=Ros2Setup.tag('maintainer'),
            maintainer_email=Ros2Setup.attrib('maintainer', 'email'),
            description=Ros2Setup.tag('description'),
            license=Ros2Setup.tag('license'),
            tests_require=['pytest'],
            entry_points={
                'console_scripts': [
                    'streamer = mypackage.submodule:main',
                ],
            },
        )
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
