Skip to content

Commit

Permalink
handle alpha releases (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers authored Feb 24, 2020
1 parent 26e0730 commit d8a3b23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion obsplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@

version_dict = get_versions()
__version__ = version_dict["version"]
__last_version__ = __version__.split("+")[0].replace("v", "")
__last_version__ = __version__.split("+")[0].split("-")[0].replace("v", "")

assert len(__last_version__.split(".")) == 3, "wrong version found!"


Expand Down

0 comments on commit d8a3b23

Please sign in to comment.