Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Iterable from collections.abc. #73

Merged
merged 2 commits into from
Jan 27, 2022
Merged

Conversation

clalancette
Copy link
Contributor

Getting Iterable from collections was deprecated in Python 3.9 and removed in 3.10.

While I was in here, I noticed that we were getting warnings for a deprecated usage of script-dir and install-scripts, so fix that as well.

Fixes #72

Getting Iterable from collections was deprecated in Python 3.9
and removed in 3.10.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Using dashes is deprecated.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving because the basics.py change LGTM. The setup.cfg doesn't, but it's a pre-existing issue.

[install]
install-scripts=$base/share/urdfdom_py/scripts
install_scripts=$base/share/urdfdom_py/scripts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is different from https://github.com/ros2/examples/blob/master/rclpy/executors/setup.cfg where scripts are installed into $base/lib/package name. I think that's the only place ros2 looks for scripts to run.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an excellent point, and indeed no binaries are found with ros2 run urdfdom_py display_urdf. I'll merge this one in and also open another PR to fix that.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where can I find this setup.cfg file?

@clalancette clalancette merged commit db5971c into ros2 Jan 27, 2022
@clalancette clalancette deleted the clalancette/fix-iterable branch January 27, 2022 13:27
@audrow audrow mentioned this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants