Closed treyhunner closed 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.
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