1. Frederic De Groef
  2. csxj_viewer_app

Commits

Frederic De Groef  committed 793c1e8

moved the version.py file, updated the hook

  • Participants
  • Parent commits a067ea9
  • Branches default
  • Tags v0.2.2

Comments (0)

Files changed (4)

File common/base_template.py

View file
 import version
 from jsondb import jsondb
-
+import version
 
 
 def load_last_update_data(db_root):

File common/version.py

View file
+VERSION = 'v0.2.1'

File hooks/update_version.py

View file
 
 
+VERSION_FILENAME = 'common/version.py'
+
 def update_version(ui, repo, **kwargs):
     tag_name = kwargs['tag']
     if tag_name.startswith('v'):
         print '[pretag hook] updating version.py file with version : ', tag_name
-        with open('version.py', 'w') as f:
+        with open(VERSION_FILENAME, 'w') as f:
             f.write("VERSION = '{0}'".format(tag_name))
     else:
         print '[pretag hook] tag:{0} does not look like a version tag, ignoring it'.format(tag_name) 

File version.py

-VERSION = 'v0.2.1'