Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
17a9abec
Unverified
Commit
17a9abec
authored
Dec 06, 2025
by
Chukwuma Nwaugha
Committed by
GitHub
Dec 06, 2025
Browse files
simplify requires_files list creation (#29656)
Signed-off-by:
Chukwuma Nwaugha
<
nwaughac@gmail.com
>
parent
92c35abb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
use_existing_torch.py
use_existing_torch.py
+2
-5
No files found.
use_existing_torch.py
View file @
17a9abec
...
...
@@ -3,9 +3,7 @@
import
glob
requires_files
=
glob
.
glob
(
"requirements/*.txt"
)
requires_files
+=
[
"pyproject.toml"
]
for
file
in
requires_files
:
for
file
in
(
*
glob
.
glob
(
"requirements/*.txt"
),
"pyproject.toml"
):
print
(
f
">>> cleaning
{
file
}
"
)
with
open
(
file
)
as
f
:
lines
=
f
.
readlines
()
...
...
@@ -17,5 +15,4 @@ for file in requires_files:
f
.
write
(
line
)
else
:
print
(
line
.
strip
())
print
(
f
"<<< done cleaning
{
file
}
"
)
print
()
print
(
f
"<<< done cleaning
{
file
}
\n
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment