-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
103 lines (94 loc) · 3.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import sys
import os
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()
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',
version='1.1.0',
description='A radio automation based on MPD',
long_description=read('README.rst'),
author='boyska',
author_email='[email protected]',
license='AGPL',
packages=['larigira', 'larigira.dbadmin', 'larigira.filters'],
install_requires=[
'pyxdg',
'gevent',
'flask-bootstrap',
'python-mpd2',
'wtforms',
'Flask-WTF',
'flask==0.11',
'pytimeparse',
'tinydb'
],
tests_require=['pytest-timeout==1.0', 'py>=1.4.29', 'pytest==3.0', ],
python_requires='>=3.4',
extras_require={
'percentwait': ['mutagen'],
},
cmdclass={'test': PyTest},
zip_safe=False,
include_package_data=True,
entry_points={
'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',
'randomdir = larigira.audiogen_randomdir:generate',
'mostrecent = larigira.audiogen_mostrecent:generate',
'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',
],
'larigira.audioform_create': [
'static = larigira.audioform_static:StaticAudioForm',
'script = larigira.audioform_script:ScriptAudioForm',
'randomdir = larigira.audioform_randomdir:Form',
'mostrecent = larigira.audioform_mostrecent:AudioForm',
],
'larigira.audioform_receive': [
'static = larigira.audioform_static:staticaudio_receive',
'script = larigira.audioform_script:scriptaudio_receive',
'randomdir = larigira.audioform_randomdir:receive',
'mostrecent = larigira.audioform_mostrecent:audio_receive',
],
'larigira.eventfilter': [
'maxwait = larigira.filters:maxwait',
'percentwait = larigira.filters:percentwait',
],
},
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
]
)