forked from fedora-infra/fedora-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·188 lines (160 loc) · 8.41 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
# -*- coding: utf-8 -*-
# This file is part of Fedora Community.
# Copyright (C) 2008-2013 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import __main__; __main__.__requires__ = __requires__ = ['WebOb>=1.0']; import pkg_resources
import os
import glob
# These two imports are not actually used, but are required to stop tests from
# failing on python 2.7.
import multiprocessing
import logging
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
data_files = [
('fedoracommunity/public', filter(os.path.isfile, glob.glob('fedoracommunity/public/*'))),
('fedoracommunity/public/css', filter(os.path.isfile, glob.glob('fedoracommunity/public/css/*.css'))),
('fedoracommunity/public/css/fonts', filter(os.path.isfile, glob.glob('fedoracommunity/public/css/fonts/*.ttf'))),
('fedoracommunity/public/css/filetreetheme', filter(os.path.isfile, glob.glob('fedoracommunity/public/css/filetreetheme/*'))),
('fedoracommunity/public/images', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/*'))),
('fedoracommunity/public/images/banners', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/banners/*'))),
('fedoracommunity/public/images/planet-bubbles', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/planet-bubbles/*'))),
('fedoracommunity/public/images/icons', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/icons/*'))),
('fedoracommunity/public/images/tour', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/tour/*'))),
('fedoracommunity/public/images/tour/screenshots', filter(os.path.isfile, glob.glob('fedoracommunity/public/images/tour/screenshots/*'))),
('fedoracommunity/public/misc', filter(os.path.isfile, glob.glob('fedoracommunity/public/misc/*'))),
('fedoracommunity/public/javascript', filter(os.path.isfile, glob.glob('fedoracommunity/public/javascript/*.js'))),
]
packages = find_packages(exclude=['ez_setup'])
setup(
name='fedoracommunity',
version='2.0.17',
description='',
license='AGPLv3',
authors=('John (J5) Palmieri <[email protected]>',
'Luke Macken <[email protected]>',
'Máirín Duffy <[email protected]>',
'Ralph Bean <[email protected]>',
),
url='http://fedoracommunity.fedorahosted.org',
install_requires=[
"moksha.wsgi",
"TurboGears2",
"dogpile.cache",
"retask",
"python-memcached",
#"PyOpenSSL",
#"SQLAlchemy>=0.5",
#"xappy",
# For some reason this doesn't get automatically pulled in :(
#"GitPython",
#"pytz",
],
scripts=['fedoracommunity_makeyumcache', 'bin/fcomm-index-packages', 'bin/fcomm-index-latest-builds'],
packages=packages,
include_package_data=True,
test_suite='nose.collector',
tests_require=['webtest'],
data_files=data_files,
package_data={'fedoracommunity': ['i18n/*/LC_MESSAGES/*.mo']
},
#message_extractors = {'myfedora': [
# ('**.py', 'python', None),
# ('templates/**.mako', 'mako', None),
# ('templates/**.html', 'genshi', None),
# ('public/**', 'ignore', None)]},
entry_points="""
[setuptools.file_finders]
git = fedoracommunity.lib.utils:find_git_files
[paste.app_factory]
main = fedoracommunity.config.middleware:make_app
[paste.app_install]
main = pylons.util:PylonsInstaller
# [fas.repoze.who.metadata_plugins]
# blog_info = myfedora.plugins.identity.bloginfo:add_metadata
# list all the widgets we need for deployment - this is messy but the
# easiest way to get things working
[tw2.widgets]
widgets = fedoracommunity.widgets
moksha_js = moksha.wsgi.widgets.moksha_js
fcomm_js = fedoracommunity.connectors.widgets.widgets
moksha_widgets = moksha.wsgi.widgets.api
bodhi_js = fedoracommunity.widgets.package.updates:bodhi_js
fedoracommunity_bodhi_js = fedoracommunity.widgets.package.updates:bodhi_js
fedoracommunity_updates = fedoracommunity.widgets.package.updates:Updates
packages = fedoracommunity.widgets.package
package_overview = fedoracommunity.widgets.package.overview
package_updates = fedoracommunity.widgets.package.updates
package_builds = fedoracommunity.widgets.package.builds
package_bugs = fedoracommunity.widgets.package.bugs
package_contents = fedoracommunity.widgets.package.contents
package_changelog = fedoracommunity.widgets.package.changelog
package_sources = fedoracommunity.widgets.package.sources
package_relationships = fedoracommunity.widgets.package.relationships
[moksha.global]
#fedora_css = fedoracommunity.widgets:fedora_css
#jquery_json_js = moksha.widgets.json:jquery_json_js
#jquery_ui_tabs = tw.jquery.ui_tabs:jquery_ui_tabs_js
#moksha_js = moksha.widgets.moksha_js:moksha_js
#jquery_template_js = fedoracommunity.widgets.jquery_template:jquery_template_js
[fcomm.connector]
koji = fedoracommunity.connectors:KojiConnector
bodhi = fedoracommunity.connectors:BodhiConnector
pkgdb = fedoracommunity.connectors:PkgdbConnector
fas = fedoracommunity.connectors:FasConnector
bugzilla = fedoracommunity.connectors:BugzillaConnector
planet = fedoracommunity.connectors:PlanetConnector
yum = fedoracommunity.connectors:YumConnector
xapian = fedoracommunity.connectors:XapianConnector
wiki = fedoracommunity.connectors:WikiConnector
torrent = fedoracommunity.connectors:TorrentConnector
[moksha.widget]
fedoracommunity.bodhi = fedoracommunity.widgets.package.updates:Updates
grid = fedoracommunity.widgets.grid:Grid
package_overview = fedoracommunity.widgets.package.overview:Details
package_updates = fedoracommunity.widgets.package.updates:Updates
package_builds = fedoracommunity.widgets.package.builds:Builds
package_bugs = fedoracommunity.widgets.package.bugs:BugsWidget
package_contents = fedoracommunity.widgets.package.contents:ContentsWidget
package_changelog = fedoracommunity.widgets.package.changelog:ChangelogWidget
package_sources = fedoracommunity.widgets.package.sources:Sources
package_sources_spec = fedoracommunity.widgets.package.sources:Spec
package_sources_patches = fedoracommunity.widgets.package.sources:Patches
package_sources_patch = fedoracommunity.widgets.package.sources:Patch
package_sources_diffs = fedoracommunity.widgets.package.sources:Diffs
package_sources_tarballs = fedoracommunity.widgets.package.sources:Tarballs
package_sources_git = fedoracommunity.widgets.package.sources:GitRepo
package_relationships = fedoracommunity.widgets.package.relationships:RelationshipsWidget
package_relationships_requires = fedoracommunity.widgets.package.relationships:RequiresWidget
package_relationships_requiredby = fedoracommunity.widgets.package.relationships:RequiredByWidget
package_relationships_depends = fedoracommunity.widgets.package.relationships:DependsWidget
package_relationships_provides = fedoracommunity.widgets.package.relationships:ProvidesWidget
package_relationships_obsoletes = fedoracommunity.widgets.package.relationships:ObsoletesWidget
package_relationships_conflicts = fedoracommunity.widgets.package.relationships:ConflictsWidget
[moksha.stream]
stats_cla_done = fedoracommunity.streams.stats:ClaDoneDataStream
wiki_all_revisions = fedoracommunity.streams.stats:WikiAllRevisionsDataStream
[moksha.extension_point]
fedoracommunity = fedoracommunity.plugins.extensions
[distutils.commands]
archive_fedoracommunity_resources = fedoracommunity.distutils.command:archive_fedoracommunity_resources
[console_scripts]
fcomm-cache-worker = fedoracommunity.connectors.api.worker:main
"""
)