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

Remove Python 2 support #68

Merged
merged 6 commits into from
Jul 28, 2021
Merged

Remove Python 2 support #68

merged 6 commits into from
Jul 28, 2021

Conversation

clalancette
Copy link
Contributor

As discussed over in #66 (comment) , we should remove support for Python 2 from this package. This PR does this by doing 3 different things:

  1. Removing trollius support
  2. Using modern asyncio keywords everywhere
  3. Changing the packaging so it only supports Python 3.5 and later

There is more work that can be done here; the indirection that was in place to support both Python 2 and Python 3 is probably no longer required. But I think this is a good first step, and we can always clean some of that stuff up later.

@clalancette clalancette requested a review from wjwwood June 30, 2020 13:52
@clalancette
Copy link
Contributor Author

@wjwwood Friendly ping here for review.

Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@wjwwood
Copy link
Member

wjwwood commented Jan 12, 2021

This is on me, because I need to do a final release with python support and then do a release that is python3 only without breaking older platforms and the pip install for python2. I messed this up for catkin tools and I just need to sit for a day or so and do it properly with test releases and stuff.

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
@wjwwood
Copy link
Member

wjwwood commented Jul 24, 2021

Oooook, I think we've got our last Python2 release out and working in 0.2.1 (it was released into rolling but not released as python-osrf-pycommon for ROS 1 until now). So now I can test this for merging (at least in ROS 2):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@wjwwood
Copy link
Member

wjwwood commented Jul 27, 2021

CI looks good (Windows warning is not related, it's in rclcpp_components).

Signed-off-by: William Woodall <[email protected]>
Signed-off-by: William Woodall <[email protected]>
@wjwwood wjwwood merged commit 77f6f33 into master Jul 28, 2021
@wjwwood wjwwood deleted the remove-python2 branch July 28, 2021 01:00
@clalancette
Copy link
Contributor Author

🎉

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