creosote: Creosote 3.0.0. fails to detect usage of `ruamel-yaml` 0.18.6.
What happened?
Oh no, bloated venv! 🤢 🪣
Unused dependencies found: ruamel-yaml
Top top-level init.py:
from ruamel.yaml import YAML
Reproduction steps
Add a package(s) to pyproject.toml main dependencies using PDM 2.15.3:
│ ruamel.yaml │ 0.18.6 │ │
│ ruamel.yaml.clib │ 0.2.8 │
Run Creosote.
Relevant log output
Creosote 3.0.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- fix: compare using canonicalization The import name found in the top_level.txt or RECORD files were not accurately compared against the dependency name. The latter had been canonicalized whereas the ... — committed to fredrikaverpil/creosote by fredrikaverpil 2 years ago
- fix: compare using canonicalization The import name found in the top_level.txt or RECORD files were not accurately compared against the dependency name. The latter had been canonicalized whereas the ... — committed to fredrikaverpil/creosote by fredrikaverpil 2 years ago
I think I found the problem but I’ll have to do some refactoring as I just whipped up something ugly now, and I would also like to add a test. I can look at this at the end of the week. Feel free to try out my POC in #206.
Ah. I ran
-Vwith--verbose, per the instructions, which I didn’t find to make sense.