madpah/requirements-parser

parse_editable not matching requirement file pointing to local project.

Closed this issue · 1 comments

When parsing a requirement.txt with a line like the following
-e ../project/sources
we end up with a raised exception from parse_editable line 157:
AssertionError: This should match everything

I believe the regular expresssion from

LOCAL_REGEX = re.compile(r'^((?P<scheme>file)://)?(?P<path>[^#]+)#(?P<fragment>\S+)?')

should be corrected to
LOCAL_REGEX = re.compile(r'^((?P<scheme>file)://)?(?P<path>[^#]+)(#?P<fragment>\S+)?')

Ouch this is already mentioned in #84
closing