diff setup.py @ 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 13789ac717c4
children 6c40f5840a06
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/',