Skip to content

Commit

Permalink
Do not include .dev with pypi for release tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
robtoth authored Oct 18, 2021
1 parent dc133c2 commit 480547b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def compute_version():
ref = os.environ.get('GITHUB_REF')
if ref:
ref = ref.strip()
branch_name = ref.split("/")[-1]
if branch_name != "master":
if not ref.startswith('refs/tags/'):
version = f"{version}.dev{run_number}"
return version

Expand Down

0 comments on commit 480547b

Please sign in to comment.