snakedeploy
snakedeploy copied to clipboard
IMP/FIX: snakedeploy considers/overwrites version dependecies in yaml-file
- snakedeploy version: 0.9.1
- Python version: 3.12.3
- Operating System: linux-64
Description
I use snakedeploy to update my conda-envs. I need a specific version of pytorch so I pinned the version number in the yaml-file. snakedeploy upgrades it to the latest version and changes the version number in the yaml-file. In my case this single upgrade is unwanted.
What I Did
snakedeploy update-conda-envs python.yaml
git diff python.yaml
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- python
- matplotlib
- numpy
- - pytorch=1.13.1
+ - pytorch =2.1.2
This is the purpose of the update command. It will update all version constraints to the latest version in the channels. It would be possible though to allow masking individual items somehow, e.g. via a special comment syntax. PRs welcome.