diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..58ee3d2
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,8 @@
+include AUTHORS
+include LICENSE
+include MANIFEST.in
+include README.rst
+include mopidy_musicbox/ext.conf
+
+recursive-include screenshots *
+recursive-include mopidy_musicbox/static *
diff --git a/README.md b/README.md
deleted file mode 100644
index 58af49d..0000000
--- a/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-*************************
-Mopidy MusicBox Webclient
-*************************
-
-With Mopidy MusicBox Webclient, you can play your music on your computer (Rapsberry Pi) and remotely control it from a computer, phone, tablet, laptop. From your couch.
-
-This is a responsive html/js/css client especially written for Mopidy, a music server. Responsive, so it works on desktop and mobile browsers. You can browse, search and play albums, artists, playlists, and it has cover art from Last.fm.
-
-[Mopidy](http://www.mopidy.com/) is a music server which can play music from Spotify, Google Music, SoundCloud, etc or from your hard drive.
-
-Development
-===========
-
-Note: this Git-version is under development! As Mopidy changes, this client changes as well. It tries to follow the Master-branch of Mopidy for now, so update Mopidy as you update the client.
-
-
-Installation
-============
-
-To install Mopidy, check out [the installation docs](http://docs.mopidy.com/en/latest/installation/), [the settings docs](http://docs.mopidy.com/en/latest/settings/) and [even more detailed information](http://docs.mopidy.com/en/latest/modules/frontends/http/#http-frontend).
-
-If you want to use the web client on a Raspberry Pi, do yourself a favor and use my custom built SD-image: [Pi MusicBox](http://www.woutervanwijk.nl/pimusicbox/).
-
-Quick install
-=============
-
-Drop the 'webclient' folder in a folder on your Mopidy-system. Then change the [settings of Mopidy](http://docs.mopidy.com/en/latest/config/) to make it work.
-
-Example (assuming the webclient is in /opt/webclient):
-```code
-[http]
-enabled = true
-hostname = ::
-port = 6680
-static_dir = /opt/webclient
-```
-
-At least on Raspbian with Mopidy installed from apt.mopidy.com, the 'webclient/mopidy' symbolic link should be re-linked to '/usr/share/mopidy/mopidy/http/data'. Another missing file/symbolic link is 'webclient/js/radiostations.js', which can be copied from https://github.com/woutervanwijk/Pi-MusicBox/tree/master/filechanges/boot/config.
-
-Then point your browser (modern, with websockets: recent versions of Firefox, Chrome, Safari and IE10) to the ip-address and port of your device. e.g. http://192.168.1.5:6680
-
-Security
-========
-
-(Note from Mopidy:) Note that the HTTP frontend does not feature any form of user authentication or authorization. Anyone able to access the web server can use the full core API of Mopidy. Thus, you probably only want to make the web server available from your local network or place it behind a web proxy which takes care or user authentication. You have been warned.
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..f4c1bab
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,73 @@
+*************************
+Mopidy-MusicBox-Webclient
+*************************
+
+.. image:: https://img.shields.io/pypi/v/Mopidy-MusicBox-Webclient.svg?style=flat
+ :target: https://pypi.python.org/pypi/Mopidy-MusicBox-Webclient/
+ :alt: Latest PyPI version
+
+.. image:: https://img.shields.io/pypi/dm/Mopidy-MusicBox-Webclient.svg?style=flat
+ :target: https://pypi.python.org/pypi/Mopidy-MusicBox-Webclient/
+ :alt: Number of PyPI downloads
+
+With Mopidy MusicBox Webclient, you can play your music on your computer (`Rapsberry Pi `_) and remotely control it using your computer, tablet or phone.
+
+This is a responsive webclient especially written for Mopidy, a music server. Responsive, so it works on desktop and mobile browsers. You can browse, search and play albums, artists, playlists, and it has cover art from Last.fm.
+
+`Mopidy `_ is a music server which can play music from Spotify, Google Music, SoundCloud, etc or from your hard drive.
+
+If you want to run Mopidy with this webclient on a Raspberry Pi, do yourself a favor and use my custom built SD-image: `Pi MusicBox `_.
+
+.. image:: https://github.com/woutervanwijk/Mopidy-MusicBox-Webclient/raw/master/screenshots/playlists_desktop.png
+
+
+Installation
+============
+
+Install by running::
+
+ pip install Mopidy-MusicBox-Webclient
+
+
+Alternatively, clone the repository and run ``sudo python setup.py install`` from within the project directory. e.g. ::
+
+ $ git clone https://github.com/woutervanwijk/Mopidy-MusicBox-Webclient
+ $ cd Mopidy-MusicBox-Webclient
+ $ sudo python setup.py install
+
+
+Usage
+=====
+
+Point your (modern) browser at Mopidy-MusicBox-Webclient running on your Mopidy server e.g. http://localhost:6680/musicbox.
+
+
+
+Project resources
+=================
+
+- `Source code `_
+- `Issue tracker `_
+- `Download development snapshot `_
+
+
+Changelog
+=========
+
+v1.0.0 (UNRELEASED)
+-------------------
+
+- Compatible with Mopidy v0.19
+- Made pip installable
+
+v0.1.0 (2013-07-21)
+-------------------
+
+- Compatible with Mopidy 0.14+
+- More ways to add a song to the Queue (play next, add to bottom, etc)
+- Better Queue popup
+- Button to clear the Queue
+- A bit more speed
+- Local files show up in search
+- Bugs fixed
+- New instructions in the read me
diff --git a/changelog b/changelog
deleted file mode 100644
index 39aaeec..0000000
--- a/changelog
+++ /dev/null
@@ -1,13 +0,0 @@
-Changelog
-*********
-
-Tracks the changes of Mopidy Webclient
-
-2013-07-21 (for Mopidy 0.14+)
-- More ways to add a song to the Queue (play next, add to bottom, etc)
-- Better Queue popup
-- Button to clear the Queue
-- A bit more speed
-- Local files show up in search
-- Bugs fixed
-- New instructions in the read me
\ No newline at end of file
diff --git a/mopidy_musicbox/__init__.py b/mopidy_musicbox/__init__.py
new file mode 100644
index 0000000..ca1cdef
--- /dev/null
+++ b/mopidy_musicbox/__init__.py
@@ -0,0 +1,29 @@
+from __future__ import unicode_literals
+
+import os
+
+from mopidy import config, ext
+
+
+__version__ = '1.0.0'
+
+
+class MusicBoxExtension(ext.Extension):
+
+ dist_name = 'Mopidy-MusicBox-Webclient'
+ ext_name = 'musicbox'
+ version = __version__
+
+ def get_default_config(self):
+ conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf')
+ return config.read(conf_file)
+
+ def get_config_schema(self):
+ schema = super(MusicBoxExtension, self).get_config_schema()
+ return schema
+
+ def setup(self, registry):
+ registry.add('http:static', {
+ 'name': self.ext_name,
+ 'path': os.path.join(os.path.dirname(__file__), 'static'),
+ })
diff --git a/mopidy_musicbox/ext.conf b/mopidy_musicbox/ext.conf
new file mode 100644
index 0000000..77f9e29
--- /dev/null
+++ b/mopidy_musicbox/ext.conf
@@ -0,0 +1,2 @@
+[musicbox]
+enabled = true
diff --git a/webclient/README.md b/mopidy_musicbox/static/README.md
similarity index 100%
rename from webclient/README.md
rename to mopidy_musicbox/static/README.md
diff --git a/webclient/css/add2home.css b/mopidy_musicbox/static/css/add2home.css
similarity index 100%
rename from webclient/css/add2home.css
rename to mopidy_musicbox/static/css/add2home.css
diff --git a/webclient/css/font-awesome.css b/mopidy_musicbox/static/css/font-awesome.css
similarity index 100%
rename from webclient/css/font-awesome.css
rename to mopidy_musicbox/static/css/font-awesome.css
diff --git a/webclient/css/font-awesome.min.css b/mopidy_musicbox/static/css/font-awesome.min.css
similarity index 100%
rename from webclient/css/font-awesome.min.css
rename to mopidy_musicbox/static/css/font-awesome.min.css
diff --git a/webclient/css/fonts/Flat-UI-Icons-24.ttf b/mopidy_musicbox/static/css/fonts/Flat-UI-Icons-24.ttf
similarity index 100%
rename from webclient/css/fonts/Flat-UI-Icons-24.ttf
rename to mopidy_musicbox/static/css/fonts/Flat-UI-Icons-24.ttf
diff --git a/webclient/css/fonts/Flat-UI-Icons-24.woff b/mopidy_musicbox/static/css/fonts/Flat-UI-Icons-24.woff
similarity index 100%
rename from webclient/css/fonts/Flat-UI-Icons-24.woff
rename to mopidy_musicbox/static/css/fonts/Flat-UI-Icons-24.woff
diff --git a/webclient/css/fonts/FontAwesome.otf b/mopidy_musicbox/static/css/fonts/FontAwesome.otf
similarity index 100%
rename from webclient/css/fonts/FontAwesome.otf
rename to mopidy_musicbox/static/css/fonts/FontAwesome.otf
diff --git a/webclient/css/fonts/fontawesome-webfont.eot b/mopidy_musicbox/static/css/fonts/fontawesome-webfont.eot
old mode 100755
new mode 100644
similarity index 100%
rename from webclient/css/fonts/fontawesome-webfont.eot
rename to mopidy_musicbox/static/css/fonts/fontawesome-webfont.eot
diff --git a/webclient/css/fonts/fontawesome-webfont.svg b/mopidy_musicbox/static/css/fonts/fontawesome-webfont.svg
old mode 100755
new mode 100644
similarity index 100%
rename from webclient/css/fonts/fontawesome-webfont.svg
rename to mopidy_musicbox/static/css/fonts/fontawesome-webfont.svg
diff --git a/webclient/css/fonts/fontawesome-webfont.ttf b/mopidy_musicbox/static/css/fonts/fontawesome-webfont.ttf
old mode 100755
new mode 100644
similarity index 100%
rename from webclient/css/fonts/fontawesome-webfont.ttf
rename to mopidy_musicbox/static/css/fonts/fontawesome-webfont.ttf
diff --git a/webclient/css/fonts/fontawesome-webfont.woff b/mopidy_musicbox/static/css/fonts/fontawesome-webfont.woff
old mode 100755
new mode 100644
similarity index 100%
rename from webclient/css/fonts/fontawesome-webfont.woff
rename to mopidy_musicbox/static/css/fonts/fontawesome-webfont.woff
diff --git a/webclient/css/fonts/lato-black.ttf b/mopidy_musicbox/static/css/fonts/lato-black.ttf
similarity index 100%
rename from webclient/css/fonts/lato-black.ttf
rename to mopidy_musicbox/static/css/fonts/lato-black.ttf
diff --git a/webclient/css/fonts/lato-black.woff b/mopidy_musicbox/static/css/fonts/lato-black.woff
similarity index 100%
rename from webclient/css/fonts/lato-black.woff
rename to mopidy_musicbox/static/css/fonts/lato-black.woff
diff --git a/webclient/css/fonts/lato-bold.ttf b/mopidy_musicbox/static/css/fonts/lato-bold.ttf
similarity index 100%
rename from webclient/css/fonts/lato-bold.ttf
rename to mopidy_musicbox/static/css/fonts/lato-bold.ttf
diff --git a/webclient/css/fonts/lato-bold.woff b/mopidy_musicbox/static/css/fonts/lato-bold.woff
similarity index 100%
rename from webclient/css/fonts/lato-bold.woff
rename to mopidy_musicbox/static/css/fonts/lato-bold.woff
diff --git a/webclient/css/fonts/lato-italic.ttf b/mopidy_musicbox/static/css/fonts/lato-italic.ttf
similarity index 100%
rename from webclient/css/fonts/lato-italic.ttf
rename to mopidy_musicbox/static/css/fonts/lato-italic.ttf
diff --git a/webclient/css/fonts/lato-italic.woff b/mopidy_musicbox/static/css/fonts/lato-italic.woff
similarity index 100%
rename from webclient/css/fonts/lato-italic.woff
rename to mopidy_musicbox/static/css/fonts/lato-italic.woff
diff --git a/webclient/css/fonts/lato-regular.ttf b/mopidy_musicbox/static/css/fonts/lato-regular.ttf
similarity index 100%
rename from webclient/css/fonts/lato-regular.ttf
rename to mopidy_musicbox/static/css/fonts/lato-regular.ttf
diff --git a/webclient/css/fonts/lato-regular.woff b/mopidy_musicbox/static/css/fonts/lato-regular.woff
similarity index 100%
rename from webclient/css/fonts/lato-regular.woff
rename to mopidy_musicbox/static/css/fonts/lato-regular.woff
diff --git a/webclient/css/images/ajax-loader.gif b/mopidy_musicbox/static/css/images/ajax-loader.gif
similarity index 100%
rename from webclient/css/images/ajax-loader.gif
rename to mopidy_musicbox/static/css/images/ajax-loader.gif
diff --git a/webclient/css/images/icons-18-black.png b/mopidy_musicbox/static/css/images/icons-18-black.png
similarity index 100%
rename from webclient/css/images/icons-18-black.png
rename to mopidy_musicbox/static/css/images/icons-18-black.png
diff --git a/webclient/css/images/icons-18-white.png b/mopidy_musicbox/static/css/images/icons-18-white.png
similarity index 100%
rename from webclient/css/images/icons-18-white.png
rename to mopidy_musicbox/static/css/images/icons-18-white.png
diff --git a/webclient/css/images/icons-36-black.png b/mopidy_musicbox/static/css/images/icons-36-black.png
similarity index 100%
rename from webclient/css/images/icons-36-black.png
rename to mopidy_musicbox/static/css/images/icons-36-black.png
diff --git a/webclient/css/images/icons-36-white.png b/mopidy_musicbox/static/css/images/icons-36-white.png
similarity index 100%
rename from webclient/css/images/icons-36-white.png
rename to mopidy_musicbox/static/css/images/icons-36-white.png
diff --git a/webclient/css/iscroll-pull-icon@2x.png b/mopidy_musicbox/static/css/iscroll-pull-icon@2x.png
similarity index 100%
rename from webclient/css/iscroll-pull-icon@2x.png
rename to mopidy_musicbox/static/css/iscroll-pull-icon@2x.png
diff --git a/webclient/css/jquery.mobile-1.3.1.css b/mopidy_musicbox/static/css/jquery.mobile-1.3.1.css
similarity index 100%
rename from webclient/css/jquery.mobile-1.3.1.css
rename to mopidy_musicbox/static/css/jquery.mobile-1.3.1.css
diff --git a/webclient/css/jquery.mobile-1.3.1.min.css b/mopidy_musicbox/static/css/jquery.mobile-1.3.1.min.css
similarity index 100%
rename from webclient/css/jquery.mobile-1.3.1.min.css
rename to mopidy_musicbox/static/css/jquery.mobile-1.3.1.min.css
diff --git a/webclient/css/jquery.mobile-1.4.0-alpha.2.css b/mopidy_musicbox/static/css/jquery.mobile-1.4.0-alpha.2.css
similarity index 100%
rename from webclient/css/jquery.mobile-1.4.0-alpha.2.css
rename to mopidy_musicbox/static/css/jquery.mobile-1.4.0-alpha.2.css
diff --git a/webclient/css/jquery.mobile-1.4.0-alpha.2.min.css b/mopidy_musicbox/static/css/jquery.mobile-1.4.0-alpha.2.min.css
similarity index 100%
rename from webclient/css/jquery.mobile-1.4.0-alpha.2.min.css
rename to mopidy_musicbox/static/css/jquery.mobile-1.4.0-alpha.2.min.css
diff --git a/webclient/css/jquery.mobile.flatui.css b/mopidy_musicbox/static/css/jquery.mobile.flatui.css
similarity index 100%
rename from webclient/css/jquery.mobile.flatui.css
rename to mopidy_musicbox/static/css/jquery.mobile.flatui.css
diff --git a/webclient/css/jquery.mobile.flatui.min.css b/mopidy_musicbox/static/css/jquery.mobile.flatui.min.css
similarity index 100%
rename from webclient/css/jquery.mobile.flatui.min.css
rename to mopidy_musicbox/static/css/jquery.mobile.flatui.min.css
diff --git a/webclient/css/jquery.mobile.iscrollview-pull.css b/mopidy_musicbox/static/css/jquery.mobile.iscrollview-pull.css
similarity index 100%
rename from webclient/css/jquery.mobile.iscrollview-pull.css
rename to mopidy_musicbox/static/css/jquery.mobile.iscrollview-pull.css
diff --git a/webclient/css/jquery.mobile.iscrollview.css b/mopidy_musicbox/static/css/jquery.mobile.iscrollview.css
similarity index 100%
rename from webclient/css/jquery.mobile.iscrollview.css
rename to mopidy_musicbox/static/css/jquery.mobile.iscrollview.css
diff --git a/webclient/css/jquery.mobile.structure-1.3.1.css b/mopidy_musicbox/static/css/jquery.mobile.structure-1.3.1.css
similarity index 100%
rename from webclient/css/jquery.mobile.structure-1.3.1.css
rename to mopidy_musicbox/static/css/jquery.mobile.structure-1.3.1.css
diff --git a/webclient/css/jquery.mobile.structure-1.3.1.min.css b/mopidy_musicbox/static/css/jquery.mobile.structure-1.3.1.min.css
similarity index 100%
rename from webclient/css/jquery.mobile.structure-1.3.1.min.css
rename to mopidy_musicbox/static/css/jquery.mobile.structure-1.3.1.min.css
diff --git a/webclient/css/jquery.mobile.structure-1.4.0-alpha.2.css b/mopidy_musicbox/static/css/jquery.mobile.structure-1.4.0-alpha.2.css
similarity index 100%
rename from webclient/css/jquery.mobile.structure-1.4.0-alpha.2.css
rename to mopidy_musicbox/static/css/jquery.mobile.structure-1.4.0-alpha.2.css
diff --git a/webclient/css/jquery.mobile.structure-1.4.0-alpha.2.min.css b/mopidy_musicbox/static/css/jquery.mobile.structure-1.4.0-alpha.2.min.css
similarity index 100%
rename from webclient/css/jquery.mobile.structure-1.4.0-alpha.2.min.css
rename to mopidy_musicbox/static/css/jquery.mobile.structure-1.4.0-alpha.2.min.css
diff --git a/webclient/css/jquery.mobile.theme-1.3.1.css b/mopidy_musicbox/static/css/jquery.mobile.theme-1.3.1.css
similarity index 100%
rename from webclient/css/jquery.mobile.theme-1.3.1.css
rename to mopidy_musicbox/static/css/jquery.mobile.theme-1.3.1.css
diff --git a/webclient/css/jquery.mobile.theme-1.3.1.min.css b/mopidy_musicbox/static/css/jquery.mobile.theme-1.3.1.min.css
similarity index 100%
rename from webclient/css/jquery.mobile.theme-1.3.1.min.css
rename to mopidy_musicbox/static/css/jquery.mobile.theme-1.3.1.min.css
diff --git a/webclient/css/jquery.mobile.theme-1.4.0-alpha.2.css b/mopidy_musicbox/static/css/jquery.mobile.theme-1.4.0-alpha.2.css
similarity index 100%
rename from webclient/css/jquery.mobile.theme-1.4.0-alpha.2.css
rename to mopidy_musicbox/static/css/jquery.mobile.theme-1.4.0-alpha.2.css
diff --git a/webclient/css/jquery.mobile.theme-1.4.0-alpha.2.min.css b/mopidy_musicbox/static/css/jquery.mobile.theme-1.4.0-alpha.2.min.css
similarity index 100%
rename from webclient/css/jquery.mobile.theme-1.4.0-alpha.2.min.css
rename to mopidy_musicbox/static/css/jquery.mobile.theme-1.4.0-alpha.2.min.css
diff --git a/webclient/css/webclient.css b/mopidy_musicbox/static/css/webclient.css
similarity index 100%
rename from webclient/css/webclient.css
rename to mopidy_musicbox/static/css/webclient.css
diff --git a/webclient/dialog-success.html b/mopidy_musicbox/static/dialog-success.html
similarity index 100%
rename from webclient/dialog-success.html
rename to mopidy_musicbox/static/dialog-success.html
diff --git a/webclient/images/ajax-loader.gif b/mopidy_musicbox/static/images/ajax-loader.gif
similarity index 100%
rename from webclient/images/ajax-loader.gif
rename to mopidy_musicbox/static/images/ajax-loader.gif
diff --git a/webclient/images/default_cover.png b/mopidy_musicbox/static/images/default_cover.png
similarity index 100%
rename from webclient/images/default_cover.png
rename to mopidy_musicbox/static/images/default_cover.png
diff --git a/webclient/images/empty.png b/mopidy_musicbox/static/images/empty.png
similarity index 100%
rename from webclient/images/empty.png
rename to mopidy_musicbox/static/images/empty.png
diff --git a/webclient/images/icons-18-black.png b/mopidy_musicbox/static/images/icons-18-black.png
similarity index 100%
rename from webclient/images/icons-18-black.png
rename to mopidy_musicbox/static/images/icons-18-black.png
diff --git a/webclient/images/icons-18-white.png b/mopidy_musicbox/static/images/icons-18-white.png
similarity index 100%
rename from webclient/images/icons-18-white.png
rename to mopidy_musicbox/static/images/icons-18-white.png
diff --git a/webclient/images/icons-36-black.png b/mopidy_musicbox/static/images/icons-36-black.png
similarity index 100%
rename from webclient/images/icons-36-black.png
rename to mopidy_musicbox/static/images/icons-36-black.png
diff --git a/webclient/images/icons-36-white.png b/mopidy_musicbox/static/images/icons-36-white.png
similarity index 100%
rename from webclient/images/icons-36-white.png
rename to mopidy_musicbox/static/images/icons-36-white.png
diff --git a/webclient/images/icons/AUTHORS b/mopidy_musicbox/static/images/icons/AUTHORS
similarity index 100%
rename from webclient/images/icons/AUTHORS
rename to mopidy_musicbox/static/images/icons/AUTHORS
diff --git a/webclient/images/icons/LICENSE b/mopidy_musicbox/static/images/icons/LICENSE
similarity index 100%
rename from webclient/images/icons/LICENSE
rename to mopidy_musicbox/static/images/icons/LICENSE
diff --git a/webclient/images/icons/cd_32x32.png b/mopidy_musicbox/static/images/icons/cd_32x32.png
similarity index 100%
rename from webclient/images/icons/cd_32x32.png
rename to mopidy_musicbox/static/images/icons/cd_32x32.png
diff --git a/webclient/images/icons/musicbox114.png b/mopidy_musicbox/static/images/icons/musicbox114.png
similarity index 100%
rename from webclient/images/icons/musicbox114.png
rename to mopidy_musicbox/static/images/icons/musicbox114.png
diff --git a/webclient/images/icons/musicbox32.gif b/mopidy_musicbox/static/images/icons/musicbox32.gif
similarity index 100%
rename from webclient/images/icons/musicbox32.gif
rename to mopidy_musicbox/static/images/icons/musicbox32.gif
diff --git a/webclient/images/icons/musicbox32.png b/mopidy_musicbox/static/images/icons/musicbox32.png
similarity index 100%
rename from webclient/images/icons/musicbox32.png
rename to mopidy_musicbox/static/images/icons/musicbox32.png
diff --git a/webclient/images/icons/musicbox57.png b/mopidy_musicbox/static/images/icons/musicbox57.png
similarity index 100%
rename from webclient/images/icons/musicbox57.png
rename to mopidy_musicbox/static/images/icons/musicbox57.png
diff --git a/webclient/images/icons/musicbox72.png b/mopidy_musicbox/static/images/icons/musicbox72.png
similarity index 100%
rename from webclient/images/icons/musicbox72.png
rename to mopidy_musicbox/static/images/icons/musicbox72.png
diff --git a/webclient/images/icons/pause_32x32.png b/mopidy_musicbox/static/images/icons/pause_32x32.png
similarity index 100%
rename from webclient/images/icons/pause_32x32.png
rename to mopidy_musicbox/static/images/icons/pause_32x32.png
diff --git a/webclient/images/icons/play_alt_12x12.png b/mopidy_musicbox/static/images/icons/play_alt_12x12.png
similarity index 100%
rename from webclient/images/icons/play_alt_12x12.png
rename to mopidy_musicbox/static/images/icons/play_alt_12x12.png
diff --git a/webclient/images/icons/play_alt_16x16.png b/mopidy_musicbox/static/images/icons/play_alt_16x16.png
similarity index 100%
rename from webclient/images/icons/play_alt_16x16.png
rename to mopidy_musicbox/static/images/icons/play_alt_16x16.png
diff --git a/webclient/images/icons/play_alt_32x32.png b/mopidy_musicbox/static/images/icons/play_alt_32x32.png
similarity index 100%
rename from webclient/images/icons/play_alt_32x32.png
rename to mopidy_musicbox/static/images/icons/play_alt_32x32.png
diff --git a/webclient/images/loader.gif b/mopidy_musicbox/static/images/loader.gif
similarity index 100%
rename from webclient/images/loader.gif
rename to mopidy_musicbox/static/images/loader.gif
diff --git a/webclient/images/start.jpg b/mopidy_musicbox/static/images/start.jpg
similarity index 100%
rename from webclient/images/start.jpg
rename to mopidy_musicbox/static/images/start.jpg
diff --git a/webclient/images/startup.png b/mopidy_musicbox/static/images/startup.png
similarity index 100%
rename from webclient/images/startup.png
rename to mopidy_musicbox/static/images/startup.png
diff --git a/webclient/images/user_24x32.png b/mopidy_musicbox/static/images/user_24x32.png
similarity index 100%
rename from webclient/images/user_24x32.png
rename to mopidy_musicbox/static/images/user_24x32.png
diff --git a/webclient/index.html b/mopidy_musicbox/static/index.html
similarity index 100%
rename from webclient/index.html
rename to mopidy_musicbox/static/index.html
diff --git a/webclient/index2.html b/mopidy_musicbox/static/index2.html
similarity index 100%
rename from webclient/index2.html
rename to mopidy_musicbox/static/index2.html
diff --git a/webclient/js/add2home.js b/mopidy_musicbox/static/js/add2home.js
similarity index 100%
rename from webclient/js/add2home.js
rename to mopidy_musicbox/static/js/add2home.js
diff --git a/webclient/js/bk/jquery-1.10.2.nonmin.js b/mopidy_musicbox/static/js/bk/jquery-1.10.2.nonmin.js
similarity index 100%
rename from webclient/js/bk/jquery-1.10.2.nonmin.js
rename to mopidy_musicbox/static/js/bk/jquery-1.10.2.nonmin.js
diff --git a/webclient/js/bk/jquery.mobile-1.3.2.js b/mopidy_musicbox/static/js/bk/jquery.mobile-1.3.2.js
similarity index 100%
rename from webclient/js/bk/jquery.mobile-1.3.2.js
rename to mopidy_musicbox/static/js/bk/jquery.mobile-1.3.2.js
diff --git a/webclient/js/bk/jquery.mobile-1.3.2.map b/mopidy_musicbox/static/js/bk/jquery.mobile-1.3.2.map
similarity index 100%
rename from webclient/js/bk/jquery.mobile-1.3.2.map
rename to mopidy_musicbox/static/js/bk/jquery.mobile-1.3.2.map
diff --git a/webclient/js/controls.js b/mopidy_musicbox/static/js/controls.js
similarity index 100%
rename from webclient/js/controls.js
rename to mopidy_musicbox/static/js/controls.js
diff --git a/webclient/js/fastclick.js b/mopidy_musicbox/static/js/fastclick.js
similarity index 100%
rename from webclient/js/fastclick.js
rename to mopidy_musicbox/static/js/fastclick.js
diff --git a/webclient/js/functionsvars.js b/mopidy_musicbox/static/js/functionsvars.js
similarity index 100%
rename from webclient/js/functionsvars.js
rename to mopidy_musicbox/static/js/functionsvars.js
diff --git a/webclient/js/gui.js b/mopidy_musicbox/static/js/gui.js
similarity index 100%
rename from webclient/js/gui.js
rename to mopidy_musicbox/static/js/gui.js
diff --git a/webclient/js/iscroll-lite.js b/mopidy_musicbox/static/js/iscroll-lite.js
similarity index 100%
rename from webclient/js/iscroll-lite.js
rename to mopidy_musicbox/static/js/iscroll-lite.js
diff --git a/webclient/js/iscroll.js b/mopidy_musicbox/static/js/iscroll.js
similarity index 100%
rename from webclient/js/iscroll.js
rename to mopidy_musicbox/static/js/iscroll.js
diff --git a/webclient/js/jquery-1.10.2.min.js b/mopidy_musicbox/static/js/jquery-1.10.2.min.js
similarity index 100%
rename from webclient/js/jquery-1.10.2.min.js
rename to mopidy_musicbox/static/js/jquery-1.10.2.min.js
diff --git a/webclient/js/jquery-1.10.2.min.map b/mopidy_musicbox/static/js/jquery-1.10.2.min.map
similarity index 100%
rename from webclient/js/jquery-1.10.2.min.map
rename to mopidy_musicbox/static/js/jquery-1.10.2.min.map
diff --git a/webclient/js/jquery.ba-hashchange.min.js b/mopidy_musicbox/static/js/jquery.ba-hashchange.min.js
similarity index 100%
rename from webclient/js/jquery.ba-hashchange.min.js
rename to mopidy_musicbox/static/js/jquery.ba-hashchange.min.js
diff --git a/webclient/js/jquery.cookie.js b/mopidy_musicbox/static/js/jquery.cookie.js
similarity index 100%
rename from webclient/js/jquery.cookie.js
rename to mopidy_musicbox/static/js/jquery.cookie.js
diff --git a/webclient/js/jquery.mobile-1.3.2.min.js b/mopidy_musicbox/static/js/jquery.mobile-1.3.2.min.js
similarity index 100%
rename from webclient/js/jquery.mobile-1.3.2.min.js
rename to mopidy_musicbox/static/js/jquery.mobile-1.3.2.min.js
diff --git a/webclient/js/jquery.mobile-1.3.2.min.map b/mopidy_musicbox/static/js/jquery.mobile-1.3.2.min.map
similarity index 100%
rename from webclient/js/jquery.mobile-1.3.2.min.map
rename to mopidy_musicbox/static/js/jquery.mobile-1.3.2.min.map
diff --git a/webclient/js/jquery.mobile-1.4.0-alpha.2.js b/mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.js
similarity index 100%
rename from webclient/js/jquery.mobile-1.4.0-alpha.2.js
rename to mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.js
diff --git a/webclient/js/jquery.mobile-1.4.0-alpha.2.min.js b/mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.min.js
similarity index 100%
rename from webclient/js/jquery.mobile-1.4.0-alpha.2.min.js
rename to mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.min.js
diff --git a/webclient/js/jquery.mobile-1.4.0-alpha.2.min.map b/mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.min.map
similarity index 100%
rename from webclient/js/jquery.mobile-1.4.0-alpha.2.min.map
rename to mopidy_musicbox/static/js/jquery.mobile-1.4.0-alpha.2.min.map
diff --git a/webclient/js/jquery.mobile.iscrollview-closure-min.js b/mopidy_musicbox/static/js/jquery.mobile.iscrollview-closure-min.js
similarity index 100%
rename from webclient/js/jquery.mobile.iscrollview-closure-min.js
rename to mopidy_musicbox/static/js/jquery.mobile.iscrollview-closure-min.js
diff --git a/webclient/js/jquery.mobile.iscrollview-yui-min.js b/mopidy_musicbox/static/js/jquery.mobile.iscrollview-yui-min.js
similarity index 100%
rename from webclient/js/jquery.mobile.iscrollview-yui-min.js
rename to mopidy_musicbox/static/js/jquery.mobile.iscrollview-yui-min.js
diff --git a/webclient/js/jquery.mobile.iscrollview.js b/mopidy_musicbox/static/js/jquery.mobile.iscrollview.js
similarity index 100%
rename from webclient/js/jquery.mobile.iscrollview.js
rename to mopidy_musicbox/static/js/jquery.mobile.iscrollview.js
diff --git a/webclient/js/jquery.touchwipe.min.js b/mopidy_musicbox/static/js/jquery.touchwipe.min.js
similarity index 100%
rename from webclient/js/jquery.touchwipe.min.js
rename to mopidy_musicbox/static/js/jquery.touchwipe.min.js
diff --git a/webclient/js/jquery.truncate.min.js b/mopidy_musicbox/static/js/jquery.truncate.min.js
similarity index 100%
rename from webclient/js/jquery.truncate.min.js
rename to mopidy_musicbox/static/js/jquery.truncate.min.js
diff --git a/webclient/js/lastfm.api.cache.js b/mopidy_musicbox/static/js/lastfm.api.cache.js
similarity index 100%
rename from webclient/js/lastfm.api.cache.js
rename to mopidy_musicbox/static/js/lastfm.api.cache.js
diff --git a/webclient/js/lastfm.api.js b/mopidy_musicbox/static/js/lastfm.api.js
similarity index 100%
rename from webclient/js/lastfm.api.js
rename to mopidy_musicbox/static/js/lastfm.api.js
diff --git a/webclient/js/lastfm.api.md5.js b/mopidy_musicbox/static/js/lastfm.api.md5.js
similarity index 100%
rename from webclient/js/lastfm.api.md5.js
rename to mopidy_musicbox/static/js/lastfm.api.md5.js
diff --git a/webclient/js/lastfm.js b/mopidy_musicbox/static/js/lastfm.js
similarity index 100%
rename from webclient/js/lastfm.js
rename to mopidy_musicbox/static/js/lastfm.js
diff --git a/webclient/js/library.js b/mopidy_musicbox/static/js/library.js
similarity index 100%
rename from webclient/js/library.js
rename to mopidy_musicbox/static/js/library.js
diff --git a/webclient/js/process_ws.js b/mopidy_musicbox/static/js/process_ws.js
similarity index 100%
rename from webclient/js/process_ws.js
rename to mopidy_musicbox/static/js/process_ws.js
diff --git a/webclient/js/radiostations.js b/mopidy_musicbox/static/js/radiostations.js
old mode 100755
new mode 100644
similarity index 100%
rename from webclient/js/radiostations.js
rename to mopidy_musicbox/static/js/radiostations.js
diff --git a/webclient/mb.manifest b/mopidy_musicbox/static/mb.manifest
similarity index 100%
rename from webclient/mb.manifest
rename to mopidy_musicbox/static/mb.manifest
diff --git a/webclient/settings/favicon.png b/mopidy_musicbox/static/settings/favicon.png
similarity index 100%
rename from webclient/settings/favicon.png
rename to mopidy_musicbox/static/settings/favicon.png
diff --git a/webclient/settings/index.html b/mopidy_musicbox/static/settings/index.html
similarity index 100%
rename from webclient/settings/index.html
rename to mopidy_musicbox/static/settings/index.html
diff --git a/webclient/settings/mopidy.css b/mopidy_musicbox/static/settings/mopidy.css
similarity index 100%
rename from webclient/settings/mopidy.css
rename to mopidy_musicbox/static/settings/mopidy.css
diff --git a/webclient/system.html b/mopidy_musicbox/static/system.html
similarity index 100%
rename from webclient/system.html
rename to mopidy_musicbox/static/system.html
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..5e40900
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[wheel]
+universal = 1
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..97532d3
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,43 @@
+from __future__ import unicode_literals
+
+import re
+
+from setuptools import find_packages, setup
+
+
+def get_version(filename):
+ content = open(filename).read()
+ metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
+ return metadata['version']
+
+
+setup(
+ name='Mopidy-MusicBox-Webclient',
+ version=get_version('mopidy_musicbox/__init__.py'),
+ url='https://github.com/woutervanwijk/mopidy-musicbox-webclient',
+ license='GNU General Public License v3 (GPLv3)',
+ author='Wouter van Wijk',
+ author_email='woutervanwijk@gmail.com',
+ description='Mopidy MusicBox web extension',
+ long_description=open('README.rst').read(),
+ packages=find_packages(),
+ zip_safe=False,
+ include_package_data=True,
+ install_requires=[
+ 'setuptools',
+ 'Mopidy >= 0.19',
+ ],
+ entry_points={
+ 'mopidy.ext': [
+ 'musicbox = mopidy_musicbox:MusicBoxExtension',
+ ],
+ },
+ classifiers=[
+ 'Environment :: No Input/Output (Daemon)',
+ 'Intended Audience :: End Users/Desktop',
+ 'License :: OSI Approved :: Apache Software License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 2',
+ 'Topic :: Multimedia :: Sound/Audio :: Players',
+ ],
+)