Change version format to allow MAJOR.MINOR.PATCH.

This commit is contained in:
Marcel Rodrigues
2013-10-11 10:48:22 -03:00
parent e9290fc1e2
commit 2ad357bd15

View File

@@ -3,10 +3,10 @@ from setuptools import setup, find_packages
version_tuple = __import__('pymysql').VERSION
if version_tuple[2] is not None:
version = "%d.%d_%s" % version_tuple
if version_tuple[3] is not None:
version = "%d.%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
version = "%d.%d.%d" % version_tuple[:3]
try:
with open('README.rst') as f: