diff piecrust/__init__.py @ 69:cb1ed436642c

Always use version generated by `setup.py`. Better version generation.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 30 Aug 2014 08:35:26 -0700
parents 485682a6de50
children 69d5eecfa449
line wrap: on
line diff
--- a/piecrust/__init__.py	Fri Aug 29 16:42:15 2014 -0700
+++ b/piecrust/__init__.py	Sat Aug 30 08:35:26 2014 -0700
@@ -1,5 +1,3 @@
-
-APP_VERSION = '2.0.0alpha'
 
 CACHE_DIR = '_cache'
 ASSETS_DIR = 'assets'
@@ -19,3 +17,8 @@
 
 PIECRUST_URL = 'http://bolt80.com/piecrust/'
 
+try:
+    from piecrust.__version__ import APP_VERSION
+except ImportError:
+    APP_VERSION = 'unknown'
+