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
2467b642
Unverified
Commit
2467b642
authored
Sep 24, 2024
by
Daniele
Committed by
GitHub
Sep 24, 2024
Browse files
[CI/Build] fix setuptools-scm usage (#8771)
parent
72fc97a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
.gitignore
.gitignore
+2
-5
pyproject.toml
pyproject.toml
+0
-3
setup.py
setup.py
+5
-2
No files found.
.gitignore
View file @
2467b642
# v
llm commit id,
generated by setup
.py
vllm/
commit_id
.py
# v
ersion file
generated by setup
tools-scm
/
vllm/
_version
.py
# vllm-flash-attn built from source
vllm/vllm_flash_attn/
...
...
@@ -196,8 +196,5 @@ _build/
*_hip*
hip_compat.h
# version file generated by setuptools-scm
/vllm/_version.py
# Benchmark dataset
benchmarks/*.json
pyproject.toml
View file @
2467b642
...
...
@@ -51,9 +51,6 @@ ignore = [
"UP032"
,
]
[tool.setuptools_scm]
version_file
=
"vllm/_version.py"
[tool.mypy]
python_version
=
"3.8"
...
...
setup.py
View file @
2467b642
...
...
@@ -354,12 +354,15 @@ def get_path(*filepath) -> str:
def
get_vllm_version
()
->
str
:
version
=
get_version
()
version
=
get_version
(
write_to
=
"vllm/_version.py"
,
# TODO: move this to pyproject.toml
)
sep
=
"+"
if
"+"
not
in
version
else
"."
# dev versions might contain +
if
_no_device
():
if
envs
.
VLLM_TARGET_DEVICE
==
"empty"
:
version
+=
"+
empty"
version
+=
f
"
{
sep
}
empty"
elif
_is_cuda
():
cuda_version
=
str
(
get_nvcc_cuda_version
())
if
cuda_version
!=
MAIN_CUDA_VERSION
:
...
...
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