-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Implement environment export plugin hook #14886
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
Merged
Merged
Conversation
This file contains hidden or 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
Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
…eading operations
…ample - Added a new `_generate_format_help_and_examples` function to dynamically generate help text and examples for export formats. - Enhanced the `configure_parser` function to include a `--format` argument, allowing users to specify the export format. - Implemented environment exporters for JSON and YAML formats, enabling serialization of conda environments to these formats. - Updated the `execute` function to handle different export formats based on user input or file extension. - Modified tests to validate the new JSON export functionality and ensure backward compatibility with YAML exports.
jezdez
commented
May 29, 2025
pre-commit.ci autofix |
…ironmentSpecBase classes
- Implemented error handling for exporting environments with external packages (pip) and incomplete requested packages. - Added a new test to verify that appropriate errors are raised when invalid environments are exported in explicit format. This improves the robustness of the environment export functionality by ensuring that only valid environments can be exported in explicit format.
- Corrected the attribute access method for `base_url` and `subdir` in the export_explicit function to use `getattr` instead of `getatter`. - This change improves the reliability of the environment export functionality by ensuring proper attribute retrieval from package objects.
soapy1
reviewed
Jul 29, 2025
kenodegard
reviewed
Jul 29, 2025
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
…uration - Added logic to override the environment's channel config when --override-channels is used with explicit channels, ensuring only requested channels appear in the exported environment file. - Removed unused `override_channels` parameter from the Environment class constructor for clarity and maintainability.
soapy1
reviewed
Jul 29, 2025
kenodegard
reviewed
Jul 29, 2025
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
- Included the channels argument in the execute function to enhance the environment export process. - This change ensures that the specified channels are considered during the export, improving the accuracy of the exported environment file.
kenodegard
reviewed
Jul 29, 2025
…_export.py to streamline the environment export process.
- Replaced instances of the flask package with colorama in test_create.py, test_main_export.py, and test_prefix_data.py to ensure consistency in testing. - Adjusted assertions and comments accordingly to reflect the change in the test package.
Closed
2 tasks
kenodegard
reviewed
Jul 29, 2025
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
kenodegard
approved these changes
Jul 29, 2025
soapy1
approved these changes
Jul 29, 2025
Woohoo! |
This was referenced Jul 30, 2025
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
More on this in conda/conda-planning#52 (tickets in conda repo to follow)
Relies on #14820
Resolves #15048
Checklist - did you ...
news
directory (using the template) for the next release's release notes?