diff sat/core/constants.py @ 2571:4aca060075b7

setup: version is now set in SAT/VERSION, sat is not imported anymore in setup
author Goffi <goffi@goffi.org>
date Thu, 05 Apr 2018 10:41:08 +0200
parents ea106dfa2145
children bf1b12a8f597
line wrap: on
line diff
--- a/sat/core/constants.py	Wed Apr 04 22:09:20 2018 +0200
+++ b/sat/core/constants.py	Thu Apr 05 10:41:08 2018 +0200
@@ -22,6 +22,7 @@
     from os.path import expanduser, realpath
 except ImportError:
     BaseDirectory = None
+import sat
 
 
 class Const(object):
@@ -32,7 +33,7 @@
     APP_NAME_FILE = u'sat'
     APP_NAME_FULL = u'{name_short} ({name})'.format(name_short=APP_NAME_SHORT,
                                                     name=APP_NAME)
-    APP_VERSION = u'0.7.0D'  # Please add 'D' at the end for dev versions
+    APP_VERSION = sat.__version__  # Please add 'D' at the end of version in sat/VERSION for dev versions
     APP_RELEASE_NAME = u'La Commune'
     APP_URL = u'https://salut-a-toi.org'