1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Improved setup script

This commit is contained in:
Óscar García Amor 2017-08-07 11:04:00 +02:00
parent 47237fd8e7
commit 523903cac5
3 changed files with 58 additions and 52 deletions

View File

@ -1,3 +1,5 @@
include cgi-bin/* include cgi-bin/*
include config.sample include config.sample
include README.md include README.md
recursive-include supysonic/templates *
recursive-include supysonic/static *

View File

@ -1,36 +1,37 @@
#!/usr/bin/python #!/usr/bin/env python
# encoding: utf-8 # -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2013-2017 Alban 'spl0k' Féron
# 2017 Óscar García Amor
#
# Distributed under terms of the GNU AGPLv3 license.
from distutils.core import setup import supysonic as project
setup(name='supysonic', from setuptools import setup
description='Python implementation of the Subsonic server API.', from setuptools import find_packages
keywords='subsonic music', from pip.req import parse_requirements
version='0.1', from pip.download import PipSession
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) setup(
* streaming of various audio file formats name=project.NAME,
* transcoding version=project.VERSION,
* user or random playlists description=project.DESCRIPTION,
* cover arts (cover.jpg files in the same folder as music files) keywords=project.KEYWORDS,
* starred tracks/albums and ratings long_description=project.LONG_DESCRIPTION,
* Last.FM scrobbling author=project.AUTHOR_NAME,
""", author_email=project.AUTHOR_EMAIL,
packages=['supysonic', 'supysonic.api', 'supysonic.frontend', url=project.URL,
'supysonic.managers'], license=project.LICENSE,
scripts=['bin/supysonic-cli', 'bin/supysonic-watcher'], packages=find_packages(),
package_data={'supysonic': [ install_requires=[str(x.req) for x in
'templates/*.html', parse_requirements('requirements.txt', session=PipSession())],
'static/css/*', scripts=['bin/supysonic-cli', 'bin/supysonic-watcher'],
'static/fonts/*', zip_safe=False,
'static/js/*' include_package_data=True
]} )
)

View File

@ -1,25 +1,28 @@
# coding: utf-8 # -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# This file is part of Supysonic. # This file is part of Supysonic.
#
# Supysonic is a Python implementation of the Subsonic server API. # Supysonic is a Python implementation of the Subsonic server API.
# Copyright (C) 2013-2017 Alban 'spl0k' Féron
# #
# This program is free software: you can redistribute it and/or modify # Copyright (C) 2013-2017 Alban 'spl0k' Féron
# it under the terms of the GNU Affero General Public License as published by # 2017 Óscar García Amor
# 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, # Distributed under terms of the GNU AGPLv3 license.
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import mimetypes
def get_mime(ext):
return mimetypes.guess_type('dummy.' + ext, False)[0] or config.get('mimetypes', ext) or 'application/octet-stream'
NAME = 'supysonic'
VERSION = '0.2'
DESCRIPTION = 'Python implementation of the Subsonic server API.'
KEYWORDS = 'subsonic music api'
AUTHOR_NAME = 'Alban Féron'
AUTHOR_EMAIL = 'alban.feron@gmail.com'
URL = 'https://github.com/spl0k/supysonic'
LICENSE = 'GNU AGPLv3'
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'''