mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 05:15:37 +08:00
simplify requires_files list creation (#29656)
Signed-off-by: Chukwuma Nwaugha <nwaughac@gmail.com>
This commit is contained in:
parent
92c35abb24
commit
17a9abec2b
@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
requires_files = glob.glob("requirements/*.txt")
|
for file in (*glob.glob("requirements/*.txt"), "pyproject.toml"):
|
||||||
requires_files += ["pyproject.toml"]
|
|
||||||
for file in requires_files:
|
|
||||||
print(f">>> cleaning {file}")
|
print(f">>> cleaning {file}")
|
||||||
with open(file) as f:
|
with open(file) as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
@ -17,5 +15,4 @@ for file in requires_files:
|
|||||||
f.write(line)
|
f.write(line)
|
||||||
else:
|
else:
|
||||||
print(line.strip())
|
print(line.strip())
|
||||||
print(f"<<< done cleaning {file}")
|
print(f"<<< done cleaning {file}\n")
|
||||||
print()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user