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

Support for conda #459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Support for conda #459

wants to merge 1 commit into from

Conversation

Dhananjhay
Copy link

@Dhananjhay Dhananjhay commented Nov 22, 2024

Proposed changes

This PR adds a conditional import for the ruamel_yaml dependency. This change is necessary because the conda package manager installs the package as ruamel_yaml, while pip installs it as ruamel. This discrepancy leads to import errors when working in a conda environment. The conditional import ensures we are agnostic to the installation method, preventing the import error.

Bug Fix:
This PR resolves the import error issue that occurs when the ruamel.yaml module is installed via conda. By handling both cases, it ensures the code works in both pip and conda environments.

Checklist

  • Changes have been tested to ensure that fix is effective or that a feature works.
  • Changes pass the unit tests
  • I have included necessary documentation or comments (as necessary)
  • Any dependent changes have been merged and published

Copy link
Member

@akhanf akhanf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

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.

2 participants