Mercurial > libervia-desktop-kivy
annotate setup.py @ 479:8ee302a48269
install (setup): don't set upper bound for `kivy_garden.modernmenu`:
because `kivy_garden.modernmenu` is currently only available as a `dev0` version, the
upper bound is causing trouble with pip/pipx.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Aug 2021 22:40:40 +0200 |
parents | 0f2a6eed633d |
children | f046092ba883 |
rev | line source |
---|---|
337
544c437f5094
install (setup): fixed shebang for python3
Goffi <goffi@goffi.org>
parents:
327
diff
changeset
|
1 #!/usr/bin/env python3 |
127 | 2 |
475
c35aa683fa2d
/!\ package is being renamed to libervia-desktop following global name change /!\
Goffi <goffi@goffi.org>
parents:
474
diff
changeset
|
3 # Libervia Desktop and Mobile Frontend |
461 | 4 # Copyright (C) 2009-2021 Jérôme Poisson (goffi@goffi.org) |
127 | 5 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) |
6 | |
7 # This program is free software: you can redistribute it and/or modify | |
8 # it under the terms of the GNU Affero General Public License as published by | |
9 # the Free Software Foundation, either version 3 of the License, or | |
10 # (at your option) any later version. | |
11 | |
12 # This program is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU Affero General Public License for more details. | |
16 | |
17 # You should have received a copy of the GNU Affero General Public License | |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | |
20 from setuptools import setup, find_packages | |
21 import os | |
22 import textwrap | |
23 | |
475
c35aa683fa2d
/!\ package is being renamed to libervia-desktop following global name change /!\
Goffi <goffi@goffi.org>
parents:
474
diff
changeset
|
24 NAME = "libervia-desktop" |
c35aa683fa2d
/!\ package is being renamed to libervia-desktop following global name change /!\
Goffi <goffi@goffi.org>
parents:
474
diff
changeset
|
25 # NOTE: directory is still "cagou" for compatibility reason, should be changed for 0.9 |
c35aa683fa2d
/!\ package is being renamed to libervia-desktop following global name change /!\
Goffi <goffi@goffi.org>
parents:
474
diff
changeset
|
26 DIR_NAME = "cagou" |
127 | 27 |
28 install_requires = [ | |
474
98be52d5ac25
install: set upper limit for dependencies versions
Goffi <goffi@goffi.org>
parents:
468
diff
changeset
|
29 'kivy >=2.0.0, <2.1.0', |
479
8ee302a48269
install (setup): don't set upper bound for `kivy_garden.modernmenu`:
Goffi <goffi@goffi.org>
parents:
478
diff
changeset
|
30 'kivy_garden.modernmenu', |
474
98be52d5ac25
install: set upper limit for dependencies versions
Goffi <goffi@goffi.org>
parents:
468
diff
changeset
|
31 'pillow <8.3', |
98be52d5ac25
install: set upper limit for dependencies versions
Goffi <goffi@goffi.org>
parents:
468
diff
changeset
|
32 'plyer <2.1', |
478
0f2a6eed633d
install (setup.py): use new package for backend
Goffi <goffi@goffi.org>
parents:
475
diff
changeset
|
33 'libervia-backend >=0.8.0b1, <0.9', |
127 | 34 ] |
35 | |
475
c35aa683fa2d
/!\ package is being renamed to libervia-desktop following global name change /!\
Goffi <goffi@goffi.org>
parents:
474
diff
changeset
|
36 with open(os.path.join(DIR_NAME, 'VERSION')) as f: |
127 | 37 VERSION = f.read().strip() |
38 is_dev_version = VERSION.endswith('D') | |
39 | |
40 | |
41 def cagou_dev_version(): | |
42 """Use mercurial data to compute version""" | |
43 def version_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
44 return VERSION.replace('D', '.dev0') |
127 | 45 |
46 def local_scheme(version): | |
161
98a485512289
installation: fixed version in setup.py
Goffi <goffi@goffi.org>
parents:
127
diff
changeset
|
47 return "+{rev}.{distance}".format( |
127 | 48 rev=version.node[1:], |
49 distance=version.distance) | |
50 | |
51 return {'version_scheme': version_scheme, | |
52 'local_scheme': local_scheme} | |
53 | |
54 | |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
55 setup( |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
56 name=NAME, |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
57 version=VERSION, |
465
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
58 description="Desktop/Android frontend for Libervia XMPP client", |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
59 long_description=textwrap.dedent("""\ |
465
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
60 Libervia Desktop (Cagou) is a desktop/Android frontend for Libervia. |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
61 It provides native graphical interface with a modern user interface, |
465
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
62 using touch screen abilitiy when available, and with split ability inspired from |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
63 Blender |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
64 """), |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
65 author="Association « Salut à Toi »", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
66 author_email="contact@goffi.org", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
67 url="https://salut-a-toi.org", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
68 classifiers=[ |
315
4c1df075378c
install (setup.py): keep order consistent with sat's setup.py in classifiers
Goffi <goffi@goffi.org>
parents:
314
diff
changeset
|
69 "Programming Language :: Python :: 3 :: Only", |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
70 "Programming Language :: Python :: 3.7", |
465
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
71 "Programming Language :: Python :: 3.8", |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
72 "Programming Language :: Python :: 3.9", |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
73 "Development Status :: 5 - Production/Stable", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
74 "Environment :: X11 Applications", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
75 "Framework :: Twisted", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
76 "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
77 "Operating System :: POSIX :: Linux", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
78 "Operating System :: Android", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
79 "Topic :: Internet :: XMPP", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
80 "Topic :: Communications :: Chat", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
81 "Intended Audience :: End Users/Desktop", |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
82 ], |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
83 packages=find_packages(), |
465
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
84 entry_points={ |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
85 "console_scripts": [ |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
86 "libervia-desktop = cagou:run", |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
87 "libervia-mobile = cagou:run", |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
88 "cagou = cagou:run", |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
89 ], |
02787fa81b81
setup: name change + updated `description`/`classifiers` + use `entry_points` for running command
Goffi <goffi@goffi.org>
parents:
463
diff
changeset
|
90 }, |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
91 zip_safe=False, |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
92 setup_requires=["setuptools_scm"] if is_dev_version else [], |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
93 use_scm_version=cagou_dev_version if is_dev_version else False, |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
94 install_requires=install_requires, |
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
95 package_data={"": ["*.kv"], "cagou": ["VERSION"]}, |
468
8e42048649f7
install (setup): updated classifiers to reflect minimun Python version
Goffi <goffi@goffi.org>
parents:
465
diff
changeset
|
96 python_requires=">=3.7", |
314
7ea4b7915c6b
install (setup.py): updated classifiers
Goffi <goffi@goffi.org>
parents:
313
diff
changeset
|
97 ) |