madpah / requirements-parser

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

Use pkg_resources #4

Closed treyhunner closed 11 years ago

treyhunner commented 11 years ago

I'm not sure what pkg_resources is bundled with (Python core, setuptools, or something else), but it seems to be what other version parsing packages use.

Example: https://github.com/zopefoundation/z3c.checkversions/blob/master/src/z3c/checkversions/base.py#L15

davidfischer commented 11 years ago

I think this is the right approach although the requirement file format is a superset of what pkg_resources supports. Pkg_resources doesn't support things like editable versions or file paths which pip supports.

Pkg_resources is in setuptools/distribute and I'm ok making that a dependency for reqfile-parser.