Skip to content

Support empy4 together with empy3#753

Merged
cottsay merged 13 commits intomasterfrom
jrivero/empy34
Feb 10, 2026
Merged

Support empy4 together with empy3#753
cottsay merged 13 commits intomasterfrom
jrivero/empy34

Conversation

@j-rivero
Copy link
Contributor

The PR change the code to support empy 4.x versions together with keeping support for empy3.

Per commit changes are:

  • Rework the unicode support to remove all workarounds and Python2 support 68a1563
  • Adds a wrapper function to em.expand to support both 3 and 4 empy series 057af73
  • Add a custom CI test that allows the testing on empy3.

The test code won't evolve automatically over the time when new Python versions appear but we can consider it something temporal until we deprecate empy3 completely.

Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Use a wrapper function to make the em.expand calls.

Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

This is the same approach as osrf/rocker#261

Copy link
Member

@cottsay cottsay left a comment

Choose a reason for hiding this comment

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

Can we start with a PR just to get EmPy v3/v4 support, and make the other improvements in a follow-up PR?

j-rivero and others added 3 commits February 9, 2026 16:39
Co-authored-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
@j-rivero j-rivero requested a review from cottsay February 9, 2026 17:28
Copy link
Member

@cottsay cottsay left a comment

Choose a reason for hiding this comment

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

This is a lot cleaner, thanks. Just one more comment.

j-rivero and others added 4 commits February 10, 2026 12:40
Co-authored-by: Scott K Logan <logans@cottsay.net>
Removed 'setuptools' and 'empy < 4' from install_requires.
@cottsay cottsay merged commit c596033 into master Feb 10, 2026
17 checks passed
@cottsay cottsay deleted the jrivero/empy34 branch February 10, 2026 19:20
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