Skip to content

Commit

Permalink
Update setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Jul 26, 2024
1 parent c87f321 commit dff809c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ psutil>=4.1.0,<5.0.0
tabulate==0.7.5
coverage==7.2.7
wheel==0.43.0
setuptools==67.8.0;python_version>="3.12"
setuptools==71.1.0;python_version>="3.12"
packaging==23.2;python_versions>="3.12" # Requirement for setuptools>=71

# Pytest specific deps
pytest==8.1.1
Expand Down
8 changes: 7 additions & 1 deletion scripts/ci/install-dev-deps
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ def run(command):
if __name__ == "__main__":
with cd(REPO_ROOT):
if sys.version_info[:2] >= (3, 12):
run("pip install setuptools==67.8.0")
# Python 3.12+ no longer includes setuptools by default.

# Setuptools 71+ now perfers already installed versions
# of packaging _and_ broke the API for packaging<22.0.
# We'll pin to match what's in requirements-dev.txt.
run("pip install setuptools==71.1.0 packaging==23.2")

run("pip install -r requirements-dev-lock.txt")

0 comments on commit dff809c

Please sign in to comment.