summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElod Illes <elod.illes@ericsson.com>2019-02-27 13:21:58 +0100
committerElod Illes <elod.illes@ericsson.com>2019-02-27 13:21:58 +0100
commitf51be0504b8929457b27f92e3d9a5a0381937dfd (patch)
tree3c05648c190ad01beb3ce8100b1d0827fe20149b
parent2428945c21a00dd458ba542cf6e0d70ce83f9912 (diff)
Explanatory comment for Editable Git install
This patch is a follow up for patch: I3573c067f63a09f22377612f53c80c80252965e4 Comment explains the string matching lines for the pip freeze output. Change-Id: Ifc5b2ae002859c1ca7405c8e1f64380b311e983d
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Code-Review+2: Andreas Jaeger <jaegerandi@gmail.com> Workflow+1: Andreas Jaeger <jaegerandi@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 28 Feb 2019 07:09:08 +0000 Reviewed-on: https://review.openstack.org/639649 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/tox/library/tox_install_sibling_packages.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/tox/library/tox_install_sibling_packages.py b/roles/tox/library/tox_install_sibling_packages.py
index 7d894f8..c808114 100644
--- a/roles/tox/library/tox_install_sibling_packages.py
+++ b/roles/tox/library/tox_install_sibling_packages.py
@@ -106,6 +106,10 @@ 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 # Matches strings of the form:
110 # 1. '<package_name>==<version>'
111 # 2. '# Editable Git install with no remote (<package_name>==<version>)'
112 # both results: <package_name>
109 return [x[x.find('(') + 1:].split('==')[0] 113 return [x[x.find('(') + 1:].split('==')[0]
110 for x in frozen_pkgs.split('\n') if '==' in x] 114 for x in frozen_pkgs.split('\n') if '==' in x]
111 115