comparison setup.py @ 493:b3cedbee561d

refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 18:26:16 +0200
parents f046092ba883
children
comparison
equal deleted inserted replaced
492:5114bbb5daa3 493:b3cedbee561d
19 19
20 from setuptools import setup, find_packages 20 from setuptools import setup, find_packages
21 import os 21 import os
22 import textwrap 22 import textwrap
23 23
24 NAME = "libervia-desktop" 24 NAME = "libervia-desktop_kivy"
25 # NOTE: directory is still "cagou" for compatibility reason, should be changed for 0.9 25 # NOTE: directory is still "cagou" for compatibility reason, should be changed for 0.9
26 DIR_NAME = "cagou" 26 DIR_NAME = "libervia/desktop_kivy"
27 27
28 install_requires = [ 28 install_requires = [
29 'kivy >=2.0.0, <2.2.0', 29 'kivy >=2.0.0, <2.2.0',
30 'kivy_garden.modernmenu', 30 'kivy_garden.modernmenu',
31 'pillow <9.3', 31 'pillow <9.3',
36 with open(os.path.join(DIR_NAME, 'VERSION')) as f: 36 with open(os.path.join(DIR_NAME, 'VERSION')) as f:
37 VERSION = f.read().strip() 37 VERSION = f.read().strip()
38 is_dev_version = VERSION.endswith('D') 38 is_dev_version = VERSION.endswith('D')
39 39
40 40
41 def cagou_dev_version(): 41 def desktop_kivy_dev_version():
42 """Use mercurial data to compute version""" 42 """Use mercurial data to compute version"""
43 def version_scheme(version): 43 def version_scheme(version):
44 return VERSION.replace('D', '.dev0') 44 return VERSION.replace('D', '.dev0')
45 45
46 def local_scheme(version): 46 def local_scheme(version):
53 53
54 54
55 setup( 55 setup(
56 name=NAME, 56 name=NAME,
57 version=VERSION, 57 version=VERSION,
58 description="Desktop/Android frontend for Libervia XMPP client", 58 description="Desktop/Android frontend (Kivy version) for Libervia XMPP client",
59 long_description=textwrap.dedent("""\ 59 long_description=textwrap.dedent("""\
60 Libervia Desktop (Cagou) is a desktop/Android frontend for Libervia. 60 Libervia Desktop Kivy is a Desktop/Android frontend for Libervia.
61 This is an alternative version using the Kivy framework.
61 It provides native graphical interface with a modern user interface, 62 It provides native graphical interface with a modern user interface,
62 using touch screen abilitiy when available, and with split ability inspired from 63 using touch screen abilitiy when available, and with split ability inspired from
63 Blender 64 Blender
64 """), 65 """),
65 author="Association « Salut à Toi »", 66 author="Libervia Team",
66 author_email="contact@goffi.org", 67 author_email="contact@goffi.org",
67 url="https://salut-a-toi.org", 68 url="https://libervia.org",
68 classifiers=[ 69 classifiers=[
69 "Programming Language :: Python :: 3 :: Only", 70 "Programming Language :: Python :: 3 :: Only",
70 "Programming Language :: Python :: 3.7", 71 "Programming Language :: Python :: 3.7",
71 "Programming Language :: Python :: 3.8", 72 "Programming Language :: Python :: 3.8",
72 "Programming Language :: Python :: 3.9", 73 "Programming Language :: Python :: 3.9",
81 "Intended Audience :: End Users/Desktop", 82 "Intended Audience :: End Users/Desktop",
82 ], 83 ],
83 packages=find_packages(), 84 packages=find_packages(),
84 entry_points={ 85 entry_points={
85 "console_scripts": [ 86 "console_scripts": [
86 "libervia-desktop = cagou:run", 87 "libervia-desktop_kivy = libervia.desktop_kivy:run",
87 "libervia-mobile = cagou:run", 88 "libervia-mobile = libervia.desktop_kivy:run",
88 "cagou = cagou:run", 89 "cagou = libervia.desktop_kivy:run",
89 ], 90 ],
90 }, 91 },
91 zip_safe=False, 92 zip_safe=False,
92 setup_requires=["setuptools_scm"] if is_dev_version else [], 93 setup_requires=["setuptools_scm"] if is_dev_version else [],
93 use_scm_version=cagou_dev_version if is_dev_version else False, 94 use_scm_version=desktop_kivy_dev_version if is_dev_version else False,
94 install_requires=install_requires, 95 install_requires=install_requires,
95 package_data={"": ["*.kv"], "cagou": ["VERSION"]}, 96 package_data={"": ["*.kv"], "libervia.desktop_kivy": ["VERSION"]},
96 python_requires=">=3.7", 97 python_requires=">=3.7",
97 ) 98 )