[CI/Build] use setuptools-scm to set __version__ (#4738)
Co-authored-by: youkaichao <youkaichao@126.com>
This commit is contained in:
+2
-2
@@ -12,11 +12,11 @@ from vllm.outputs import (CompletionOutput, EmbeddingOutput,
|
||||
from vllm.pooling_params import PoolingParams
|
||||
from vllm.sampling_params import SamplingParams
|
||||
|
||||
from .version import __commit__, __version__
|
||||
from .version import __version__, __version_tuple__
|
||||
|
||||
__all__ = [
|
||||
"__commit__",
|
||||
"__version__",
|
||||
"__version_tuple__",
|
||||
"LLM",
|
||||
"ModelRegistry",
|
||||
"PromptType",
|
||||
|
||||
+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