Skip to content

Commit 1685b78

Browse files
committed
fix: version setup
1 parent 93cc6aa commit 1685b78

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import subprocess
77

88

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)
9+
tags = subprocess.check_output("git tag -l | cat", shell=True).decode("utf-8")
10+
version = list(filter(None, tags.split("\n")))[-1]
1211

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

0 commit comments

Comments
 (0)