forked from mediadrop/mediadrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
117 lines (104 loc) · 3.62 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
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import sys
from mediacore import __version__ as VERSION
install_requires = [
'WebTest == 1.2',
'Pylons == 0.10',
'WebOb == 1.0.7',
'WebHelpers == 1.0',
'SQLAlchemy == 0.6.5',
'sqlalchemy-migrate == 0.6',
'Genshi == 0.6',
'Babel == 0.9.6',
'Routes == 1.12.3',
'repoze.who == 1.0.18',
'repoze.what-pylons == 1.0',
'repoze.what-quickstart',
'Paste == 1.7.4',
'PasteDeploy == 1.3.3',
'PasteScript == 1.7.3',
'ToscaWidgets == 0.9.9',
'tw.forms == 0.9.9',
'MySQL-python >= 1.2.2',
'BeautifulSoup == 3.0.7a',
# We monkeypatch this version of BeautifulSoup in mediacore.__init__
# Patch pending: https://bugs.launchpad.net/beautifulsoup/+bug/397997
'PIL == 1.1.6',
# The original PIL 1.1.6 package won't install via setuptools so this
# this setup script installs http://dist.repoze.org/PIL-1.1.6.tar.gz
'akismet == 0.2.0',
'feedparser >= 4.1', # needed only for rss import script
'gdata > 2, < 2.1',
'unidecode',
'decorator',
'simplejson',
]
if sys.version_info < (2, 7):
# importlib is included in Python 2.7
# however we can't do try/import/except because this might generate eggs
# with missing requires which can not be used in other environments
# see https://github.com/mediacore/mediacore/issues#issue/44
install_requires.append('importlib')
if sys.version_info < (2, 5):
# These package comes bundled in Python >= 2.5 as xml.etree.cElementTree.
install_requires.append('elementtree >= 1.2.6, < 1.3')
install_requires.append('cElementTree >= 1.0.5, < 1.1')
extra_arguments_for_setup = {}
# extractors are declared separately so it is easier for 3rd party users
# to use them for other packages as well...
extractors = [
('lib/unidecode/**', 'ignore', None),
('tests/**', 'ignore', None),
('**.py', 'python', None),
('templates/**.html', 'genshi', {
'template_class': 'genshi.template.markup:MarkupTemplate'
}),
('public/**', 'ignore', None),
]
extra_arguments_for_setup['message_extractors'] = {'mediacore': extractors}
setup(
name='MediaCore',
version=VERSION,
description='A audio, video and podcast publication platform.',
author='Simple Station Inc.',
author_email='[email protected]',
url='http://getmediacore.com/',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Framework :: TurboGears :: Applications',
'Programming Language :: Python',
'Programming Language :: JavaScript',
'Topic :: Internet :: WWW/HTTP :: Site Management'
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Multimedia :: Sound/Audio',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
],
install_requires=install_requires,
paster_plugins=[
'PasteScript',
'Pylons',
],
test_suite='nose.collector',
tests_require=[
'WebTest',
],
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
package_data={'mediacore': ['i18n/*/LC_MESSAGES/*.mo']},
zip_safe=False,
entry_points="""
[paste.app_factory]
main = mediacore.config.middleware:make_app
[paste.app_install]
main = pylons.util:PylonsInstaller
""",
**extra_arguments_for_setup
)