Skip to content

Commit

Permalink
allow release candidate versions in version string normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Mar 20, 2015
1 parent 22c1b81 commit 7cb16d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions obspy/core/util/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def _normalize_version(version):
# we have a clean release version:
if re.match(r'^[0-9]+?\.[0-9]+?\.[0-9]+?$', version):
return version
# we have a release candidate version:
elif re.match(r'^[0-9]+?\.[0-9]+?\.[0-9]+?rc[0-9]+?$', version):
return version
# we have an old-style version (i.e. a git describe string), prepare it for
# the rest of clean up, i.e. put the '.dev+' as separator for the local
# version number part
Expand Down

0 comments on commit 7cb16d4

Please sign in to comment.