forked from opacam/Cohen3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
168 lines (148 loc) · 5.51 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
from coherence import __version__
if sys.version_info[:3] < (3, 7, 0):
raise NotImplemented('Python 3.7+ required, bye-bye')
packages = find_packages()
DOCPAGES = (
('manpage', 'docs/man/cohen3.rst', 'docs/man/cohen3.1'),
)
deps = [
'ConfigObj >= 4.3',
'Twisted >= 20.3.0',
'zope.interface',
'lxml',
'eventdispatcher == 1.9.4',
'python-dateutil',
'pyopenssl'
]
if sys.platform in ('win32', 'sunos5'):
deps.append('Netifaces >= 0.4')
# Optional dependencies
audio_store_require = [
'pycdb',
'discid',
]
elisa_store_require = [
'Epsilon',
'Axiom',
]
feed_store_require = [
'feedparser'
]
twitch_store_require = [
'livestreamer'
]
web_ui_require = [
'autobahn'
]
gstreamer_player_require = [
'pygobject>= 3.30.0',
'pycairo>=1.17.1'
]
dbus_require = [
'dbus-python',
]
docs_require = [
'recommonmark>=0.4.0',
'Sphinx>=1.3.5',
'sphinxcontrib-napoleon>=0.4.4',
'sphinx-rtd-theme>=0.1.9',
]
test_require = (
[
'flake8>=4', # Because of https://github.com/PyCQA/flake8/issues/1564
'pylint==2.1.1',
'python-coveralls',
'nose',
'nose-cov',
]
+ audio_store_require
)
dev_require = test_require + gstreamer_player_require
entry_points = """
[coherence.plugins.backend.media_server]
AmpacheStore = coherence.backends.ampache_storage:AmpacheStore
AppleTrailersStore = coherence.backends.appletrailers_storage:AppleTrailersStore
AudioCDStore = coherence.backends.audiocd_storage:AudioCDStore
AxisCamStore = coherence.backends.axiscam_storage:AxisCamStore
BansheeStore = coherence.backends.banshee_storage:BansheeStore
BuzztardStore = coherence.backends.buzztard_control:BuzztardStore
DVBDStore = coherence.backends.dvbd_storage:DVBDStore
ElisaMediaStore = coherence.backends.elisa_storage:ElisaMediaStore
FeedStore = coherence.backends.feed_storage:FeedStore
FlickrStore = coherence.backends.flickr_storage:FlickrStore
FSStore = coherence.backends.fs_storage:FSStore
Gallery2Store = coherence.backends.gallery2_storage:Gallery2Store
IRadioStore = coherence.backends.iradio_storage:IRadioStore
ITVStore = coherence.backends.itv_storage:ITVStore
LastFMStore = coherence.backends.lastfm_storage:LastFMStore
LolcatsStore = coherence.backends.lolcats_storage:LolcatsStore
MediaStore = coherence.backends.mediadb_storage:MediaStore
PlaylistStore = coherence.backends.playlist_storage:PlaylistStore
RadiotimeStore = coherence.backends.radiotime_storage:RadiotimeStore
SWR3Store = coherence.backends.swr3_storage:SWR3Store
TEDStore = coherence.backends.ted_storage:TEDStore
TestStore = coherence.backends.test_storage:TestStore
TrackerStore = coherence.backends.tracker_storage:TrackerStore
TwitchStore = coherence.backends.twitch_storage:TwitchStore
YamjStore = coherence.backends.yamj_storage:YamjStore
[coherence.plugins.backend.media_renderer]
BuzztardPlayer = coherence.backends.buzztard_control:BuzztardPlayer
ElisaPlayer = coherence.backends.elisa_renderer:ElisaPlayer
GStreamerPlayer = coherence.backends.gstreamer_renderer:GStreamerPlayer
"""
setup(name='Cohen3',
version=__version__,
description="Cohen3 - DLNA/UPnP Media Server",
long_description="Cohen3 is a DLNA/UPnP Media Server rewritten in Python3"
" from the Python2 version Cohen (original project"
" was coherence-project), providing several "
"UPnP MediaServers and MediaRenderers to make simple "
"publishing and streaming different types of media "
"content to your network.",
author='opacam',
author_email='canellestudi@gmail.com',
license='MIT',
packages=packages,
scripts=['bin/cohen3'],
url='https://github.com/opacam/Cohen3',
keywords=['UPnP', 'DLNA', 'multimedia', 'gstreamer'],
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Multimedia :: Video',
'Topic :: Utilities',
],
package_data={
'coherence': ['upnp/core/xml-service-descriptions/*.xml'],
'misc': ['device-icons/*.png'],
},
install_requires=deps,
extras_require={
'test': test_require,
'dev': dev_require,
'docs': docs_require,
'dbus': dbus_require,
'audio': audio_store_require,
'gstreamer': gstreamer_player_require,
'elisa': elisa_store_require,
'feed': feed_store_require,
'twitch': twitch_store_require,
'web': web_ui_require,
},
dependency_links=[
'git+git://github.com/lobocv/eventdispatcher@releases/tag/1.9.4#egg=eventdispatcher',
'git+git://github.com/fishstiqz/pycdb@master#egg=pycdb',
'git+git://github.com/JonnyJD/python-discid@master#egg=discid',
'git+git://github.com/opacam/epsilon@python3#egg=Epsilon',
'git+git://github.com/opacam/axiom@python3#egg=Axiom',
],
entry_points=entry_points
)