Skip to content

Commit a82d590

Browse files
committed
requirements.txt read for dynamic dependencies should be relative.
1 parent de04d0c commit a82d590

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

dep_checker/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ def main(
8888
"""
8989

9090
# 3rd party
91-
from domdf_python_tools.paths import PathPlus
92-
from domdf_python_tools.typing import PathLike
91+
from domdf_python_tools.paths import PathLike, PathPlus
9392
from shippinglabel.requirements import ComparableRequirement, parse_pyproject_dependencies, read_requirements
9493

9594
if allowed_unused == ():
@@ -111,7 +110,7 @@ def read_req_file(req_file: PathLike) -> Set[ComparableRequirement]:
111110
dynamic = dom_toml.load(req_file)["project"].get("dynamic", ())
112111

113112
if "requirements" in dynamic:
114-
requirements = read_req_file(work_dir_p / "requirements.txt")
113+
requirements = read_requirements("requirements.txt")[0]
115114
else:
116115
requirements = parse_pyproject_dependencies(req_file, flavour="pep621")
117116

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
✘ pytest imported at my_project/__init__.py:5 but not listed as a requirement
2+
✘ chemistry_tools imported at my_project/__init__.py:6 but not listed as a requirement
3+
✘ pathlib2 imported at my_project/__init__.py:7 but not listed as a requirement
4+
✘ typing_extensions imported at my_project/__init__.py:8 but not listed as a requirement
5+
✘ domdf_python_tools imported at my_project/__init__.py:9 but not listed as a requirement
6+
✘ click imported at my_project/__init__.py:11 but not listed as a requirement
7+
✘ ruamel imported at my_project/__init__.py:13 but not listed as a requirement
8+
✘ Bio imported at my_project/__init__.py:15 but not listed as a requirement
9+
✘ configconfig imported at my_project/__init__.py:31 but not listed as a requirement
10+
✘ setuptools imported at my_project/__init__.py:35 but not listed as a requirement
11+
✘ biopython never imported
12+
✘ coincidence never imported
13+
✔ consolekit imported at my_project/__init__.py:10
14+
✘ numpy never imported
15+
✔ pandas imported at my_project/__init__.py:12

0 commit comments

Comments
 (0)