commit a21c8f255bcd79de448beb43b3251810083be482 Author: Eliot Berriot Date: Wed Oct 3 18:34:45 2018 +0200 IInitial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d4a2c44 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +end_of_line = lf + +[*.bat] +indent_style = tab +end_of_line = crlf + +[LICENSE] +insert_final_newline = false + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84229f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,102 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ diff --git a/HISTORY.rst b/HISTORY.rst new file mode 100644 index 0000000..014ddfd --- /dev/null +++ b/HISTORY.rst @@ -0,0 +1,8 @@ +======= +History +======= + +0.1.0 (2018-10-03) +------------------ + +* First release on PyPI. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..055711f --- /dev/null +++ b/LICENSE @@ -0,0 +1,33 @@ +GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + A backend extension for mopidy to stream music from a Funkwhale server + Copyright (C) 2018 Eliot Berriot + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..292d6dd --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,10 @@ +include CONTRIBUTING.rst +include HISTORY.rst +include LICENSE +include README.rst + +recursive-include tests * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] + +recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..44c78c5 --- /dev/null +++ b/README.rst @@ -0,0 +1,37 @@ +================ +mopidy-funkwhale +================ + + +.. 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 + + + + +A backend extension for mopidy to stream music from a Funkwhale server + + +* Free software: GNU General Public License v3 +* Documentation: https://mopidy-funkwhale.readthedocs.io. + + +Features +-------- + +* TODO + +Credits +------- + +This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. + +.. _Cookiecutter: https://github.com/audreyr/cookiecutter +.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage diff --git a/mopidy_funkwhale/__init__.py b/mopidy_funkwhale/__init__.py new file mode 100644 index 0000000..ed123bf --- /dev/null +++ b/mopidy_funkwhale/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- + +"""Top-level package for mopidy-funkwhale.""" + +__author__ = """Eliot Berriot""" +__email__ = 'contact+funkwhale@eliotberriot.com' +__version__ = '0.1.0' diff --git a/mopidy_funkwhale/mopidy_funkwhale.py b/mopidy_funkwhale/mopidy_funkwhale.py new file mode 100644 index 0000000..7fbbae4 --- /dev/null +++ b/mopidy_funkwhale/mopidy_funkwhale.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +"""Main module.""" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..77b46ae --- /dev/null +++ b/setup.cfg @@ -0,0 +1,38 @@ +[metadata] +name = mopidy_funkwhale +description = "A backend extension for mopidy to stream music from a Funkwhale server" +version = 0.1.0 +author = Eliot Berriot +author_email = contact+funkwhale@eliotberriot.com +url = https://code.eliotberriot.com/funkwhale/mopidy +long_description = file: README.rst +license = GLP-3 +keywords = code, diff, copy-paste, linter, DRY +classifiers = + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.6 + +[options] +zip_safe = True +include_package_data = True +packages = find: +install_requires = + requests + +[options.extras_require] + +test = + pytest + pytest-cov + +[options.packages.find] +exclude = + tests + +[bdist_wheel] +universal = 1 + +[tool:pytest] +testpaths = tests diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..43deb57 --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +from setuptools import setup + +setup() diff --git a/tests/test_mopidy_funkwhale.py b/tests/test_mopidy_funkwhale.py new file mode 100644 index 0000000..c1c9196 --- /dev/null +++ b/tests/test_mopidy_funkwhale.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +"""Tests for `mopidy_funkwhale` package.""" + +import pytest + + +from mopidy_funkwhale import mopidy_funkwhale + + +@pytest.fixture +def response(): + """Sample pytest fixture. + + See more at: http://doc.pytest.org/en/latest/fixture.html + """ + # import requests + # return requests.get('https://github.com/audreyr/cookiecutter-pypackage') + + +def test_content(response): + """Sample pytest test function with the pytest fixture as an argument.""" + # from bs4 import BeautifulSoup + # assert 'GitHub' in BeautifulSoup(response.content).title.string