larigira/setup.py

86 lines
2.9 KiB
Python
Raw Normal View History

2014-10-29 00:39:43 +01:00
import sys
import os
2014-10-29 00:39:43 +01:00
from setuptools import setup
from setuptools.command.test import test as TestCommand
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as buf:
return buf.read()
2014-10-29 00:39:43 +01:00
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(name='larigira',
2014-12-02 11:26:08 +01:00
version='0.1.1',
2014-10-29 00:39:43 +01:00
description='A radio automation based on MPD',
long_description=read('README.rst'),
2014-10-29 00:39:43 +01:00
author='boyska',
author_email='piuttosto@logorroici.org',
license='AGPL',
2015-02-19 20:29:54 +01:00
packages=['larigira', 'larigira.dbadmin'],
2014-10-29 00:39:43 +01:00
install_requires=[
'pyxdg',
2014-10-29 00:39:43 +01:00
'gevent',
'flask',
2015-02-01 19:23:33 +01:00
'flask-bootstrap',
2014-12-02 11:26:08 +01:00
'python-mpd2',
'wtforms',
'Flask-WTF',
'tinydb'
2014-10-29 00:39:43 +01:00
],
tests_require=['pytest', 'pytest-timeout'],
2014-10-29 00:39:43 +01:00
cmdclass={'test': PyTest},
zip_safe=False,
2015-02-19 20:29:54 +01:00
include_package_data=True,
2014-10-29 00:39:43 +01:00
entry_points={
2015-02-01 00:08:13 +01:00
'console_scripts': ['larigira=larigira.larigira:main',
'larigira-timegen=larigira.timegen:main',
'larigira-audiogen=larigira.audiogen:main',
'larigira-dbmanage=larigira.event_manage:main'],
'larigira.audiogenerators': [
'mpd = larigira.audiogen_mpdrandom:generate_by_artist',
'static = larigira.audiogen_static:generate',
2016-07-18 12:27:21 +02:00
'randomdir = larigira.audiogen_randomdir:generate',
'script = larigira.audiogen_script:generate',
],
'larigira.timegenerators': [
'frequency = larigira.timegen_every:FrequencyAlarm',
'single = larigira.timegen_every:SingleAlarm',
],
'larigira.timeform_create': [
'single = larigira.timeform_single:SingleAlarmForm',
2016-07-18 14:38:03 +02:00
'frequency = larigira.timeform_frequency:FrequencyAlarmForm',
],
'larigira.timeform_receive': [
'single = larigira.timeform_single:singlealarm_receive',
2016-07-18 14:38:03 +02:00
'frequency = larigira.timeform_frequency:frequencyalarm_receive',
],
2015-02-18 18:15:53 +01:00
'larigira.audioform_create': [
'static = larigira.audioform_static:StaticAudioForm',
2016-07-18 12:27:21 +02:00
'script = larigira.audioform_script:ScriptAudioForm',
2015-02-18 18:15:53 +01:00
],
'larigira.audioform_receive': [
'static = larigira.audioform_static:staticaudio_receive',
2016-07-18 12:27:21 +02:00
'script = larigira.audioform_script:scriptaudio_receive',
2015-02-18 18:15:53 +01:00
],
2014-10-29 00:39:43 +01:00
}
)