Commit 69341fde authored by zhuwenwen's avatar zhuwenwen
Browse files

update version

parent 500b93c8
...@@ -394,10 +394,24 @@ def get_version_add(sha: Optional[str] = None) -> str: ...@@ -394,10 +394,24 @@ def get_version_add(sha: Optional[str] = None) -> str:
# torch version # torch version
version += ".torch" + torch.__version__[:5] version += ".torch" + torch.__version__[:5]
new_version_content = f"""\
import warnings
try:
import vllm.commit_id
__commit__ = vllm.commit_id.__commit__
except Exception as e:
warnings.warn(f"Failed to read commit hash:\\n{e}",
RuntimeWarning,
stacklevel=2)
__commit__ = "COMMIT_HASH_PLACEHOLDER"
__version__ = "0.5.3.post1"
__dcu_version__ = '0.5.3.post1+{version}'
""".format(version=version)
with open(add_version_path, encoding="utf-8",mode="w") as file: with open(add_version_path, encoding="utf-8",mode="w") as file:
file.write("__commit__='705f6a35aa92800b9c69c8b346168c3055fdebbd'\n") file.write(new_version_content)
file.write("__version__='0.5.2'\n")
file.write("__dcu_version__='0.5.2+{}'\n".format(version))
file.close() file.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment