2014-10-29 00:39:43 +01:00
|
|
|
import sys
|
2014-11-03 00:26:32 +01:00
|
|
|
import os
|
2014-10-29 00:39:43 +01:00
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
|
|
|
|
|
2014-11-03 00:26:32 +01:00
|
|
|
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-03-07 11:44:53 +01:00
|
|
|
version='1.1.0',
|
2014-10-29 00:39:43 +01:00
|
|
|
description='A radio automation based on MPD',
|
2014-11-03 00:26:32 +01:00
|
|
|
long_description=read('README.rst'),
|
2014-10-29 00:39:43 +01:00
|
|
|
author='boyska',
|
|
|
|
author_email='piuttosto@logorroici.org',
|
|
|
|
license='AGPL',
|
2017-08-08 01:17:39 +02:00
|
|
|
packages=['larigira', 'larigira.dbadmin', 'larigira.filters'],
|
2014-10-29 00:39:43 +01:00
|
|
|
install_requires=[
|
2015-05-22 16:27:29 +02:00
|
|
|
'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',
|
2015-02-01 21:47:12 +01:00
|
|
|
'wtforms',
|
|
|
|
'Flask-WTF',
|
2016-09-09 18:05:26 +02:00
|
|
|
'flask==0.11',
|
2016-09-09 10:24:28 +02:00
|
|
|
'pytimeparse',
|
2015-01-24 00:33:09 +01:00
|
|
|
'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', ],
|
2017-08-08 01:18:21 +02:00
|
|
|
python_requires='>=3.5',
|
2017-08-08 01:17:39 +02:00
|
|
|
extras_require={
|
|
|
|
'percentwait': ['mutagen'],
|
|
|
|
},
|
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',
|
2014-11-03 02:15:22 +01:00
|
|
|
'larigira-timegen=larigira.timegen:main',
|
2015-01-24 02:52:32 +01:00
|
|
|
'larigira-audiogen=larigira.audiogen:main',
|
|
|
|
'larigira-dbmanage=larigira.event_manage:main'],
|
2014-11-02 02:09:58 +01:00
|
|
|
'larigira.audiogenerators': [
|
2014-11-03 00:26:32 +01:00
|
|
|
'mpd = larigira.audiogen_mpdrandom:generate_by_artist',
|
2014-11-02 02:09:58 +01:00
|
|
|
'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',
|
2014-11-03 02:15:22 +01:00
|
|
|
],
|
|
|
|
'larigira.timegenerators': [
|
|
|
|
'frequency = larigira.timegen_every:FrequencyAlarm',
|
|
|
|
'single = larigira.timegen_every:SingleAlarm',
|
2015-02-01 21:47:12 +01:00
|
|
|
],
|
|
|
|
'larigira.timeform_create': [
|
2017-01-03 12:45:49 +01:00
|
|
|
'single = larigira.timeform_base:SingleAlarmForm',
|
|
|
|
'frequency = larigira.timeform_base:FrequencyAlarmForm',
|
2015-02-01 21:47:12 +01:00
|
|
|
],
|
|
|
|
'larigira.timeform_receive': [
|
2017-01-03 12:45:49 +01:00
|
|
|
'single = larigira.timeform_base:singlealarm_receive',
|
|
|
|
'frequency = larigira.timeform_base:frequencyalarm_receive',
|
2015-02-01 21:47:12 +01:00
|
|
|
],
|
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',
|
2016-09-15 09:44:44 +02:00
|
|
|
'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',
|
2016-09-15 09:44:44 +02:00
|
|
|
'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
|
|
|
],
|
2017-08-08 01:17:39 +02:00
|
|
|
'larigira.eventfilter': [
|
|
|
|
'maxwait = larigira.filters:maxwait',
|
|
|
|
'percentwait = larigira.filters:percentwait',
|
|
|
|
],
|
2016-08-29 20:31:17 +02:00
|
|
|
},
|
|
|
|
classifiers=[
|
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
]
|
2014-10-29 00:39:43 +01:00
|
|
|
)
|