Mercurial > libervia-desktop-kivy
annotate setup.py @ 167:ffef21fd97a2
chat: allow to scroll using side bar + increased bar size
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 Apr 2018 15:40:29 +0200 |
parents | 98a485512289 |
children | c63922860f80 |
rev | line source |
---|---|
127 | 1 #!/usr/bin/env python2 |
2 # -*- coding: utf-8 -*- | |
3 | |
4 # Cagou: a SàT frontend | |
5 # Copyright (C) 2009-2016 Jérôme Poisson (goffi@goffi.org) | |
6 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) | |
7 | |
8 # This program is free software: you can redistribute it and/or modify | |
9 # it under the terms of the GNU Affero General Public License as published by | |
10 # the Free Software Foundation, either version 3 of the License, or | |
11 # (at your option) any later version. | |
12 | |
13 # This program is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU Affero General Public License for more details. | |
17 | |
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/>. | |
20 | |
21 from setuptools import setup, find_packages | |
22 import os | |
23 import textwrap | |
24 | |
25 NAME = 'cagou' | |
26 | |
27 install_requires = [ | |
28 'kivy', | |
29 'pillow', | |
30 'sat', | |
31 ] | |
32 | |
33 with open(os.path.join(NAME, 'VERSION')) as f: | |
34 VERSION = f.read().strip() | |
35 is_dev_version = VERSION.endswith('D') | |
36 | |
37 | |
38 def cagou_dev_version(): | |
39 """Use mercurial data to compute version""" | |
40 def version_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
41 return VERSION.replace('D', '.dev0') |
127 | 42 |
43 def local_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
44 return "+{rev}.{distance}".format( |
127 | 45 rev=version.node[1:], |
46 distance=version.distance) | |
47 | |
48 return {'version_scheme': version_scheme, | |
49 'local_scheme': local_scheme} | |
50 | |
51 | |
52 setup(name=NAME, | |
53 version=VERSION, | |
54 description=u'Desktop/Android frontend for Salut à Toi XMPP client', | |
55 long_description=textwrap.dedent("""\ | |
56 Cagou is a desktop/Android frontend for Salut à Toi. | |
57 It provides native graphical interface with a modern user interface, | |
58 using touch screen abilitiy when available, and with split ability inspired from Blender | |
59 """), | |
60 author='Association « Salut à Toi »', | |
61 author_email='contact@goffi.org', | |
62 url='https://salut-a-toi.org', | |
63 classifiers=['Development Status :: 3 - Alpha', | |
64 'Programming Language :: Python :: 2.7', | |
65 'Programming Language :: Python :: 2 :: Only', | |
66 'Environment :: X11 Applications', | |
67 'Framework :: Twisted', | |
68 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', | |
69 'Operating System :: POSIX :: Linux', | |
70 'Operating System :: Android', | |
71 'Topic :: Internet :: XMPP', | |
72 'Topic :: Communications :: Chat', | |
73 'Intended Audience :: End Users/Desktop', | |
74 ], | |
75 packages=find_packages(), | |
76 scripts=['bin/cagou'], | |
77 zip_safe=False, | |
78 setup_requires=['setuptools_scm'] if is_dev_version else [], | |
79 use_scm_version=cagou_dev_version if is_dev_version else False, | |
80 install_requires=install_requires, | |
81 package_data={'cagou': ['VERSION']}, | |
82 python_requires='~=2.7', | |
83 ) |