changeset 2564:6e5ab7bebd11

setup: use constants to get name and version
author Goffi <goffi@goffi.org>
date Tue, 03 Apr 2018 08:00:42 +0200
parents 9af003a8cb99
children ea106dfa2145
files setup.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Mon Apr 02 19:48:50 2018 +0200
+++ b/setup.py	Tue Apr 03 08:00:42 2018 +0200
@@ -19,6 +19,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from setuptools import setup, find_packages
+from sat.core.constants import Const as C
 import os
 import sys
 
@@ -56,8 +57,8 @@
 DBUS_DIR = 'dbus-1/services'
 DBUS_FILE = 'misc/org.goffi.SAT.service'
 
-setup(name=NAME,
-      version='0.6.1.1',
+setup(name=C.APP_NAME_FILE,
+      version=C.APP_VERSION,
       description=u'Salut à Toi multipurpose and multi frontend XMPP client',
       long_description=u'Salut à Toi (SàT) is a XMPP client based on a daemon/frontend architecture. Its multi frontend (desktop, web, console interface, CLI, etc) and multipurpose (instant messaging, microblogging, games, file sharing, etc).',
       author='Association « Salut à Toi »',