Skip to content

Commit

Permalink
fix: ValueError when parsing -e . (#99) thanks to @vergenzt
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vergenz <vergenzt@gmail.com>
  • Loading branch information
vergenzt authored Jul 23, 2024
1 parent f4ce36a commit 0e037a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/requirement.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def parse_editable(cls, line: str) -> 'Requirement':
req.path = cast(str, groups['path']) # type: ignore
else:
req.local_file = True
req.path, req.name = line.rsplit('/', 1) # type: ignore
req.path, _, req.name = line.rpartition('/') # type: ignore

return req

Expand Down

0 comments on commit 0e037a4

Please sign in to comment.