Skip to content

Commit ceaaa19

Browse files
[MLGO] Adjust mlgo-utils versioning to match Pypi
This patch adjusts the versioning/package name for mlgo-utils to match what is on Pypi. I did this before because we uploaded a package before the 18 branch, but apparently never committed the changes. We will have to special case actual releases in the future, but for now development versions are fine.
1 parent a582dde commit ceaaa19

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

llvm/utils/mlgo-utils/mlgo/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
# See https://llvm.org/LICENSE.txt for license information.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

5+
from datetime import timezone, datetime
6+
57
__versioninfo__ = (19, 0, 0)
6-
__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
8+
__version__ = (
9+
".".join(str(v) for v in __versioninfo__)
10+
+ "dev"
11+
+ datetime.now(tz=timezone.utc).strftime("%Y%m%d%H%M")
12+
)

llvm/utils/mlgo-utils/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "mlgo"
6+
name = "mlgo-utils"
77
description = "Tooling for ML in LLVM"
88
readme = "README.md"
99
requires-python = ">=3.8"

0 commit comments

Comments
 (0)