Skip to content

Conversation

zvigrinberg
Copy link
Contributor

@zvigrinberg zvigrinberg commented Oct 23, 2023

Description

fix: potential wrong parsing of pip show with multiline string

When one of the packages contains license key with multi line string value, it can contains the delimiter "---" inside the value ( that separates between the packages in pip show otuput) , hence need to refine the parsing - that is , refine the delimiter.

the problem can be recreated with using in requirements.txt package scipy in python environment >= 3.9.

pip3 show scipy

fixes: https://issues.redhat.com/browse/TC-644

Related issue (if any): fixes #issue_number_goes_here

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

test: add developer test commented out stub in IT to be ready for quick checks

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
when one of the packages contains license key with multi line string value, it can contains the delimiter "---" inside the value ( that separates between the packages in pip show otuput) , hence need to refine the parsing - that is , refine the delimiter

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg changed the title Fix pip show parsing fix: pip show parsing is incorrect Oct 23, 2023
@zvigrinberg zvigrinberg merged commit c8fd112 into main Oct 23, 2023
@zvigrinberg zvigrinberg deleted the fix-pip-show-parsing branch October 23, 2023 15:25
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