--- /dev/null
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+# Script starts here
+from sima.launch import main
+main()
+
+# VIM MODLINE
+# vim: ai ts=4 sw=4 sts=4 expandtab
+
import glob
-from setuptools import setup
-#from distutils.core import setup
+from setuptools import setup, find_packages # >= 2.0.2
from os import listdir
from os.path import isfile, isdir
-from sima.core import __version__ as VERSION
-
-DESCRIPTION = """
-sima is a Python application meant to feed your MPD playlist with tracks
-from artists similar to your currently playing track, provided that these
-artists are found in MPD library. Similar artists are fetched from last.fm.
-
-sima can queue track, top track or whole album for similar artists.
-
-This client allows you to never run out of music when your playlist
-queue is getting short.
-"""
+from sima.info import __version__ as VERSION, __author__ as AUTHOR
+from sima.info import __doc__ as DESCRIPTION, __email__ as EMAIL
data_files = [
#('share/man/man1', ['data/mpd-sima.1', 'data/simadb_cli.1',]),
download_url='http://codingteam.net/project/sima/download',
url='http://codingteam.net/project/sima',
description='Automagically add titles to MPD playlist',
- author='Jack Kaliko',
- author_email='Jack Kaliko <kaliko@azylum.org>',
+ author=AUTHOR,
+ author_email= EMAIL,
license='GPLv3',
keywords='MPD',
long_description=DESCRIPTION,
classifiers=classifiers,
- install_requires=['distribute', 'python-musicpd'],
- packages=['sima','sima.lib', 'sima.utils',
- 'sima.plugins.core',
- 'sima.plugins.internal',
- 'sima.plugins.contrib'],
+ install_requires=['python-musicpd'],
+ packages=find_packages(),
include_package_data=True,
data_files=data_files,
- scripts=['launch'],
+ #scripts=['mpd-sima'],
entry_points={
- 'console_scripts': ['sima = launch:mainc',]
+ 'console_scripts': ['mpd-sima = sima.launch:main',]
},
)
# -*- coding: utf-8 -*-
-
# VIM MODLINE
# vim: ai ts=4 sw=4 sts=4 expandtab
-
"""Core Object dealing with plugins and player client
"""
-__version__ = '0.12.0pr1'
-__author__ = 'kaliko jack'
-__url__ = 'git://git.kaliko.me/sima.git'
-
import sys
import time
--- /dev/null
+# -*- coding: utf-8 -*-
+"""
+sima is a Python application meant to feed your MPD playlist with tracks
+from artists similar to your currently playing track, provided that these
+artists are found in MPD library. Similar artists are fetched from last.fm.
+
+sima can queue track, top track or whole album for similar artists.
+
+This client allows you to never run out of music when your playlist
+queue is getting short.
+"""
+
+
+__version__ = '0.12.0pr2'
+__author__ = 'kaliko jack'
+__email__ = 'kaliko@azylum.org'
+__url__ = 'git://git.kaliko.me/sima.git'
+
+
+# VIM MODLINE
+# vim: ai ts=4 sw=4 sts=4 expandtab
+
-#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Sima
"""
##
# local import
-from sima import core
-from sima.lib.logger import set_logger
-from sima.lib.simadb import SimaDB
-from sima.utils.config import ConfMan
-from sima.utils.startopt import StartOpt
-from sima.utils.utils import exception_log, SigHup
+from . import core, info
+from .lib.logger import set_logger
+from .lib.simadb import SimaDB
+from .utils.config import ConfMan
+from .utils.startopt import StartOpt
+from .utils.utils import exception_log, SigHup
# core plugins
-from sima.plugins.core.history import History
-from sima.plugins.core.mpdoptions import MpdOptions
+from .plugins.core.history import History
+from .plugins.core.mpdoptions import MpdOptions
##
logger.info('Daemonize process...')
sima.start()
- logger.error('starting')
try:
sima.foreground()
except KeyboardInterrupt:
# Script starts here
def main():
- info = dict({'version': core.__version__,
+ nfo = dict({'version': info.__version__,
'prog': 'sima'})
# StartOpt gathers options from command line call (in StartOpt().options)
- sopt = StartOpt(info)
+ sopt = StartOpt(nfo)
run(sopt)