Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: catch errors in remote.AUTO provider list (#1834)
* remote: catch errors in AUTO provider list The AUTO remote imports and initialises all remote providers, however some remote providers assume they will only be imported or instantiated if their dependencies and/or configuration is set within the environment. This leads to a situation where *all* remote dependencies and *all* remote configuration must be installed/configured before using the AUTO provider. This patch avoids this issue by skipping remote providers that raise exceptions when either imported or instantiated. * tests: add tests of snakemake.remote.AUTO
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import re, os, sys | ||
shell.executable("bash") | ||
|
||
from snakemake.remote import AUTO | ||
|
||
rule all: | ||
input: | ||
AUTO.remote("https://github.com/snakemake/snakemake/raw/main/images/logo.png") | ||
run: | ||
shell("cp {input} ./") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.