diff --git a/MANIFEST.in b/MANIFEST.in index 6492ed7..a861f76 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,3 @@ -include cgi-bin/* include config.sample include README.md recursive-include supysonic/schema * diff --git a/bin/supysonic-cli b/bin/supysonic-cli deleted file mode 100755 index 4b2bd50..0000000 --- a/bin/supysonic-cli +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python - -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2017 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -import warnings -from supysonic.cli import main - -if __name__ == "__main__": - warnings.warn( - "You're using an old version of the `supysonic-cli` script. " - "It should have been replaced on install." - ) - main() diff --git a/bin/supysonic-watcher b/bin/supysonic-watcher deleted file mode 100755 index 40e2dcc..0000000 --- a/bin/supysonic-watcher +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python - -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2014-2019 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -import warnings -from supysonic.daemon import main - -if __name__ == "__main__": - warnings.warn( - "You're using an old version of the `supysonic-watcher` script.\nNo worries " - "though, it will still work (for some time), but you should call `supysonic-daemon` instead." - ) - main() diff --git a/cgi-bin/server.py b/cgi-bin/server.py deleted file mode 100644 index e0985bb..0000000 --- a/cgi-bin/server.py +++ /dev/null @@ -1,20 +0,0 @@ -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2013 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -from supysonic.web import create_application - -app = create_application() - -if __name__ == "__main__": - if app: - import sys - - app.run( - host=sys.argv[1] if len(sys.argv) > 1 else None, - port=int(sys.argv[2]) if len(sys.argv) > 2 else 5000, - debug=True, - ) diff --git a/cgi-bin/supysonic.cgi b/cgi-bin/supysonic.cgi deleted file mode 100755 index b44b1e2..0000000 --- a/cgi-bin/supysonic.cgi +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python -# -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2013 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -from wsgiref.handlers import CGIHandler -from supysonic.web import create_application - -app = create_application() -if app: - CGIHandler().run(app) diff --git a/cgi-bin/supysonic.fcgi b/cgi-bin/supysonic.fcgi deleted file mode 100755 index 0241a6a..0000000 --- a/cgi-bin/supysonic.fcgi +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env python -# -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2013 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -from flup.server.fcgi import WSGIServer -from supysonic.web import create_application - -app = create_application() -if app: - WSGIServer(app, bindAddress = "/path/to/fcgi.sock").run() diff --git a/cgi-bin/supysonic.wsgi b/cgi-bin/supysonic.wsgi deleted file mode 100644 index f25309c..0000000 --- a/cgi-bin/supysonic.wsgi +++ /dev/null @@ -1,9 +0,0 @@ -# This file is part of Supysonic. -# Supysonic is a Python implementation of the Subsonic server API. -# -# Copyright (C) 2013 Alban 'spl0k' Féron -# -# Distributed under terms of the GNU AGPLv3 license. - -from supysonic.web import create_application -application = create_application() diff --git a/supysonic-daemon.service b/supysonic-daemon.service deleted file mode 100644 index a07b427..0000000 --- a/supysonic-daemon.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Supysonic Daemon - -[Service] -User=supysonic -Group=supysonic -WorkingDirectory=/home/supysonic -ExecStart=/usr/bin/env python -m supysonic.daemon - -[Install] -WantedBy=multi-user.target