Permalink
Browse files

Support editable repo urls with an auth string

  • Loading branch information...
1 parent c1c7921 commit dcb1c2e441b5a6c2f00c8881ee9fa79bdd643940 @dcramer committed May 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/piplint/__init__.py
View
@@ -20,7 +20,6 @@ def check_requirements(requirement_files, strict=False, venv=None):
about the missing dependency.
"""
version_re = re.compile(r'^([^<>=\s#]+)\s*(>=|>|<|<=|==)?\s*([^<>=\s#]+)?(?:\s*#.*)?$')
- checkout_re = re.compile(r'[#@]')
def parse_package_line(line):
try:
@@ -43,7 +42,8 @@ def parse_checkout_line(whole_line):
# Check if there is a revision specified
if '@' in line:
- (url, rev, eggname) = checkout_re.split(line)
+ url, last_bit = line.rsplit('@', 1)
+ rev, eggname = last_bit.split('#', 1)
return (url, '==', rev, line)
else:
(url, eggname) = line.split('#')

0 comments on commit dcb1c2e

Please sign in to comment.