larigira/setup.py

131 lines
4.6 KiB
Python
Raw Normal View History

import os
2020-04-23 15:27:17 +02:00
import sys
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):
2020-04-23 15:27:17 +02:00
user_options = [("pytest-args=", "a", "Arguments to pass to py.test")]
2014-10-29 00:39:43 +01:00
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
2020-04-23 15:27:17 +02:00
2014-10-29 00:39:43 +01:00
errno = pytest.main(self.pytest_args)
sys.exit(errno)
2020-04-23 15:27:17 +02:00
setup(
name="larigira",
2020-04-23 23:12:31 +02:00
version="1.3.3",
2020-04-23 15:27:17 +02:00
description="A radio automation based on MPD",
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
author="boyska",
author_email="piuttosto@logorroici.org",
license="AGPL",
packages=["larigira", "larigira.dbadmin", "larigira.filters"],
install_requires=[
"Babel==2.6.0",
2020-04-23 15:28:28 +02:00
"Flask-Babel==1.0.0",
2020-04-23 17:27:21 +02:00
"pyxdg==0.26",
2022-10-11 01:41:37 +02:00
"gevent==20.9.0",
2020-04-23 15:27:17 +02:00
"flask-bootstrap",
"python-mpd2",
2020-04-23 17:27:21 +02:00
"wtforms==2.2.1",
"Flask-WTF==0.14.2",
2020-04-23 15:27:17 +02:00
"flask==0.11",
2020-04-23 17:27:21 +02:00
"pytimeparse==1.1.8",
2020-04-23 15:27:17 +02:00
"croniter==0.3.29",
"werkzeug==0.14.1",
2022-10-11 01:41:37 +02:00
"Jinja2==3.0.1",
"itsdangerous==2.0.1",
2020-04-23 15:28:28 +02:00
"cachelib==0.1",
2020-04-23 17:27:21 +02:00
"tinydb==3.12.2",
"lxml==4.5.1",
"requests==2.23.0",
2020-04-23 15:27:17 +02:00
],
tests_require=["pytest-timeout==1.0", "py>=1.4.29", "pytest==3.0"],
python_requires=">=3.5",
extras_require={"percentwait": ["mutagen"]},
cmdclass={"test": PyTest},
zip_safe=False,
include_package_data=True,
entry_points={
"console_scripts": [
"larigira=larigira.main:main",
2020-04-23 15:27:17 +02:00
"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",
"http = larigira.audiogen_http:generate",
2020-06-21 12:57:59 +02:00
"podcast = larigira.audiogen_podcast:generate",
2020-04-23 15:27:17 +02:00
"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",
"cron = larigira.timegen_cron:CronAlarm",
],
"larigira.timeform_create": [
"single = larigira.timeform_base:SingleAlarmForm",
"frequency = larigira.timeform_base:FrequencyAlarmForm",
"cron = larigira.timeform_cron:CronAlarmForm",
],
"larigira.timeform_receive": [
"single = larigira.timeform_base:singlealarm_receive",
"frequency = larigira.timeform_base:frequencyalarm_receive",
"cron = larigira.timeform_cron:cronalarm_receive",
],
"larigira.audioform_create": [
"static = larigira.audioform_static:StaticAudioForm",
"http = larigira.audioform_http:AudioForm",
2020-06-21 12:57:59 +02:00
"podcast = larigira.audioform_podcast:AudioForm",
2020-04-23 15:27:17 +02:00
"script = larigira.audioform_script:ScriptAudioForm",
"randomdir = larigira.audioform_randomdir:Form",
"mostrecent = larigira.audioform_mostrecent:AudioForm",
],
"larigira.audioform_receive": [
"static = larigira.audioform_static:staticaudio_receive",
"http = larigira.audioform_http:audio_receive",
2020-06-21 12:57:59 +02:00
"podcast = larigira.audioform_podcast:audio_receive",
2020-04-23 15:27:17 +02:00
"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",
2020-04-23 23:08:52 +02:00
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Multimedia :: Sound/Audio",
2020-04-23 15:27:17 +02:00
],
)