Skip to content

Commit

Permalink
[Fixes navdeep-G#30] Add a VERSION tuple for comparison
Browse files Browse the repository at this point in the history
Generate the __version__ string from the version tuple.

Having a tuple like this makes it easy for other packages to compare versions, e.g.:

if VERSION > (3,):

if VERSION < (1, 8):
  • Loading branch information
funkybob committed Nov 2, 2017
1 parent 4b4eb9d commit f52a6a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mypackage/__version__.py
Expand Up @@ -3,4 +3,6 @@
# 88YbdP88 8P 88""" dP__Yb Yb 88"Yb dP__Yb Yb "88 88""
# 88 YY 88 dP 88 dP""""Yb YboodP 88 Yb dP""""Yb YboodP 888888

__version__ = '5.2.0'
VERSION = (5, 2, 0)

__version__ = '.'.join(map(str, VERSION))

0 comments on commit f52a6a4

Please sign in to comment.