[llvm] ceaaa19 - [MLGO] Adjust mlgo-utils versioning to match Pypi
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 14:16:32 PDT 2024
Author: Aiden Grossman
Date: 2024-07-08T21:16:25Z
New Revision: ceaaa19238ac9ca3e42503eca4d4d2215b27bbc1
URL: https://github.com/llvm/llvm-project/commit/ceaaa19238ac9ca3e42503eca4d4d2215b27bbc1
DIFF: https://github.com/llvm/llvm-project/commit/ceaaa19238ac9ca3e42503eca4d4d2215b27bbc1.diff
LOG: [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.
Added:
Modified:
llvm/utils/mlgo-utils/mlgo/__init__.py
llvm/utils/mlgo-utils/pyproject.toml
Removed:
################################################################################
diff --git a/llvm/utils/mlgo-utils/mlgo/__init__.py b/llvm/utils/mlgo-utils/mlgo/__init__.py
index a7be7aa06290e..c5b208cfba360 100644
--- a/llvm/utils/mlgo-utils/mlgo/__init__.py
+++ b/llvm/utils/mlgo-utils/mlgo/__init__.py
@@ -2,5 +2,11 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+from datetime import timezone, datetime
+
__versioninfo__ = (19, 0, 0)
-__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
+__version__ = (
+ ".".join(str(v) for v in __versioninfo__)
+ + "dev"
+ + datetime.now(tz=timezone.utc).strftime("%Y%m%d%H%M")
+)
diff --git a/llvm/utils/mlgo-utils/pyproject.toml b/llvm/utils/mlgo-utils/pyproject.toml
index c3b4c78b6cd0b..c4139e52b4246 100644
--- a/llvm/utils/mlgo-utils/pyproject.toml
+++ b/llvm/utils/mlgo-utils/pyproject.toml
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
-name = "mlgo"
+name = "mlgo-utils"
description = "Tooling for ML in LLVM"
readme = "README.md"
requires-python = ">=3.8"
More information about the llvm-commits
mailing list