comparison setup.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 ecb14a6036ae
children 7e7f4e344a96
comparison
equal deleted inserted replaced
2570:2ac37dfc408b 2571:4aca060075b7
17 17
18 # You should have received a copy of the GNU Affero General Public License 18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 from setuptools import setup, find_packages 21 from setuptools import setup, find_packages
22 from sat.core.constants import Const as C
23 import os 22 import os
24 import sys 23 import sys
25 24
26 NAME = 'sat' 25 NAME = 'sat'
27 26
53 'wokkel >= 0.7.1', 52 'wokkel >= 0.7.1',
54 ] 53 ]
55 54
56 DBUS_DIR = 'dbus-1/services' 55 DBUS_DIR = 'dbus-1/services'
57 DBUS_FILE = 'misc/org.goffi.SAT.service' 56 DBUS_FILE = 'misc/org.goffi.SAT.service'
57 with open('sat/VERSION') as f:
58 VERSION = f.read().strip()
58 59
59 60
60 setup(name=NAME, 61 setup(name=NAME,
61 version=C.APP_VERSION, 62 version=VERSION,
62 description=u'Salut à Toi multipurpose and multi frontend XMPP client', 63 description=u'Salut à Toi multipurpose and multi frontend XMPP client',
63 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).', 64 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).',
64 author='Association « Salut à Toi »', 65 author='Association « Salut à Toi »',
65 author_email='contact@goffi.org', 66 author_email='contact@goffi.org',
66 url=C.APP_URL, 67 url='https://salut-a-toi.org',
67 classifiers=['Development Status :: 3 - Alpha', 68 classifiers=['Development Status :: 3 - Alpha',
68 'Environment :: Console', 69 'Environment :: Console',
69 'Framework :: Twisted', 70 'Framework :: Twisted',
70 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', 71 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
71 'Operating System :: POSIX :: Linux', 72 'Operating System :: POSIX :: Linux',
76 (os.path.join('share', DBUS_DIR), [DBUS_FILE]), 77 (os.path.join('share', DBUS_DIR), [DBUS_FILE]),
77 ], 78 ],
78 scripts=['sat_frontends/jp/jp', 'sat_frontends/primitivus/primitivus', 'bin/sat'], 79 scripts=['sat_frontends/jp/jp', 'sat_frontends/primitivus/primitivus', 'bin/sat'],
79 zip_safe=False, 80 zip_safe=False,
80 install_requires=install_requires, 81 install_requires=install_requires,
82 package_data={'sat': ['VERSION']},
81 python_requires='~=2.7', 83 python_requires='~=2.7',
82 ) 84 )