[CI/Build] use setuptools-scm to set __version__ (#4738)

Co-authored-by: youkaichao <youkaichao@126.com>
This commit is contained in:
Daniele
2024-09-23 18:44:26 +02:00
committed by GitHub
parent f2bd246c17
commit ee5f34b1c2
16 changed files with 93 additions and 94 deletions

View File

@@ -2,6 +2,7 @@ import vllm
def test_embedded_commit_defined():
assert vllm.__commit__ != "COMMIT_HASH_PLACEHOLDER"
# 7 characters is the length of a short commit hash
assert len(vllm.__commit__) >= 7
assert hasattr(vllm, "__version__")
assert hasattr(vllm, "__version_tuple__")
assert vllm.__version__ != "dev"
assert vllm.__version_tuple__ != (0, 0, "dev")