This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new e3efec216f [Python] Update version.py to bump pyproject.toml
automatically (#18248)
e3efec216f is described below
commit e3efec216f2d46033b69a51103cee174876cde18
Author: Ruihang Lai <[email protected]>
AuthorDate: Fri Aug 29 07:57:46 2025 -0400
[Python] Update version.py to bump pyproject.toml automatically (#18248)
This PR updates the `version.py`, so every time when running this
file, it also bumps the version number in `pyproject.toml`
automatically.
---
version.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/version.py b/version.py
index cf37e645c4..4bd37c500c 100644
--- a/version.py
+++ b/version.py
@@ -21,6 +21,7 @@ This script runs and update all the locations that related to
versions
List of affected files:
- tvm-root/python/tvm/libinfo.py
+- tvm-root/pyproject.toml
- tvm-root/include/tvm/runtime/base.h
- tvm-root/conda/recipe/meta.yaml
- tvm-root/web/package.json
@@ -175,6 +176,13 @@ def sync_version(pub_ver, local_ver, dry_run):
local_ver,
dry_run,
)
+ # pyproject.toml
+ update(
+ os.path.join(PROJ_ROOT, "pyproject.toml"),
+ r"(?<=version = \")[.0-9a-z\+]+",
+ pub_ver,
+ dry_run,
+ )
# Use public version for other parts for now
# Note that full git hash is already available in libtvm
# C++ header