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

retrieve version from package #1648

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

zacharyburnett
Copy link
Collaborator

@zacharyburnett zacharyburnett commented Oct 14, 2024

attempt to fix issue in the build workflow where the dunamai version retrieval action wasn't able to find the micromamba environment (and so attempted to install dunamai to the system Python installation, which failed)

upon further reflection on this we don't even need to use dunamai at all, we can just get the version from jwql.__version__, no need to make this complicated

@zacharyburnett zacharyburnett self-assigned this Oct 14, 2024
@zacharyburnett zacharyburnett force-pushed the build/fix_build_workflow branch from c054982 to 7607712 Compare October 14, 2024 15:56
@zacharyburnett zacharyburnett force-pushed the build/fix_build_workflow branch from b600c81 to e930d84 Compare October 14, 2024 16:01
@zacharyburnett zacharyburnett changed the title explicitly install and run dunamai within environment to retrieve version retrieve version from package Oct 14, 2024
@zacharyburnett zacharyburnett marked this pull request as ready for review October 14, 2024 16:12
Comment on lines +46 to +47
name: retrieve package version
run: echo version=$(python -c "import jwql; print(jwql.__version__)") >> $GITHUB_OUTPUT
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we don't even have to use dunamai here, we can just use the pre-populated __version__

@@ -10,4 +12,4 @@
f"while JWQL is using {__version__}")

except FileNotFoundError:
print('Could not determine jwql config version')
warnings.warn('Could not determine jwql config version')
Copy link
Collaborator Author

@zacharyburnett zacharyburnett Oct 14, 2024

Choose a reason for hiding this comment

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

when this was print(, it was polluting the output of import jwql; print(jwql.__version__) in the workflow

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.

1 participant