LicenseCheck
LicenseCheck copied to clipboard
Bug: Using requirements file ignores versions specified inside file
Before You Begin
Before proceeding, please make sure to follow these steps:
- [x] I have checked for similar issues in the project's issue tracker.
- [x] I have searched closed issues to see if a similar problem was reported before.
Issue Details
Bug: Using requirements file ignores versions specified inside file
Description
Reproduction steps:
EITHER
1 - Activate a virtual environment with some dependency version x.x
2 - Run licensecheck specifying --using on a requirements file in project with versions specified of form
Appears related to the strategy used for loading metadata (using metadata package loads the information from currently running Python environment) or using Pypi if metadata is not found using metadata package. Since this is kind of a large change in strategy, it might be more of a feature than bug.
Workaround
Existing functionality kind of requires that users are inside of a virtual environment created with their requirements file that they are running licensecheck on in order to get proper version information.
Expected Behavior
licensecheck should honor the frozen version inside of requirements.txt regardless of Python environment
Actual Behavior
Described in reproduction steps.
System Information
- Operating System (OS): Windows
- OS Version: 11