Skip to content

Commit

Permalink
fixup version from tag for supporting beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Apr 15, 2016
1 parent dab8f22 commit 377fb9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
version = None
else:
version_parts = version_output.decode().strip().lstrip('v').split('-')
if len(version_parts) == 1:
version = version_parts[0]
if len(version_parts) <= 2:
version = '-'.join(version_parts)
elif len(version_parts) > 1:
version = '-'.join(version_parts[:-1])

Expand Down

0 comments on commit 377fb9c

Please sign in to comment.