Better documentation

main
Eliot Berriot 2018-10-03 22:40:14 +02:00
parent 8cd646e00d
commit 22c62fe47d
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
5 changed files with 57 additions and 24 deletions

View File

@ -5,6 +5,8 @@ test:
stage: test stage: test
image: python:2 image: python:2
before_script: before_script:
- apt-get update
- apt-get install libgirepository1.0-dev -y
- pip install .[test] - pip install .[test]
script: script:
- pytest - pytest

View File

@ -2,6 +2,7 @@ include CONTRIBUTING.rst
include HISTORY.rst include HISTORY.rst
include LICENSE include LICENSE
include README.rst include README.rst
include mopidy_funkwhale/ext.conf
recursive-include tests * recursive-include tests *
recursive-exclude * __pycache__ recursive-exclude * __pycache__

View File

@ -2,36 +2,62 @@
mopidy-funkwhale mopidy-funkwhale
================ ================
A small `Mopidy`_ backend extension to stream music from a Funkwhale server.
.. image:: https://img.shields.io/pypi/v/mopidy_funkwhale.svg
:target: https://pypi.python.org/pypi/mopidy_funkwhale
.. image:: https://img.shields.io/travis/eliotberriot/mopidy_funkwhale.svg
:target: https://travis-ci.org/eliotberriot/mopidy_funkwhale
.. image:: https://readthedocs.org/projects/mopidy-funkwhale/badge/?version=latest
:target: https://mopidy-funkwhale.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Status
------
This project is still pretty young and is not feature complete. It has been
A backend extension for mopidy to stream music from a Funkwhale server tested with the latest version of Mopidy and the `Iris`_ and `ncmpcpp`_ clients.
* Free software: GNU General Public License v3
* Documentation: https://mopidy-funkwhale.readthedocs.io.
Features Features
-------- --------
* TODO * Searching for tracks, albums and artists available in your Funkwhale instance
* Simple configuration
Credits Installation
------- ------------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. We assume you have a Mopidy server available.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter We don't have any package for this extension yet, so you may install
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage from the repository:
.. code-block:: shell
pip install git+https://code.eliotberriot.com/funkwhale/mopidy.git
.. note::
Depending on your setup, you may want to run this comand with ``sudo`` or ``--user``
Configuration
-------------
To enable the extension, add the following to your ``mopidy.conf`` file::
[funkwhale]
enabled = true
# URL of your funkwhale instance
url = https://demo.funkwhale.audio
# Username to use when authenticating (leave empty fo anonymous access)
username = demo
# Password to use when authenticating (leave empty fo anonymous access)
password = demo
Of course, replace the demo values with your actual info (but you can
try using the demo server).
After that, reload your mopidy daemon, and you should be good!
Todo
----
- Browse Funkwhale library and playlists
.. _Mopidy: https://www.mopidy.com/
.. _ncmpcpp: https://wiki.archlinux.org/index.php/ncmpcpp
.. _iris: https://github.com/jaedb/iris

View File

@ -1,5 +1,8 @@
[funkwhale] [funkwhale]
enabled = true enabled = true
# URL of your funkwhale instance
url = https://demo.funkwhale.audio url = https://demo.funkwhale.audio
# Username to use when authenticating (leave empty fo anonymous access)
username = demo username = demo
# Password to use when authenticating (leave empty fo anonymous access)
password = demo password = demo

View File

@ -21,6 +21,8 @@ packages = find:
install_requires = install_requires =
mopidy mopidy
requests requests
pygobject
vext
[options.entry_points] [options.entry_points]
@ -35,7 +37,6 @@ test =
pytest-mock pytest-mock
dev = dev =
pygobject
ipython ipython
ipdb ipdb