Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit f36e3a9

Browse files
committed
Pins setuptools to <82 to avoid issue with pkg_resources
1 parent 12cbec3 commit f36e3a9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def install_unittest_dependencies(session, *constraints):
179179
def unit(session, protobuf_implementation):
180180
# Install all test dependencies, then install this package in-place.
181181

182+
# Pin setuptools to a version before the removal of pkg_resources
183+
session.install("setuptools<82")
184+
182185
if protobuf_implementation == "cpp" and session.python in (
183186
"3.11",
184187
"3.12",
@@ -198,6 +201,8 @@ def unit(session, protobuf_implementation):
198201
if protobuf_implementation == "cpp":
199202
session.install("protobuf<4")
200203

204+
session.run("python", "-m", "pip", "freeze")
205+
201206
# Run py.test against the unit tests.
202207
session.run(
203208
"py.test",

testing/constraints-3.9.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ google-cloud-documentai==2.29.2
1515
google-cloud-storage==2.7.0
1616
pandas-gbq==0.21.0
1717
numpy==1.23.5
18-
pikepdf==8.2.3
18+
pikepdf==8.2.3
19+
setuptools<82.0.0

0 commit comments

Comments
 (0)