Skip to content

Commit 9c02b35

Browse files
ci: Remove asttokens from requirements-testing.txt (#6615)
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 999113b commit 9c02b35

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

requirements-testing.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ pytest>=6.0.0
22
pytest-cov
33
dataclasses; python_version < "3.7"
44
executing
5-
asttokens
65
setuptools

scripts/populate_tox/config.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@
111111
"Werkzeug",
112112
"channels[daphne]",
113113
],
114-
">=2.2,<3.1": ["six"],
115114
">=3.0": ["pytest-asyncio"],
116115
"<3.3": [
117116
"djangorestframework>=3.0,<4.0",
118117
"Werkzeug<2.1.0",
119118
],
120-
"<3.1": ["pytest-django<4.0"],
119+
# Import six when pytest-django<4.0 as six was moved out of install_requires in
120+
# https://github.com/pytest-dev/pytest-django/commit/f2ea236a70873fe763a5b6d50678743e2238b297
121+
"<3.1": ["pytest-django<4.0", "six"],
121122
"py3.14,py3.14t": ["coverage==7.11.0"],
122123
},
123124
},
@@ -341,6 +342,9 @@
341342
},
342343
"pure_eval": {
343344
"package": "pure_eval",
345+
"deps": {
346+
"*": ["asttokens"],
347+
},
344348
"num_versions": 2,
345349
},
346350
"pydantic_ai": {

scripts/populate_tox/package_dependencies.jsonl

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)