fix filtering all pip version strings in requirements.txt
This commit is contained in:
parent
b7a28e6d3c
commit
7465718020
1 changed files with 2 additions and 3 deletions
|
|
@ -1058,9 +1058,8 @@ def libraries_from_requirements(requirements):
|
|||
# skip comments
|
||||
pass
|
||||
else:
|
||||
if any(operators in line for operators in [">", "<", "="]):
|
||||
# Remove everything after any pip style version specifiers
|
||||
line = re.split("[<|>|=|]", line)[0]
|
||||
# Remove everything after any pip style version specifiers
|
||||
line = re.split("[<>=~[;]", line)[0].strip()
|
||||
libraries = libraries + (line,)
|
||||
return libraries
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue