Browse Source

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
changes/49/639649/1
Elod Illes 2 months ago
parent
commit
f51be0504b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      roles/tox/library/tox_install_sibling_packages.py

+ 4
- 0
roles/tox/library/tox_install_sibling_packages.py View File

@@ -106,6 +106,10 @@ def get_installed_packages(tox_python):
106 106
     frozen_pkgs = subprocess.check_output(
107 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 113
     return [x[x.find('(') + 1:].split('==')[0]
110 114
             for x in frozen_pkgs.split('\n') if '==' in x]
111 115
 

Loading…
Cancel
Save