[CI/Build] use setuptools-scm to set __version__ (#4738)
Co-authored-by: youkaichao <youkaichao@126.com>
This commit is contained in:
+5
-7
@@ -1,13 +1,11 @@
|
||||
import warnings
|
||||
|
||||
try:
|
||||
import vllm.commit_id
|
||||
|
||||
__commit__ = vllm.commit_id.__commit__
|
||||
from ._version import __version__, __version_tuple__
|
||||
except Exception as e:
|
||||
import warnings
|
||||
|
||||
warnings.warn(f"Failed to read commit hash:\n{e}",
|
||||
RuntimeWarning,
|
||||
stacklevel=2)
|
||||
__commit__ = "COMMIT_HASH_PLACEHOLDER"
|
||||
|
||||
__version__ = "0.6.1.post2"
|
||||
__version__ = "dev"
|
||||
__version_tuple__ = (0, 0, __version__)
|
||||
|
||||
Reference in New Issue
Block a user