[Fixes #30] Add a VERSION tuple for comparison

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):
This commit is contained in:
Curtis Maloney 2017-11-02 11:43:20 +11:00 committed by GitHub
parent 4b4eb9d46a
commit f52a6a4f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))