changeset 629:26d9d251f658

Use the current revision as the version number.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 05 May 2015 13:32:56 +0200
parents df3c4ef5f2cc
children 6c40f5840a06
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -172,7 +172,7 @@ if not os.path.exists(temp_data_dir):
 
 
 setup(name='PyTouhou',
-      version='0.1',
+      version=check_output(['hg', 'heads', '.', '-T', '{rev}']).decode(),
       author='Thibaut Girka',
       author_email='thib@sitedethib.com',
       url='http://pytouhou.linkmauve.fr/',