-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pip: Fix logic when parsing package metadata and refactor unit tests
Do not mix name and version from multiple config files (pyproject.toml, setup.cfg, setup.py) and with the name from git origin remote. Now, the current behavior parses one config file at a time, and then tries to get the name + version from it. If the name is there, both name and version are returned regardless of the version presence. This metadata will be used in the SBOM for the component representing the processed package. Even though, the probability of affecting users is low, it is considered as a breaking change since the component PURL might be different now. Therefore, it should be mentioned in the release notes. The commit also drastically simplifies unit tests to speed up overall time of unit tests while preserving the same coverage. Signed-off-by: Michal Šoltis <msoltis@redhat.com>
- Loading branch information
1 parent
4471bab
commit 5a65f16
Showing
2 changed files
with
159 additions
and
103 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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