ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org

Ament_lint for pure-python packages?

We’re looking to create a pure-python package that lives outside the ROS2 ecosystem, but are big fans the linting quality held for Python in ROS2 via the ament_lint packages.

Is there an easy way that a setuptools-only Python package could take advantage of these linter wrappers? They’re not on pip, but I’m wondering 1) how hard it would be to release them to PyPI or 2) if there’s another way we could take advantage of them without a ROS2 installation.

We’d like to use them on Ubuntu, OSX, and Windows, so the option to just add the ros2 apt repo and install only the ament linters doesn’t seem like a solution, because Mac and Windows only can grab full fat binary installations for all of ROS2 (that I know of)

This is probably mostly in @dirk-thomas expertise but if anybody else has ideas I’d like to hear them :slight_smile:

While not hard I would rather not duplicate our release effort.

How about installing these package using pip pointing to the GitHub repos?

1 Like

How about installing these package using pip pointing to the GitHub repos?

Oh - I hadn’t even thought of that! I think that will work perfectly, thanks for the tip!