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

Big clean up of release.py script #1014

Merged
merged 14 commits into from
Oct 5, 2023
Merged

Conversation

j-rivero
Copy link
Contributor

A big first clean up in the ancient release.py script. Some major changes that I believe probably noone was using nowadays:

  • Remove --no-ignition-auto option
  • Remove --upstream option
  • Remove i386 from release.py (Bionic is the last Ubuntu and we are probably not interested into Debian/i386)
  • For create_tarball_name remove the option of package_alias (broken)
  • Remove sanity_check_gazebo_versions (outdated)

Formatting/Linting fixes:

  • Remove unused variables
  • 2 lines after methods
  • Fix spacing and blank lines
  • Use byte stream for empty return type in check_call
  • Change method not to end up in exit

The changes are easier to navigate commit-by-commit, the commit description should be good to understand each of them.

Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
release.py Outdated
@@ -493,7 +495,7 @@ def generate_upload_tarball(args):
# If we're releasing under a different name, then rename the tarball (the
# package itself doesn't know anything about this).
if args.package != args.package_alias:
tarball_fname = '%s-%s.tar.bz2'%(args.package_alias, args.version)
tarball_fname = ' %s-%s.tar.bz2' % (args.package_alias, args.version)
Copy link
Contributor

Choose a reason for hiding this comment

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

This failed for me with


 !! Can not find a tarball at: /tmp/tmp8ttiifnf/build/ gz-cmake-3.4.1.tar.bz2 or at /tmp/tmp8ttiifnf/build/ gz_cmake-3.4.1.tar.bz2

I think the issue is there are a number of places where an extra space is added inside string formats that didn't have it before. Search for ' %s

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Fixed in 38f04ab and f82e937

Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
@j-rivero j-rivero requested a review from azeey September 28, 2023 15:54
@j-rivero j-rivero merged commit e2687f1 into master Oct 5, 2023
1 check passed
@j-rivero j-rivero deleted the jrivero/cleanup_release.py branch October 5, 2023 15:00
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.

2 participants