-
Notifications
You must be signed in to change notification settings - Fork 43
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
base: develop
Are you sure you want to change the base?
retrieve version from package #1648
Conversation
c054982
to
7607712
Compare
b600c81
to
e930d84
Compare
name: retrieve package version | ||
run: echo version=$(python -c "import jwql; print(jwql.__version__)") >> $GITHUB_OUTPUT |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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
attempt to fix issue in the build workflow where the
dunamai
version retrieval action wasn't able to find themicromamba
environment (and so attempted to installdunamai
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 fromjwql.__version__
, no need to make this complicated