mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
Add a setup.py file.
This commit is contained in:
parent
2eb65c33f3
commit
a254d17801
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,6 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
|
*~
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
MANIFEST
|
||||||
|
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include README.md
|
31
setup.py
Executable file
31
setup.py
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
setup(name='supysonic',
|
||||||
|
description='Python implementation of the Subsonic server API.',
|
||||||
|
keywords='subsonic music',
|
||||||
|
version='0.1',
|
||||||
|
url='https://github.com/spl0k/supysonic',
|
||||||
|
license='AGPLv3',
|
||||||
|
author='Alban Féron',
|
||||||
|
author_email='alban.feron@gmail.com',
|
||||||
|
long_description="""
|
||||||
|
Supysonic is a Python implementation of the Subsonic server API.
|
||||||
|
|
||||||
|
Current supported features are:
|
||||||
|
|
||||||
|
* browsing (by folders or tags)
|
||||||
|
* streaming of various audio file formats
|
||||||
|
* transcoding
|
||||||
|
* user or random playlists
|
||||||
|
* cover arts (cover.jpg files in the same folder as music files)
|
||||||
|
* starred tracks/albums and ratings
|
||||||
|
* Last.FM scrobbling
|
||||||
|
""",
|
||||||
|
packages=['supysonic', 'supysonic.api', 'supysonic.frontend',
|
||||||
|
'supysonic.managers'],
|
||||||
|
scripts=['bin/supysonic-cli'],
|
||||||
|
package_data={'supysonic': ['templates/*.html']}
|
||||||
|
)
|
@ -21,7 +21,7 @@
|
|||||||
import os.path
|
import os.path
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
|
||||||
from supysonic import config, db
|
from supysonic import config
|
||||||
|
|
||||||
def teardown(exception):
|
def teardown(exception):
|
||||||
db.session.remove()
|
db.session.remove()
|
||||||
@ -35,6 +35,7 @@ def create_application():
|
|||||||
if not os.path.exists(config.get('base', 'cache_dir')):
|
if not os.path.exists(config.get('base', 'cache_dir')):
|
||||||
os.makedirs(config.get('base', 'cache_dir'))
|
os.makedirs(config.get('base', 'cache_dir'))
|
||||||
|
|
||||||
|
from supysonic import db
|
||||||
db.init_db()
|
db.init_db()
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user