-
Notifications
You must be signed in to change notification settings - Fork 20
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: use virtualenv instead of pipx for renku-python #128
Conversation
R-minimal/Dockerfile
Outdated
source .renku-python/bin/activate ; \ | ||
version_string=$(pip show renku | grep Version) ; \ | ||
pattern='Version: (.*)$' ; \ | ||
[[ $version_string =~ $pattern ]] ; \ | ||
currentversion=${BASH_REMATCH[1]} ; \ |
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.
what's wrong with renku --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.
Can't you see the beauty in that regex...? 🤦
fair point
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.
well maybe @Panaetius had some reason to not use it in the first place either...
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.
maybe it simply predates the introduction of renku --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.
no that's been around forever
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.
Do you know what renku --version
returns for non-released versions? I guess @Panaetius will tell us :)
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.
something like this: 0.16.1.dev16+g78fad896
- see the long regex at the bottom of the Dockerfile...
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.
indeed, renku --version
and the version displayed by pip show
or pipx list
seem to be identical also dev versions. I don't see a reason for not using renku --version
then.
9119004
to
63ac7fa
Compare
63ac7fa
to
df12bef
Compare
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.
This looks great, thank you!
Depends on SwissDataScienceCenter/renkulab-docker#187 being released.Ready to merge.