File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
- # vllm commit id, generated by setup.py
2
- vllm /commit_id .py
1
+ # version file generated by setuptools-scm
2
+ / vllm /_version .py
3
3
4
4
# vllm-flash-attn built from source
5
5
vllm /vllm_flash_attn /
@@ -196,9 +196,6 @@ _build/
196
196
* _hip *
197
197
hip_compat.h
198
198
199
- # version file generated by setuptools-scm
200
- /vllm /_version.py
201
-
202
199
# Benchmark dataset
203
200
benchmarks /* .json
204
201
Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ ignore = [
51
51
" UP032" ,
52
52
]
53
53
54
- [tool .setuptools_scm ]
55
- version_file = " vllm/_version.py"
56
-
57
54
[tool .mypy ]
58
55
python_version = " 3.8"
59
56
Original file line number Diff line number Diff line change @@ -354,12 +354,15 @@ def get_path(*filepath) -> str:
354
354
355
355
356
356
def get_vllm_version () -> str :
357
- version = get_version ()
357
+ version = get_version (
358
+ write_to = "vllm/_version.py" , # TODO: move this to pyproject.toml
359
+ )
360
+
358
361
sep = "+" if "+" not in version else "." # dev versions might contain +
359
362
360
363
if _no_device ():
361
364
if envs .VLLM_TARGET_DEVICE == "empty" :
362
- version += "+ empty"
365
+ version += f" { sep } empty"
363
366
elif _is_cuda ():
364
367
cuda_version = str (get_nvcc_cuda_version ())
365
368
if cuda_version != MAIN_CUDA_VERSION :
You can’t perform that action at this time.
0 commit comments