Skip to content

Commit e6f572f

Browse files
committed
rename stubtest_requirements to stubtest_dependencies
1 parent a0fbe21 commit e6f572f

File tree

19 files changed

+23
-23
lines changed

19 files changed

+23
-23
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ This has the following keys:
202202
`--ignore_missing_stub` option to the stubtest call. See
203203
[tests/README.md](./tests/README.md) for more information. In most cases,
204204
this field should be identical to `partial_stub`.
205-
* `stubtest_requirements` (default: `[]`): A list of Python packages that need
205+
* `stubtest_dependencies` (default: `[]`): A list of Python packages that need
206206
to be installed for stubtest to run successfully. These packages are installed
207207
in addition to the dependencies in the `dependencies` field.
208208
* `apt_dependencies` (default: `[]`): A list of Ubuntu APT packages

lib/ts_utils/metadata.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class StubtestSettings:
8484
ignore_missing_stub: bool
8585
supported_platforms: list[str] | None # None means all platforms
8686
ci_platforms: list[str]
87-
stubtest_requirements: list[str]
87+
stubtest_dependencies: list[str]
8888
mypy_plugins: list[str]
8989
mypy_plugins_config: dict[str, dict[str, Any]]
9090

@@ -109,7 +109,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
109109
ignore_missing_stub: object = data.get("ignore_missing_stub", False)
110110
supported_platforms: object = data.get("supported_platforms")
111111
ci_platforms: object = data.get("ci_platforms", DEFAULT_STUBTEST_PLATFORMS)
112-
stubtest_requirements: object = data.get("stubtest_requirements", [])
112+
stubtest_dependencies: object = data.get("stubtest_dependencies", [])
113113
mypy_plugins: object = data.get("mypy_plugins", [])
114114
mypy_plugins_config: object = data.get("mypy_plugins_config", {})
115115

@@ -123,7 +123,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
123123
assert _is_list_of_strings(brew_dependencies)
124124
assert _is_list_of_strings(choco_dependencies)
125125
assert _is_list_of_strings(extras)
126-
assert _is_list_of_strings(stubtest_requirements)
126+
assert _is_list_of_strings(stubtest_dependencies)
127127
assert _is_list_of_strings(mypy_plugins)
128128
assert _is_nested_dict(mypy_plugins_config)
129129

@@ -151,7 +151,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
151151
ignore_missing_stub=ignore_missing_stub,
152152
supported_platforms=supported_platforms,
153153
ci_platforms=ci_platforms,
154-
stubtest_requirements=stubtest_requirements,
154+
stubtest_dependencies=stubtest_dependencies,
155155
mypy_plugins=mypy_plugins,
156156
mypy_plugins_config=mypy_plugins_config,
157157
)
@@ -216,7 +216,7 @@ def is_obsolete(self) -> bool:
216216
"ignore_missing_stub",
217217
"supported_platforms",
218218
"ci_platforms",
219-
"stubtest_requirements",
219+
"stubtest_dependencies",
220220
"mypy_plugins",
221221
"mypy_plugins_config",
222222
}

stubs/PyScreeze/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ci_platforms = ["linux", "win32"]
88
# PyScreeze has an odd setup.py file
99
# that doesn't list Pillow as a dependency for py312+ yet:
1010
# https://github.com/asweigart/pyscreeze/blob/eeca245a135cf171c163b3691300138518efa64e/setup.py#L38-L46
11-
stubtest_requirements = ["Pillow"]
11+
stubtest_dependencies = ["Pillow"]

stubs/Pygments/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ dependencies = ["types-docutils"]
44
partial_stub = true
55

66
[tool.stubtest]
7-
stubtest_requirements = ["sphinx"]
7+
stubtest_dependencies = ["sphinx"]
88
ignore_missing_stub = true

stubs/channels/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dependencies = ["django-stubs>=4.2", "asgiref"]
55
[tool.stubtest]
66
mypy_plugins = ['mypy_django_plugin.main']
77
mypy_plugins_config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}}
8-
stubtest_requirements = ["daphne"]
8+
stubtest_dependencies = ["daphne"]

stubs/defusedxml/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ version = "0.7.*"
22
upstream_repository = "https://github.com/tiran/defusedxml"
33

44
[tool.stubtest]
5-
stubtest_requirements = ["lxml"]
5+
stubtest_dependencies = ["lxml"]

stubs/fpdf2/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ dependencies = ["Pillow>=10.3.0"]
44
obsolete_since = "2.8.6" # Released on 2026-02-19
55

66
[tool.stubtest]
7-
stubtest_requirements = ["cryptography"]
7+
stubtest_dependencies = ["cryptography"]

stubs/gevent/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dependencies = ["types-greenlet", "types-psutil>=7.2.0"]
77
# especially in the stdlib module replacement
88
ci_platforms = ["linux", "darwin", "win32"]
99
# for testing the ffi loop implementations on all platforms
10-
stubtest_requirements = ["cffi", "dnspython"]
10+
stubtest_dependencies = ["cffi", "dnspython"]
1111
apt_dependencies = ["libev4", "libev-dev", "libuv1", "libuv1-dev"]
1212
brew_dependencies = ["libev", "libuv"]

stubs/gunicorn/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dependencies = ["types-gevent"]
55
[tool.stubtest]
66
supported_platforms = ["linux", "darwin"]
77
ci_platforms = ["linux", "darwin"]
8-
stubtest_requirements = ["gevent>=1.4.0", "eventlet>=0.24.1,!=0.36.0", "tornado>=0.2", "setproctitle", "PasteDeploy", "inotify"]
8+
stubtest_dependencies = ["gevent>=1.4.0", "eventlet>=0.24.1,!=0.36.0", "tornado>=0.2", "setproctitle", "PasteDeploy", "inotify"]

stubs/icalendar/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ dependencies = ["types-python-dateutil", "types-pytz"]
44
obsolete_since = "7.0.0" # Released on 2026-02-11
55

66
[tool.stubtest]
7-
stubtest_requirements = ["pytz"]
7+
stubtest_dependencies = ["pytz"]

0 commit comments

Comments
 (0)