Merge "Fix Editable Git install package name parsing"

This commit is contained in:
Zuul 2019-02-26 02:49:32 +00:00 committed by Gerrit Code Review
commit 2428945c21
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ def get_installed_packages(tox_python):
frozen_pkgs = subprocess.check_output(
[tox_python, '-m', 'pip', '-qqq', 'freeze']
)
return [x.split('==')[0] for x in frozen_pkgs.split('\n') if '==' in x]
return [x[x.find('(') + 1:].split('==')[0]
for x in frozen_pkgs.split('\n') if '==' in x]
def write_new_constraints_file(constraints, packages):