Skip to content

Commit 0290953

Browse files
ci: Remove setuptools from requirements-testing.txt (#6618)
Remove the package from `requirements-testing.txt` and add it only as a dependency of the test suites that rely on it. This is part of environment cleanup before moving the remaining testing dependencies to a uv dependency group.
1 parent 8a9684b commit 0290953

5 files changed

Lines changed: 727 additions & 758 deletions

File tree

requirements-testing.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pytest>=6.0.0
22
pytest-cov
3-
dataclasses; python_version < "3.7"
4-
setuptools
3+
dataclasses; python_version < "3.7"

scripts/populate_tox/config.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@
165165
"itsdangerous>=0.24,<2.0",
166166
"jinja2<3.1.1",
167167
],
168+
"py3.6,py3.7": [
169+
"setuptools<82"
170+
], # Handled by importlib.metadata on Python 3.8+
168171
},
169172
},
170173
"gql": {
@@ -185,7 +188,8 @@
185188
"package": "graphene",
186189
"deps": {
187190
"*": ["blinker", "fastapi[test]", "flask", "httpx"],
188-
"py3.6": ["aiocontextvars"],
191+
"py3.6": ["aiocontextvars", "setuptools<82"],
192+
"py3.7": ["setuptools<82"], # Handled by importlib.metadata on Python 3.8+
189193
},
190194
},
191195
"grpc": {
@@ -449,7 +453,8 @@
449453
"*": ["websockets<11.0", "aiohttp"],
450454
">=22": ["sanic-testing"],
451455
"py3.6": ["aiocontextvars==0.2.1"],
452-
"py3.8": ["tracerite<1.1.2"],
456+
# tracerite imports pkg_resources before https://github.com/sanic-org/tracerite/commit/2f68543fab726d12d5c5d71fab584eb42140f410
457+
"py3.8": ["tracerite<1.1.2", "setuptools<82"],
453458
},
454459
"num_versions": 4,
455460
},

0 commit comments

Comments
 (0)