pre-commit-ci[bot]
5cc7ba2f4a
[pre-commit.ci] pre-commit autoupdate ( #365 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-13 10:17:44 -07:00
Cunshun Xia
25cbb6fff8
refactor the non_host part for not injecting to custom env ( #346 )
...
fix: https://github.com/tox-dev/pipdeptree/issues/343
We can get the sitepackages directory from the given interpreter
directly instead of running our code again with it.
2024-04-09 19:43:50 -07:00
Kemal Zebari
7a6e0ff91a
Handle invalid requirement strings when using importlib.metadata ( #345 )
...
Resolves #344 .
This change also:
- Makes `Distribution.requires()` into a generator for performance (i.e.
avoid building `list[Requirement]` and then iterating `list[Requirement`
and instead do both at the same time) and so that we can handle invalid
requirement exceptions in `PackageDAG.from_pkgs()` for each individual
requirement string
- Modified conftest to avoid adding a extra comma at the end and removed
some older code
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-06 07:09:53 -07:00
Cunshun Xia
91d21e307f
replace pkg_resources with importlib.metadata and packaging ( #333 )
...
Signed-off-by: cunshunxia <cunshunxia@tencent.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
Co-authored-by: Kemal Zebari <kemalzebra@gmail.com>
2024-04-02 13:56:00 -07:00
Kemal Zebari
2d527a759c
Mock importlib.metadata usage in PackageDAG.from_pkgs() tests ( #327 )
2024-03-04 10:28:55 -08:00
Dmitrii Sutiagin
4ebaca8789
Fix key mismatch between requirements and dists ( #325 )
2024-03-01 19:17:26 -08:00
Kemal Zebari
bc804e31b3
Have --license work with --reverse ( #321 )
2024-02-23 18:25:58 -08:00
Kemal Zebari
134ca6e0b9
Implement --license option ( #318 )
2024-02-15 11:06:44 -08:00
Kemal Zebari
8b336b14b9
Use "Any" value if necessary for required version in JSON render ( #310 )
2024-01-10 14:41:33 -08:00
Kemal Zebari
6c9136bacb
Exit with error when `-p` given patterns that fail to match ( #279 )
2023-08-14 16:39:25 -07:00
Bernát Gábor
fd9ed24979
General code improvements
...
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
2023-07-17 08:39:48 -07:00