Skip to content

Commit

Permalink
fix: pin pip for pip-tools<7
Browse files Browse the repository at this point in the history
  • Loading branch information
majorgreys committed Jul 21, 2023
1 parent 7150978 commit f1db364
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions riot/riot.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ def requirements(self) -> str:
_dir = os.path.join(DEFAULT_RIOT_PATH, "requirements")
os.makedirs(_dir, exist_ok=True)
in_path = os.path.join(_dir, "{}.in".format(self.short_hash))
# 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", "pip<23.2"],
)
subprocess.check_output(
[self.py.path(), "-m", "pip", "install", "pip-tools"],
)
Expand Down

0 comments on commit f1db364

Please sign in to comment.