Skip to content

Commit 6b92784

Browse files
authored
Merge pull request #232 from jtpio/python-version
2 parents e8c0840 + 96cbbfc commit 6b92784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_releaser/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def get_repo():
133133
def get_version():
134134
"""Get the current package version"""
135135
if SETUP_PY.exists():
136-
return run("python setup.py --version")
136+
return run("python setup.py --version").split("\n")[-1]
137137
elif PACKAGE_JSON.exists():
138138
return json.loads(PACKAGE_JSON.read_text(encoding="utf-8")).get("version", "")
139139
else: # pragma: no cover

0 commit comments

Comments
 (0)