Skip to content

Commit 93cc6aa

Browse files
committed
fix: version in setup.py
1 parent cd9b894 commit 93cc6aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import subprocess
77

88

9-
version=subprocess.check_output("git tag -l | cat | rev", shell=True).decode("utf-8").split("\n")[0]
9+
version=list(filter(None, subprocess.check_output("git tag -l | cat", shell=True).decode("utf-8").split("\n")))[-1]
10+
print(version)
11+
exit(0)
1012

1113
if sys.argv[-1] == 'publish':
1214
if os.system("pip freeze | grep twine"):

0 commit comments

Comments
 (0)