mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-13 20:00:52 +08:00
Rename requires to dependencies in METADATA files (#15594)
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ def setup_testcase_dir(package: DistributionTests, tempdir: Path, verbosity: Ver
|
||||
return
|
||||
|
||||
# HACK: we want to run these test cases in an isolated environment --
|
||||
# we want mypy to see all stub packages listed in the "requires" field of METADATA.toml
|
||||
# we want mypy to see all stub packages listed in the "dependencies" field of METADATA.toml
|
||||
# (and all stub packages required by those stub packages, etc. etc.),
|
||||
# but none of the other stubs in typeshed.
|
||||
#
|
||||
|
||||
@@ -83,7 +83,7 @@ def run_stubtest(dist: Path, *, verbose: bool = False, ci_platforms_only: bool =
|
||||
dists_to_install = [dist_req, get_mypy_req()]
|
||||
# Internal requirements are added to MYPYPATH
|
||||
dists_to_install.extend(str(r) for r in requirements.external_pkgs)
|
||||
dists_to_install.extend(stubtest_settings.stubtest_requirements)
|
||||
dists_to_install.extend(stubtest_settings.stubtest_dependencies)
|
||||
|
||||
# Since the "gdb" Python package is available only inside GDB, it is not
|
||||
# possible to install it through pip, so stub tests cannot install it.
|
||||
|
||||
Reference in New Issue
Block a user