Skip to content

Commit

Permalink
Fixed issue with the version update checker and .dev versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarant committed Nov 6, 2017
1 parent ddada70 commit cc5b497
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file added dist/Soar-1.3.7.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = '1.3.6'
version = '1.3.7'
# The full version, including alpha/beta/rc tags.
release = '1.3.6'
release = '1.3.7'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions soar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# soar/__init__.py
""" Soar (Snakes on a Robot) v1.3.6
""" Soar (Snakes on a Robot) v1.3.7
An extensible Python framework for both simulating and interacting with robots.
Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3.
"""
__version__ = '1.3.6'
__version__ = '1.3.7'
blerb = 'Soar (Snakes on a Robot) v' + __version__ + ': A Python robotics framework.\n' \
'https://github.com/arantonitis/soar\n\n' \
'Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3.'
Expand Down
3 changes: 3 additions & 0 deletions soar/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def version_parse(x): # Parse version increment strings into integers
if pypi_inc > current_inc: # If any PyPI version increment is greater, we need to update
need_update = True
break
elif pypi_inc < current_inc: # If any current version increment is greater, we do not need to update
need_update = False
break
if need_update:
if pypi_version[3] != inf:
pypi_version[3] = 'dev' + str(pypi_version[3])
Expand Down

0 comments on commit cc5b497

Please sign in to comment.