Mercurial > libervia-desktop-kivy
annotate setup.py @ 236:ca86954b3788
xmlui: implemented TextBoxWidget + set height for XMLUIPanel
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 Aug 2018 16:58:15 +0200 |
parents | f1ee7a8cf77c |
children | 1b835bcfa663 |
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', | |
184
c63922860f80
chat: show desktop notification and/or note when suitable
Goffi <goffi@goffi.org>
parents:
161
diff
changeset
|
30 'plyer', |
127 | 31 'sat', |
32 ] | |
33 | |
34 with open(os.path.join(NAME, 'VERSION')) as f: | |
35 VERSION = f.read().strip() | |
36 is_dev_version = VERSION.endswith('D') | |
37 | |
38 | |
39 def cagou_dev_version(): | |
40 """Use mercurial data to compute version""" | |
41 def version_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
42 return VERSION.replace('D', '.dev0') |
127 | 43 |
44 def local_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
45 return "+{rev}.{distance}".format( |
127 | 46 rev=version.node[1:], |
47 distance=version.distance) | |
48 | |
49 return {'version_scheme': version_scheme, | |
50 'local_scheme': local_scheme} | |
51 | |
52 | |
53 setup(name=NAME, | |
54 version=VERSION, | |
55 description=u'Desktop/Android frontend for Salut à Toi XMPP client', | |
56 long_description=textwrap.dedent("""\ | |
57 Cagou is a desktop/Android frontend for Salut à Toi. | |
58 It provides native graphical interface with a modern user interface, | |
59 using touch screen abilitiy when available, and with split ability inspired from Blender | |
60 """), | |
61 author='Association « Salut à Toi »', | |
62 author_email='contact@goffi.org', | |
63 url='https://salut-a-toi.org', | |
64 classifiers=['Development Status :: 3 - Alpha', | |
65 'Programming Language :: Python :: 2.7', | |
66 'Programming Language :: Python :: 2 :: Only', | |
67 'Environment :: X11 Applications', | |
68 'Framework :: Twisted', | |
69 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', | |
70 'Operating System :: POSIX :: Linux', | |
71 'Operating System :: Android', | |
72 'Topic :: Internet :: XMPP', | |
73 'Topic :: Communications :: Chat', | |
74 'Intended Audience :: End Users/Desktop', | |
75 ], | |
76 packages=find_packages(), | |
77 scripts=['bin/cagou'], | |
78 zip_safe=False, | |
79 setup_requires=['setuptools_scm'] if is_dev_version else [], | |
80 use_scm_version=cagou_dev_version if is_dev_version else False, | |
81 install_requires=install_requires, | |
210
f1ee7a8cf77c
install (setup.py): added missing ".kv" files to package_data
Goffi <goffi@goffi.org>
parents:
184
diff
changeset
|
82 package_data={'': ['*.kv'], 'cagou': ['VERSION']}, |
127 | 83 python_requires='~=2.7', |
84 ) |