Hexxeh/spotify-websocket-api — pull request #3 by VegarS (2012-12-21 16:13:41+00:00)
Title: Restructuring to distribute as python package and .deb

Hi

I've restructured the repository a bit, and converted it into a python package. I've also added a setup.py so that this awesome API can be converted into a python package (see http://docs.python.org/2/distutils/index.html) and be distributed. With a setup.py, it's also relatively easy to build a .deb package, so I added the debian/ directory for that as well.

To build python package: run ./setup.py bdist --help-formats and select the appropriate --format switch.
To build debian package (requires dpkg-dev to be installed): run dpkg-buildpackage -b

This also allowed me to get rid of all of the sys.path.append("proto") calls.

I took the liberty to define the current version as 0.2. If you disagree, the version number must be updated in setup.py, debian/changelog and debian/control. I've also assumed that this code is GPLv3 in debian/copyright