madpah / requirements-parser

A Pip requirements file parser.
https://requirements-parser.readthedocs.io
Apache License 2.0
125 stars 41 forks source link

Add setuptools as a runtime dep for pkg_resources #80

Closed FasterSpeeding closed 1 month ago

FasterSpeeding commented 1 year ago

Add setuptools as a runtime dependency.

pkg_resources is being imported at runtime in requirement.py and this causes the library to fail to import in an environment without setuptools.

https://github.com/madpah/requirements-parser/issues/37 / https://github.com/madpah/requirements-parser/pull/38 seem related and seem to have had their fix lost to time

nanonyme commented 10 months ago

Afaik usage of pkg_resources is deprecated. Its usage should be replaced through importlib.metadata or packaging.