Skip to content

Commit

Permalink
Merge pull request #153 from Neradoc/filter-all-pip-versions
Browse files Browse the repository at this point in the history
fix filtering all pip version strings in requirements.txt
  • Loading branch information
dhalbert authored Sep 16, 2022
2 parents b7a28e6 + 7465718 commit 1910d6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions circup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1910d6b

Please sign in to comment.