Allow editable install without .git with add fallback version in pyproject.toml (#16435)

This commit is contained in:
Liangsheng Yin
2026-01-05 11:17:20 +08:00
committed by GitHub
parent ca80c19b55
commit a7fd810842

View File

@@ -172,6 +172,8 @@ exclude = [
root = ".."
version_file = "sglang/_version.py"
git_describe_command = ["git", "describe", "--tags", "--long", "--match", "v*"]
# Allow editable installs even when .git metadata is not available.
fallback_version = "0.0.0.dev0"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"