madpah / requirements-parser

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

Failing requirements with local path #54

Open Syntactical01 opened 3 years ago

Syntactical01 commented 3 years ago

The following fails to parse:

Werkzeug==1.0.1
wrapt==1.12.1
xmltodict==0.12.0
zipp==3.4.0
./pip_packages/dystillamodb

I can hack around the bug by doing this:

Werkzeug==1.0.1
wrapt==1.12.1
xmltodict==0.12.0
zipp==3.4.0
./pip_packages/dystillamodb  # #egg=
Syntactical01 commented 3 years ago

I assume this is because you assume that #egg= must be inside the local path for it to actually be a local path: https://github.com/davidfischer/requirements-parser/blob/master/requirements/requirement.py#L200