-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature/env naming #874
Feature/env naming #874
Conversation
Added CLI for prepending prefix and appending suffix to conda environment names
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.
Fantastic. More standardised and yet more flexible. Great work!
lib/MIP/Set/Parameter.pm
Outdated
$log->warn( | ||
q{No environment name has been specified for MIP's main environment.}); | ||
$log->warn(q{MIP will be installed in conda's base environment.}); | ||
q{No environment name has been specified for MIP's main environment. Using default} |
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.
Please add the MIP's main environment to the log: qq{Using default $parameter_href->{environment_name}{emip}}
lib/MIP/Set/Parameter.pm
Outdated
my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) = localtime time; | ||
my $date = sprintf '%02d%02d%02d', $year % $ONE_HUNDRED, $mon + 1, $mday; | ||
|
||
## Set up conda environment names and prefix paths for environmnents | ||
foreach my $environment (@environments) { |
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.
It would be nice to separate this foreach loop into a new sub which you can test the different scenarios in. It will make it easier to understand the logic and also to test it and then you do not have to test it in the calling sub
Typo Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
typo Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
more typos Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
This PR fixes:
Standard environment names. Adds date by default as well as the possibility to add a prefix and suffix to the environment names.
Also some fixes around checking pip packages
How to test:
Expected outcome:
Review: