Commit Graph

7 Commits

Author SHA1 Message Date
Kemal Zebari 99cdda2335
Drop support for python 3.8 (#444)
Drops support for python 3.8 since it is EOL. The code refactoring is
due to ruff's formatting rules for 3.9.
2025-01-26 13:40:51 -08: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 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