[CI] Support partial torch requirement contexts (#51832)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>

Taneem Ibrahim committed Aug 11, 2026 at 18:25 UTC ca9c8cbd1bfb6a3fdcd3abf64b7204d967f539f0
1 file changed +1 -1
use_existing_torch.py
+1 -1
@@ -32,7 +32,7 @@ def main(argv):
32 for file in (
33 *glob.glob("requirements/**/*.txt", recursive=True),
34 *glob.glob("requirements/**/*.in", recursive=True),
35 - "pyproject.toml",
35 + *glob.glob("pyproject.toml"),
36 ):
37 with open(file) as f:
38 lines = f.readlines()