http: Move mopidy.{frontends => }.http

This commit is contained in:
Stein Magnus Jodal 2013-12-31 14:04:25 +01:00
parent b367d032f1
commit 621aff22c9
19 changed files with 14 additions and 20 deletions

View File

@ -7,6 +7,6 @@ recursive-include docs *
prune docs/_build
recursive-include mopidy *.conf
recursive-include mopidy/frontends/http/data *
recursive-include mopidy/http/data *
recursive-include tests *.py
recursive-include tests/data *

View File

@ -47,5 +47,5 @@ The following requirements applies to any frontend implementation:
Frontend implementations
========================
* :mod:`mopidy.frontends.http`
* :mod:`mopidy.http`
* :mod:`mopidy.frontends.mpd`

View File

@ -113,8 +113,8 @@ HTML file:
If you don't use Mopidy to host your web client, you can find the JS files in
the Git repo at:
- ``mopidy/frontends/http/data/mopidy.js``
- ``mopidy/frontends/http/data/mopidy.min.js``
- ``mopidy/http/data/mopidy.js``
- ``mopidy/http/data/mopidy.min.js``
Getting the library for Node.js use

View File

@ -9,12 +9,6 @@ from a web based client. See :ref:`http-api` for details on how to integrate
with Mopidy over HTTP.
Known issues
============
https://github.com/mopidy/mopidy/issues?labels=HTTP+frontend
Dependencies
============
@ -32,7 +26,7 @@ install Mopidy with the extra dependencies for required for Mopidy-HTTP::
Default configuration
=====================
.. literalinclude:: ../../mopidy/frontends/http/ext.conf
.. literalinclude:: ../../mopidy/http/ext.conf
:language: ini

View File

@ -11,8 +11,8 @@ module.exports = function (grunt) {
" * Licensed under the Apache License, Version 2.0 */\n",
files: {
own: ["Gruntfile.js", "src/**/*.js", "test/**/*-test.js"],
concat: "../mopidy/frontends/http/data/mopidy.js",
minified: "../mopidy/frontends/http/data/mopidy.min.js"
concat: "../mopidy/http/data/mopidy.js",
minified: "../mopidy/http/data/mopidy.min.js"
}
},
buster: {

View File

@ -21,8 +21,8 @@ You may need to adjust hostname and port for your local setup.
In the source repo, you can find the files at:
- `mopidy/frontends/http/data/mopidy.js`
- `mopidy/frontends/http/data/mopidy.min.js`
- `mopidy/http/data/mopidy.js`
- `mopidy/http/data/mopidy.min.js`
Getting it for Node.js use
@ -72,7 +72,7 @@ To run tests automatically when you save a file:
npm start
To run tests, concatenate, minify the source, and update the JavaScript files
in `mopidy/frontends/http/data/`:
in `mopidy/http/data/`:
npm run-script build

View File

@ -14,7 +14,7 @@ from mopidy.core import CoreListener
from . import ws
logger = logging.getLogger('mopidy.frontends.http')
logger = logging.getLogger('mopidy.http')
class HttpFrontend(pykka.ThreadingActor, CoreListener):

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -9,7 +9,7 @@ from mopidy import core, models
from mopidy.utils import jsonrpc
logger = logging.getLogger('mopidy.frontends.http')
logger = logging.getLogger('mopidy.http')
class WebSocketResource(object):

View File

@ -41,7 +41,7 @@ setup(
'mopidy-convert-config = mopidy.config.convert:main',
],
'mopidy.ext': [
'http = mopidy.frontends.http:Extension [http]',
'http = mopidy.http:Extension [http]',
'local = mopidy.backends.local:Extension',
'local-json = mopidy.backends.local.json:Extension',
'mpd = mopidy.frontends.mpd:Extension',

View File

@ -15,7 +15,7 @@ except ImportError:
ws4py = False
if cherrypy and ws4py:
from mopidy.frontends.http import actor
from mopidy.http import actor
@unittest.skipUnless(cherrypy, 'cherrypy not found')