From 93b378a4306d7e8a006cbc6b17fe5ebfab3ee699 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 8 Dec 2019 23:19:49 +0100 Subject: [PATCH] Added examples for config.yaml and platypush.service files --- examples/systemd/platypush.service | 22 ++++++++++++++++++++++ setup.py | 7 ++++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 examples/systemd/platypush.service diff --git a/examples/systemd/platypush.service b/examples/systemd/platypush.service new file mode 100644 index 00000000..05a3a56f --- /dev/null +++ b/examples/systemd/platypush.service @@ -0,0 +1,22 @@ +# platypush systemd service example. +# Edit and copy this file to your systemd folder. It's usually +# /usr/lib/systemd/user for global installation or +# ~/.config/systemd/user for user installation. You can +# then control and monitor the service through +# systemd [--user] [start|stop|restart|status] platypush.service + +[Unit] +Description=Platypush daemon +After=network.target + +[Service] +# platypush installation path +ExecStart=/usr/bin/platypush +Restart=always +# How long should be waited before restarting the service +# in case of failure. +RestartSec=10 + +[Install] +WantedBy=default.target + diff --git a/setup.py b/setup.py index 87570cba..e48709e9 100755 --- a/setup.py +++ b/setup.py @@ -140,6 +140,7 @@ setup( 'requests', 'croniter', 'pyScss', + 'sqlalchemy', ], extras_require = { @@ -150,9 +151,9 @@ setup( # Support for Pushbullet backend and plugin 'pushbullet': ['pushbullet.py'], # Support for HTTP backend - 'http': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'bcrypt', 'sqlalchemy'], + 'http': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'bcrypt'], # Support for uWSGI HTTP backend - 'uwsgi': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'uwsgi', 'bcrypt', 'sqlalchemy'], + 'uwsgi': ['flask', 'websockets', 'python-dateutil', 'tz', 'frozendict', 'uwsgi', 'bcrypt'], # Support for database 'db': ['sqlalchemy'], # Support for MQTT backends @@ -168,7 +169,7 @@ setup( # Support for text2speech plugin 'tts': ['mplayer'], # Support for Google text2speech plugin - 'google-tts': ['google-cloud-texttospeech'], + 'google-tts': ['oauth2client', 'google-api-python-client', 'google-cloud-texttospeech'], # Support for OMXPlayer plugin 'omxplayer': ['omxplayer-wrapper'], # Support for YouTube