Skip to content

Handle build strings in CondaYamlHandler dependencies - #5573

Open
arnavarya001 wants to merge 1 commit into
aboutcode-org:developfrom
arnavarya001:fix-conda-yaml-build-strings
Open

arnavarya001 wants to merge 1 commit into
aboutcode-org:developfrom
arnavarya001:fix-conda-yaml-build-strings

Conversation

@arnavarya001

Copy link
Copy Markdown

Fixes #5552

Summary

  • Add split_conda_pin() in src/packagedcode/conda.py to parse name=version[=build] specs using partition("=") instead of split("=") unpacking, avoiding ValueError on conda env export manifests with build strings.
  • Initialize version = None in the fallback branch of get_conda_yaml_dependencies() and reuse split_conda_pin() in CondaMetaYamlHandler.parse().
  • Add regression tests and fixtures for environment.yaml with build strings in tests/packagedcode/test_conda.py.

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

Signed-off-by: Arnav Arya <arnavarya2004@gmail.com>

This branch has not been deployed

No deployments
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.

CondaYamlHandler fails on default conda env export manifests with build strings

1 participant