Skip to content

Commit

Permalink
Update requirementslib
Browse files Browse the repository at this point in the history
- Fix ref parsing
- Fixes #3214

Signed-off-by: Dan Ryan <[email protected]>
  • Loading branch information
techalchemy committed Nov 13, 2018
1 parent 7bc754a commit d73879b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipenv/vendor/requirementslib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding=utf-8 -*-
__version__ = '1.2.6'
__version__ = '1.2.7'

import logging
import warnings
Expand Down
4 changes: 2 additions & 2 deletions pipenv/vendor/requirementslib/models/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ def from_line(cls, line, editable=None, extras=None):
name = link.egg_fragment
subdirectory = link.subdirectory_fragment
ref = None
if "@" in link.show_url and "@" in uri:
uri, ref = uri.rsplit("@", 1)
if "@" in link.path and "@" in uri:
uri, _, ref = uri.rpartition("@")
if relpath and "@" in relpath:
relpath, ref = relpath.rsplit("@", 1)
return cls(
Expand Down

0 comments on commit d73879b

Please sign in to comment.