Commits

hideki nara committed fffc780

__init__.py

Comments (0)

Files changed (3)

 NAME='bitinit'
 DESCRIPTION=''
 PACKAGES=['bitinit',]
-SCRIPTS=[ ]
+SCRIPTS=['src/script/bitinit.py', ]
 try:
     INSTALL_REQUIRES=[ r for r in open('requirements.txt').read().split('\n') if len(r)>0]
 except:

src/bitinit/__init__.py

+# -*- coding: utf-8 -*-
+#
+VERSION = (0, 1, 1, 'alpha', 0)
+
+def get_version():
+    version = '%d.%d.%d' % (VERSION[0], VERSION[1], VERSION[2])
+    return version
+

src/scripts/bitinit.py

     os.makedirs("src/scripts")
     os.makedirs("src/docs")
     init = open("src/%(project)s/__init__.py" % conf ,"w")
-    init.write('''
-# -*- coding: utf-8 -*-
+    init.write('''# -*- coding: utf-8 -*-
 #
 VERSION = (0, 1, 1, 'alpha', 0)