forked from fedora-infra/bodhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
110 lines (91 loc) · 2.35 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
# The following two imports are required to shut up an
# atexit error when running tests with python 2.7
import logging
import multiprocessing
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_mako',
'pyramid_beaker',
'pyramid_debugtoolbar',
'pyramid_tm',
'waitress',
'colander',
'cornice',
'python-openid',
'pyramid_fas_openid',
'packagedb-cli',
'sqlalchemy',
'zope.sqlalchemy',
'webhelpers',
'progressbar',
'bunch',
# for captchas
'cryptography',
'Pillow',
# Useful tools
'kitchen',
'python-fedora',
'pylibravatar',
'pyDNS',
'dogpile.cache',
'arrow',
'markdown',
# i18n
'Babel',
'lingua',
# External resources
'python-bugzilla',
'simplemediawiki',
'fedmsg',
'Sphinx',
# For the bodhi-client
'click',
# For updateinfo parsing
'xmldict',
]
if sys.version_info[:3] < (2,7,0):
requires.append('importlib')
if sys.version_info[:3] < (2,5,0):
requires.append('pysqlite')
setup(name='bodhi',
version='2.0',
description='bodhi',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web fedora pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires = requires,
tests_require = ['nose', 'nose-cov', 'webtest', 'mock'],
test_suite="nose.collector",
message_extractors = { '.': [
('**.py', 'lingua_python', None),
('**.mak', 'lingua_xml', None),
]},
entry_points = """\
[paste.app_factory]
main = bodhi:main
[console_scripts]
initialize_bodhi_db = bodhi.scripts.initializedb:main
bodhi = bodhi.cli:cli
bodhi-expire-overrides = bodhi.scripts.expire_overrides:main
[moksha.consumer]
masher = bodhi.masher:Masher
""",
paster_plugins=['pyramid'],
)