From 082350317baa11bac977d93931cb8c497d135120 Mon Sep 17 00:00:00 2001 From: drownfish19 Date: Mon, 22 Jul 2024 07:39:15 +0000 Subject: [PATCH] update version --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 022dba1400a6..5f8c019e830d 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ import io import os import subprocess +from datetime import datetime import setuptools @@ -113,7 +114,8 @@ def show(): if os.getenv(PADDLENLP_STABLE_VERSION): __version__ = __version__.replace(".post", "") else: - __version__ = __version__.replace(".post", "+{}".format(commit[:7])) + formatted_date = datetime.now().date().strftime("%Y%m%d") + __version__ = __version__.replace(".post", ".dev{}".format(formatted_date)) extras = {}