larigira/setup.py

96 lines
3.4 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',
2017-01-09 17:04:56 +01:00
version='1.0.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',
2015-02-01 19:23:33 +01:00
'flask-bootstrap',
2014-12-02 11:26:08 +01:00
'python-mpd2',
'wtforms',
'Flask-WTF',
'flask==0.11',
'pytimeparse',
'tinydb'
2014-10-29 00:39:43 +01:00
],
2016-12-11 13:04:39 +01:00
tests_require=['pytest-timeout==1.0', 'py>=1.4.29', 'pytest==3.0', ],
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',
2016-09-09 13:38:46 +02:00
'mostrecent = larigira.audiogen_mostrecent:generate',
2016-07-18 12:27:21 +02:00
'script = larigira.audiogen_script:generate',
],
'larigira.timegenerators': [
'frequency = larigira.timegen_every:FrequencyAlarm',
'single = larigira.timegen_every:SingleAlarm',
],
'larigira.timeform_create': [
'single = larigira.timeform_base:SingleAlarmForm',
'frequency = larigira.timeform_base:FrequencyAlarmForm',
],
'larigira.timeform_receive': [
'single = larigira.timeform_base:singlealarm_receive',
'frequency = larigira.timeform_base: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',
'randomdir = larigira.audioform_randomdir:Form',
2016-09-09 13:38:46 +02:00
'mostrecent = larigira.audioform_mostrecent:AudioForm',
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',
'randomdir = larigira.audioform_randomdir:receive',
2016-09-09 13:38:46 +02:00
'mostrecent = larigira.audioform_mostrecent:audio_receive',
2015-02-18 18:15:53 +01:00
],
},
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
]
2014-10-29 00:39:43 +01:00
)