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

IMP/FIX: snakedeploy considers/overwrites version dependecies in yaml-file #62

Open
angrybee opened this issue Apr 26, 2024 · 1 comment

Comments

@angrybee
Copy link

  • 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
@johanneskoester
Copy link
Contributor

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.

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

2 participants