Skip to content

Commit

Permalink
Fix the release script to work with versions like 0.7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Dec 15, 2013
1 parent bd7add7 commit d007af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion release/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ def get_sympy_short_version():
(like 0.7.3)
"""
version = get_sympy_version()
return '.'.join(version.split('.')[:3]) # Remove any rc tags
parts = version.split('.')
non_rc_parts = [i for i in parts if i.isdigit()]
return '.'.join(non_rc_parts) # Remove any rc tags

@task
def test_sympy():
Expand Down

0 comments on commit d007af8

Please sign in to comment.