changeset 327:b77792cc6d12

use Kivy garden's new infrastructure for modernmenu and contextmenu: dependencies are updated, the legacy kivy-garden tool is not needed anymore, thus installation is simplified.
author Goffi <goffi@goffi.org>
date Wed, 11 Dec 2019 18:26:42 +0100
parents d9d2b56f46db
children dddea9684a8e
files .p4a cagou/core/menu.py cagou/plugins/plugin_wid_file_sharing.kv setup.py
diffstat 4 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.p4a	Fri Dec 06 13:25:33 2019 +0100
+++ b/.p4a	Wed Dec 11 18:26:42 2019 +0100
@@ -4,7 +4,7 @@
 --dist-name cagou_dev_build
 --debug
 --bootstrap=sdl2
---requirements "hostpython3, kivy, sqlite3, omemo, omemo-backend-signal, service_identity, automat, attrs, twisted, wokkel, hg+https://repos.goffi.org/sat, hg+https://repos.goffi.org/sat_tmp, pillow, pyxdg, markdown, html2text, python-dateutil, pycrypto, plyer, android, python-potr, shortuuid, babel, lxml, pudb, urwid, cryptography, openssl, pyopenssl, pyasn1, pyasn1-modules"
+--requirements "hostpython3, kivy, kivy_garden.modernmenu, kivy_garden.contextmenu>=0.1.0.dev1, sqlite3, omemo, omemo-backend-signal, service_identity, automat, attrs, twisted, wokkel, hg+https://repos.goffi.org/sat, hg+https://repos.goffi.org/sat_tmp, pillow, pyxdg, markdown, html2text, python-dateutil, pycrypto, plyer, android, python-potr, shortuuid, babel, lxml, pudb, urwid, cryptography, openssl, pyopenssl, pyasn1, pyasn1-modules"
 --private . --package=org.salutatoi.cagou --name "Cagou"
 --version 0.1
 --whitelist .p4a_whitelist
--- a/cagou/core/menu.py	Fri Dec 06 13:25:33 2019 +0100
+++ b/cagou/core/menu.py	Wed Dec 11 18:26:42 2019 +0100
@@ -27,7 +27,7 @@
 from kivy.uix.popup import Popup
 from cagou.core.utils import FilterBehavior
 from kivy import properties
-from kivy.garden import contextmenu, modernmenu
+from kivy_garden import contextmenu, modernmenu
 from sat_frontends.quick_frontend import quick_menus
 from kivy.core.window import Window
 from kivy.animation import Animation
--- a/cagou/plugins/plugin_wid_file_sharing.kv	Fri Dec 06 13:25:33 2019 +0100
+++ b/cagou/plugins/plugin_wid_file_sharing.kv	Wed Dec 11 18:26:42 2019 +0100
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-#:import ModernMenu kivy.garden.modernmenu.ModernMenu
+#:import ModernMenu kivy_garden.modernmenu.ModernMenu
 
 
 <ModeBtn>:
--- a/setup.py	Fri Dec 06 13:25:33 2019 +0100
+++ b/setup.py	Wed Dec 11 18:26:42 2019 +0100
@@ -26,6 +26,8 @@
 
 install_requires = [
     'kivy>=1.10.0',
+    'kivy_garden.modernmenu',
+    'kivy_garden.contextmenu>=0.1.0.dev1',
     'pillow',
     'plyer',
     'sat>=0.7.0dev0',