-
Notifications
You must be signed in to change notification settings - Fork 516
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
feat: added support for micromamba frontend #2013
base: main
Are you sure you want to change the base?
Conversation
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.
Very nice, thanks a lot! Just a few things below.
And may I ask you to format with black?
snakemake/deployment/conda.py
Outdated
@@ -465,8 +465,12 @@ def create(self, dryrun=False): | |||
) | |||
env_archive = self.archive_file | |||
try: | |||
# Create empty env | |||
if self.frontend == "micromamba": | |||
(Path(env_path) / "conda-meta").mkdir(parents=True, exist_ok=True) |
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 you add a comment here why this is needed? And if you consider this a bug in micromamba, add a todo for removal once the bug is fixed.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@charmoniumQ can you please format the code with black? I would do it myself, but you configured your fork such that I don't have permissions to push changes to it. |
This should be a draft PR, because it doesn't completely work yet. Specifically |
I see. Thanks! |
@charmoniumQ any chance to finalize this soon? Or shall I try to find some time to help out? |
Unfortunately, I haven't had a lot of time recently. I may have more time in two weeks. I would appreciate if you helped out. |
Specify how conda info is read with micromamba Work around micromamba not being able to create environment in existing directory
Also running into this issue when I tried to use micromamba in my CI as the conda provider. I tried a workaround by setting an alias of conda=mamba, but Snakemake was still complaining the command |
@johanneskoester |
Basic working version with micromamba
Somehow I missed the notification. Sorry to keep you waiting @maxim-h Now this PR reflects the tip of Maxim-H's work. |
I can't get Nose to work in Python 3.10, so I changed the But, with pytest, the tests pass on my machine except for some unrelated service/credential issues:
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@charmoniumQ awesome! No worries, we all have a day job after all) |
Hi, what is the status of this feature? I only have micromamba, not conda, installed on my machine and when I include the
|
This feature seems to work for me and passes tests packaged with the source code. I think we're just waiting on @johanneskoester to merge or give feedback. |
@sparktx-ariel-hippen not sure what the issue is in your case. A couple things to check:
|
Any update on this? Really appreciate the work you're doing 🙏🏻 |
I've had moderate success dogfooding the changes made here. Some of the issues I've observed are:
And most glaring issue in my opinion is that I didn't manage to use this branch without using the testing environment (from Unfortunately my python skills aren't good enough to push this all the way home. There are some things in the Workflow and the shell class that initialize Conda without specifying the frontend, but I still can't tell if that's the issue. |
Adapt activate shell command to micromamba
Quality Gate passedIssues Measures |
Description
Updating #1889
QC
docs/
) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).