Skip to content

Commit

Permalink
setup.py: use get_version(write_to=...)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <[email protected]>
  • Loading branch information
dtrifiro committed Feb 19, 2025
1 parent a8650d6 commit 3d34260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Slack="http://slack.vllm.ai/"
vllm = "vllm.entrypoints.cli.main:main"

[tool.setuptools_scm]
version_file = "vllm/_version.py"
# version_file = "vllm/_version.py" # handled by setup.py:get_vllm_version()

[tool.setuptools.packages.find]
where = ["."]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def get_gaudi_sw_version():


def get_vllm_version() -> str:
version = get_version()
version = get_version(write_to="vllm/_version.py")
if "sdist" in sys.argv:
# skip local version specifiers for source distribution builds
return version
Expand Down

0 comments on commit 3d34260

Please sign in to comment.