-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly detect transitive dependencies with different module names (#…
…1033) * modify the problem transitive dependency being detected as missing wrongl Added another check method to verify whether a package exists in the environment, if can't be found by _get_package_name_from_metadata. Also updated the test cases to include bs4 for testing in test_cli_requirement_in. * Refs: #1099 revise the check function and add dependency into requirements.in I revised module.py as per the change requests and added beautifulsoup4==4.12.3 to requirements.in. With this change, the test_cli_single_requirements_files test now passes without any DEP003 issues related to bs4. Additionally, since soupsieve is added to requirements.txt during the uvx --from pip-tools pip-compile process as a dependency of bs4, this causes a DEP002 issue in test_cli_multiple_requirements_files. Therefore, I also revised these two parts of the test case. * run through pre-commit * add a unittest and revise the functional test related to #1099 pull request Add a unit test to test the new function _is_package_installed in module.py, also revise the test case in project_requirements_in to verify the use of the new function. * Update tests/fixtures/project_with_requirements_in/requirements.txt Co-authored-by: Mathieu Kniewallner <[email protected]> * Update test_module.py --------- Co-authored-by: Mathieu Kniewallner <[email protected]>
- Loading branch information
1 parent
a5d01d8
commit ddbb004
Showing
6 changed files
with
127 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ click==8.1.7 | |
isort==5.13.2 | ||
urllib3==2.2.3 | ||
uvicorn==0.32.0 | ||
itchiodl==2.3.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
import h11 | ||
import white as w | ||
from urllib3 import contrib | ||
import bs4 | ||
import itchiodl |
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