forked from fedora-infra/bodhi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
200 lines (169 loc) · 5.47 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
import __main__
__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'
import pkg_resources
# 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
import setuptools.command.egg_info
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
VERSION = '2.3.2'
# Possible options are at https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Software Distribution']
LICENSE = 'GPLv2+'
MAINTAINER = 'Fedora Infrastructure Team'
MAINTAINER_EMAIL = '[email protected]'
PLATFORMS = ['Fedora', 'GNU/Linux']
URL = 'https://github.com/fedora-infra/bodhi'
server_requires = [
# push.py uses click
'click',
'pyramid',
'pyramid_mako',
'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, that we're not actually doing yet.
#'Babel',
#'lingua',
# External resources
'python-bugzilla',
'simplemediawiki',
# "python setup.py test" needs one of fedmsg's setup.py extra_requires
'fedmsg[consumers]',
# The masher needs fedmsg-atomic-composer
'fedmsg-atomic-composer >= 2016.3',
'Sphinx',
'WebOb>=1.4.1',
]
if sys.version_info[:3] < (2,7,0):
server_requires.append('importlib')
if sys.version_info[:3] < (2,5,0):
server_requires.append('pysqlite')
setuptools.command.egg_info.manifest_maker.template = 'BODHI_MANIFEST.in'
setup(name='bodhi',
version=VERSION,
description='bodhi common package',
long_description=README,
classifiers=CLASSIFIERS,
license=LICENSE,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
platforms=PLATFORMS,
url=URL,
keywords='fedora',
packages=['bodhi'],
include_package_data=True,
zip_safe=False,
install_requires = [],
tests_require = [
'flake8',
'nose',
'nose-cov',
'webtest',
'mock'
],
test_suite="nose.collector",
)
setuptools.command.egg_info.manifest_maker.template = 'CLIENT_MANIFEST.in'
setup(name='bodhi-client',
version=VERSION,
description='bodhi client',
long_description=README,
classifiers=CLASSIFIERS,
license=LICENSE,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
platforms=PLATFORMS,
url=URL,
keywords='fedora',
packages=['bodhi.client'],
include_package_data=False,
zip_safe=False,
install_requires = ['click'],
entry_points = """\
[console_scripts]
bodhi = bodhi.client:cli
""",
)
setuptools.command.egg_info.manifest_maker.template = 'SERVER_MANIFEST.in'
# Due to https://github.com/pypa/setuptools/issues/808, we need to include the bodhi superpackage
# and then remove it if we want find_packages() to find the bodhi.server package and its
# subpackages without including the bodhi top level package.
server_packages = find_packages(
exclude=['bodhi.client', 'bodhi.client.*', 'bodhi.tests', 'bodhi.tests.*'])
server_packages.remove('bodhi')
setup(name='bodhi-server',
version=VERSION,
description='bodhi server',
long_description=README,
classifiers=CLASSIFIERS + [
"Framework :: Pyramid",
'Programming Language :: JavaScript',
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"],
license=LICENSE,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
platforms=PLATFORMS,
url=URL,
keywords='web fedora pyramid',
packages=server_packages,
include_package_data=True,
# script_args=sys.argv.extend(['--template', 'TEST']),
zip_safe=False,
install_requires = server_requires,
message_extractors = { '.': [
#('**.py', 'lingua_python', None),
#('**.mak', 'lingua_xml', None),
]},
entry_points = """\
[paste.app_factory]
main = bodhi.server:main
[console_scripts]
initialize_bodhi_db = bodhi.server.scripts.initializedb:main
bodhi-clean-old-mashes = bodhi.server.scripts.clean_old_mashes:clean_up
bodhi-push = bodhi.server.push:push
bodhi-expire-overrides = bodhi.server.scripts.expire_overrides:main
bodhi-untag-branched = bodhi.server.scripts.untag_branched:main
bodhi-approve-testing = bodhi.server.scripts.approve_testing:main
bodhi-manage-releases = bodhi.server.scripts.manage_releases:main
[moksha.consumer]
masher = bodhi.server.consumers.masher:Masher
updates = bodhi.server.consumers.updates:UpdatesHandler
signed = bodhi.server.consumers.signed:SignedHandler
""",
paster_plugins=['pyramid'],
)