summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-26 02:49:32 +0000
committerGerrit Code Review <review@openstack.org>2019-02-26 02:49:32 +0000
commit2428945c21a00dd458ba542cf6e0d70ce83f9912 (patch)
tree0ba6740e6ec34cdd75d82b356cb125117150072e
parent8998838d7a86f1f10634c436479ef350a2a56bfc (diff)
parent44b4702eb3ef83950c5b6fe14bf13024c47b89fa (diff)
Merge "Fix Editable Git install package name parsing"
-rw-r--r--roles/tox/library/tox_install_sibling_packages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/tox/library/tox_install_sibling_packages.py b/roles/tox/library/tox_install_sibling_packages.py
index 4dd23b0..7d894f8 100644
--- a/roles/tox/library/tox_install_sibling_packages.py
+++ b/roles/tox/library/tox_install_sibling_packages.py
@@ -106,7 +106,8 @@ def get_installed_packages(tox_python):
106 frozen_pkgs = subprocess.check_output( 106 frozen_pkgs = subprocess.check_output(
107 [tox_python, '-m', 'pip', '-qqq', 'freeze'] 107 [tox_python, '-m', 'pip', '-qqq', 'freeze']
108 ) 108 )
109 return [x.split('==')[0] for x in frozen_pkgs.split('\n') if '==' in x] 109 return [x[x.find('(') + 1:].split('==')[0]
110 for x in frozen_pkgs.split('\n') if '==' in x]
110 111
111 112
112def write_new_constraints_file(constraints, packages): 113def write_new_constraints_file(constraints, packages):