Skip to content

Commit 5a508e5

Browse files
authored
Fix version show (#8754)
1 parent be957f0 commit 5a508e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def show():
112112
__version__ = "3.0.0b0.post"
113113
if os.getenv(PADDLENLP_STABLE_VERSION):
114114
__version__ = __version__.replace(".post", "")
115+
else:
116+
__version__ = __version__.replace(".post", "+{}".format(commit[:7]))
115117

116118

117119
extras = {}

0 commit comments

Comments
 (0)