jnrbase
jnrbase.pip_support.
parse_requires
Parse pip-style requirements files.
pip
This is a very naïve parser, but very few packages make use of the more advanced features. Support for other features will be added only when packages in the wild depend on them.
__fname (Path) – Base file to pass
Path
List[str]
List
str
Parsed dependencies
>>> parse_requires(Path('extra/requirements-test.txt')) ['click>=7.0', ..., 'pytest-randomly>=1.2']