From d4852d5df4785daba864c7e95db9710443667308 Mon Sep 17 00:00:00 2001 From: boyska Date: Sat, 27 Mar 2021 12:26:19 +0100 Subject: [PATCH] Improve installation and quickstart docs --- doc/source/install.rst | 2 ++ doc/source/quickstart.rst | 5 ++++- setup.py | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/source/install.rst b/doc/source/install.rst index 59d44cc..69cfbb5 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -88,6 +88,8 @@ CONTINOUS_AUDIOSPEC audios. The default is ``{"kind": "mpd", "howmany": 1}``. You could, for example, change it to ``{ "kind": "randomdir", "paths": ["/var/music"], "howmany": 10}`` or to ``{"kind": "mpd", "howmany": 5, "prefix": "background"}``. + + Yes, there's a typo in the name, but I'll keep it like this for compatibility EVENT_FILTERS See :doc:`eventfilters` LOG_CONFIG diff --git a/doc/source/quickstart.rst b/doc/source/quickstart.rst index 5ed4921..5648028 100644 --- a/doc/source/quickstart.rst +++ b/doc/source/quickstart.rst @@ -16,7 +16,7 @@ Let's start!:: apt-get install python3 python3-dev build-essential virtualenv mpd virtualenv -p /usr/bin/python3 /opt/larigira/ - /opt/larigira/bin/pip3 install larigira + /opt/larigira/bin/pip3 install --no-binary :all: larigira touch /etc/default/larigira mkdir -p /home/radio/.mpd/ /etc/larigira/ /var/log/larigira/ chown radio:adm /var/log/larigira/ @@ -29,9 +29,12 @@ Edit ``/etc/systemd/system/larigira.service`` and put this content:: After=mpd.service [Service] + Type=notify + NotifyAccess=all EnvironmentFile=/etc/default/larigira User=radio ExecStart=/opt/larigira/bin/larigira + Restart=always [Install] WantedBy=multi-user.target diff --git a/setup.py b/setup.py index aad117e..30ed31d 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,8 @@ setup( "werkzeug==0.14.1", "cachelib==0.1", "tinydb==3.12.2", + "lxml==4.5.1", + "requests==2.23.0", ], tests_require=["pytest-timeout==1.0", "py>=1.4.29", "pytest==3.0"], python_requires=">=3.5",