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 50c7480 commit 1e20525
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
wheel==0.43.0
coverage==7.2.7
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
7 changes: 6 additions & 1 deletion scripts/ci/install-dev-deps
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ def run(command):
if __name__ == "__main__":
with cd(REPO_ROOT):
if sys.version_info[:2] >= (3, 12):
run("pip install setuptools")
# 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 1e20525

Please sign in to comment.