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

fix create_source_tarball.sh script to be compatible with recent setuptools versions #894

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

boegel
Copy link
Member

@boegel boegel commented Jun 12, 2024

Recent versions of setuptools (>= 69.0.3, not sure?) 'normalize' package names by replacing dashes with underscores, so we source tarballs like easybuild_framework-4.9.2.tar.gz instead of easybuild-framework-4.9.2.tar.gz.

The changes being made here accept both, just to stay compatible with older setuptools versions (or in case they change their mind again...)

edit: see also easybuilders/easybuild-easyblocks#3358

@@ -22,7 +22,7 @@ function success() {
}

function warning() {
echo -e "\033[31mWARNING: $1\033[0m" >&2
echo -e "\033[33mWARNING: $1\033[0m" >&2
Copy link
Member Author

Choose a reason for hiding this comment

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

This just makes warnings yellow rather than red, so they stand out from errors a bit better

…ptools versions which 'normalize' package names by replacing dashes with underscores
@boegel boegel force-pushed the fix_create_source_tarball_script branch from ae1b1ad to 2050249 Compare June 12, 2024 07:44
@boegel boegel force-pushed the fix_create_source_tarball_script branch from 0b83f26 to 738a6af Compare June 12, 2024 11:33
@boegel boegel added the bug fix label Jun 12, 2024
Copy link
Contributor

@Micket Micket left a comment

Choose a reason for hiding this comment

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

lgtm

@Micket Micket merged commit 6f940de into easybuilders:develop Jun 12, 2024
6 checks passed
@boegel boegel deleted the fix_create_source_tarball_script branch June 12, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants