Skip to content

Commit

Permalink
fix: pin pip for pip-tools<7 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
majorgreys authored Jul 21, 2023
1 parent 7150978 commit a666580
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions releasenotes/notes/fix-pin-pip-a9a7467675abb679.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
pin ``pip<23.2`` to avoid breaking change impacting pip-tools for Python 3.7
6 changes: 6 additions & 0 deletions riot/riot.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@ def requirements(self) -> str:
subprocess.check_output(
[self.py.path(), "-m", "pip", "install", "pip-tools"],
)
# pip==23.2 included a breaking change for pip-tools but not available
# pip-tools==7.0 fixes this but also dropped support for 3.7
if self.py.version_info()[:2] == (3, 7):
subprocess.check_output(
[self.py.path(), "-m", "pip", "install", "-U", "pip<23.2"],
)
cmd = [
self.py.path(),
"-m",
Expand Down

0 comments on commit a666580

Please sign in to comment.