Skip to content
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

Add subcommand for conda env version and wrapper bumping #17

Open
johanneskoester opened this issue Jun 28, 2021 · 0 comments
Open

Add subcommand for conda env version and wrapper bumping #17

johanneskoester opened this issue Jun 28, 2021 · 0 comments

Comments

@johanneskoester
Copy link
Contributor

We should add a subcommand

snakedeploy bump-conda-versions [ENVYAML, [ENVYAML, ...]]

which does the following. Given paths to environment YAML files, it would

  • Extract package names and channels from the env.
  • Run mamba create --dry-run --json -c .
  • Extract the versions from the packages in the json that also occur in the original env.
  • Rewrite the env with minor version pinnings derived from the extracted versions.

This can (a) be used to update all environments (except wrappers) in a workflow to the latest minor release, and (b) be used to update all wrapper envs in snakemake/snakemake-wrappers. The latter can be used in a weekly CI job which would automatically create a PR in case of new changes. The same github action can also be offered for workflows actually.

In addition, we should have another subcommand

snakedeploy bump-wrappers [SNAKEFILE, [SNAKEFILE, ...]]

which would bump all wrapper directives in a given Snakefile to the latest stable wrapper release. Again, this can come in combination with a github action that automatically creates a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant