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

Allow providing additional conda envs to update in topgrade.toml #1048

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maxkapur
Copy link

What does this PR do

This PR adds a [conda] block to topgrade.toml with two optional lists env_names and env_paths. These lists specify additional conda environments whose packages are updated using conda env update -n env_name or conda env update -p env_path, respectively.

I modified run_conda_update() to update the base conda environment first, then additional named environments and environment paths.

Standards checklist

  • The PR title is descriptive
  • I have read CONTRIBUTING.md
  • Optional: I have tested the code myself
  • n/a: If this PR introduces new user-facing messages they are translated

For new steps

  • Optional: Topgrade skips this step where needed
  • Optional: The --dry-run option works with this step
  • Optional: The --yes option works with this step if it is supported by
    the underlying command

If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.

@maxkapur
Copy link
Author

Leaving this as a draft PR as it will require conflict resolution if/when #1047 is merged, but happy to hear thoughts/feedback.

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

Successfully merging this pull request may close these issues.

1 participant