forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
183 lines (167 loc) · 6.15 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
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from ckan import __version__, __description__, __long_description__, __license__
install_requires = [
'Babel>=0.9.6',
'Genshi==0.6',
'Jinja2>=2.6',
'Pylons==0.9.7',
'WebTest==1.4.3', # need to pin this so that Pylons does not install a newer version that conflicts with WebOb==1.0.8
'apachemiddleware>=0.1.1',
'babel>=0.9.6',
'fanstatic==0.12',
'formalchemy>=1.4.2',
'markupsafe>=0.15',
'ofs>=0.4.1',
'pairtree>=0.7.1-T',
'paste>=1.7.5.1',
'psycopg2==2.4.5',
'python-dateutil>=1.5.0,<2.0.0',
'pyutilib.component.core>=4.5.3',
'repoze.who-friendlyform>=1.0.8',
'repoze.who.plugins.openid>=0.5.3',
'repoze.who==1.0.19',
'requests==1.1.0',
'routes>=1.13',
'solrpy>=0.9.5',
'sqlalchemy-migrate>=0.7.2',
'sqlalchemy==0.7.8',
'tempita>=0.5.1',
'vdm>=0.11',
'webhelpers>=1.3',
'webob==1.0.8',
'zope.interface>=4.0.1',
'unicodecsv>=0.9',
]
dev_requires = [
'ckanclient>=0.10',
'docutils>=0.8.1',
'httpretty>=0.5',
'nose>=1.2.1',
'pip-tools>=0.3.1',
'Sphinx>=1.2b1',
]
dependency_links = [
'https://github.com/okfn/ckanclient/tarball/master#egg=ckanclient'
]
setup(
name='ckan',
version=__version__,
author='Open Knowledge Foundation',
author_email='[email protected]',
license=__license__,
url='http://ckan.org/',
description=__description__,
keywords='data packaging component tool server',
long_description =__long_description__,
install_requires=install_requires,
extras_require={'dev': dev_requires},
zip_safe=False,
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['ckanext', 'ckanext.stats'],
include_package_data=True,
package_data={'ckan': [
'i18n/*/LC_MESSAGES/*.mo',
'migration/migrate.cfg',
'migration/README',
'migration/tests/test_dumps/*',
'migration/versions/*',
]},
message_extractors = {
'ckan': [
('**.py', 'python', None),
('**.js', 'javascript', None),
('templates/importer/**', 'ignore', None),
('templates/**.html', 'ckan', None),
('templates_legacy/**.html', 'ckan', None),
('ckan/templates/home/language.js', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
('templates/**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
('templates_legacy/**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
('public/**', 'ignore', None),
],
'ckanext': [
('**.py', 'python', None),
('**.html', 'ckan', None),
('multilingual/solr/*.txt', 'ignore', None),
('**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
]
},
entry_points="""
[nose.plugins.0.10]
main = ckan.ckan_nose_plugin:CkanNose
[paste.app_factory]
main = ckan.config.middleware:make_app
[paste.app_install]
main = ckan.config.install:CKANInstaller
[paste.paster_command]
db = ckan.lib.cli:ManageDb
create-test-data = ckan.lib.cli:CreateTestDataCommand
sysadmin = ckan.lib.cli:Sysadmin
user = ckan.lib.cli:UserCmd
dataset = ckan.lib.cli:DatasetCmd
search-index = ckan.lib.cli:SearchIndexCommand
ratings = ckan.lib.cli:Ratings
notify = ckan.lib.cli:Notification
celeryd = ckan.lib.cli:Celery
rdf-export = ckan.lib.cli:RDFExport
tracking = ckan.lib.cli:Tracking
plugin-info = ckan.lib.cli:PluginInfo
profile = ckan.lib.cli:Profile
color = ckan.lib.cli:CreateColorSchemeCommand
check-po-files = ckan.i18n.check_po_files:CheckPoFiles
trans = ckan.lib.cli:TranslationsCommand
minify = ckan.lib.cli:MinifyCommand
less = ckan.lib.cli:LessCommand
datastore = ckanext.datastore.commands:SetupDatastoreCommand
front-end-build = ckan.lib.cli:FrontEndBuildCommand
[console_scripts]
ckan-admin = bin.ckan_admin:Command
[paste.paster_create_template]
ckanext=ckan.pastertemplates:CkanextTemplate
[ckan.forms]
standard = ckan.forms.package:get_standard_fieldset
package = ckan.forms.package:get_standard_fieldset
group = ckan.forms.group:get_group_fieldset
package_group = ckan.forms.group:get_package_group_fieldset
[ckan.search]
sql = ckan.lib.search.sql:SqlSearchBackend
solr = ckan.lib.search.solr_backend:SolrSearchBackend
[ckan.plugins]
synchronous_search = ckan.lib.search:SynchronousSearchPlugin
stats=ckanext.stats.plugin:StatsPlugin
publisher_form=ckanext.publisher_form.forms:PublisherForm
publisher_dataset_form=ckanext.publisher_form.forms:PublisherDatasetForm
multilingual_dataset=ckanext.multilingual.plugin:MultilingualDataset
multilingual_group=ckanext.multilingual.plugin:MultilingualGroup
multilingual_tag=ckanext.multilingual.plugin:MultilingualTag
organizations=ckanext.organizations.forms:OrganizationForm
organizations_dataset=ckanext.organizations.forms:OrganizationDatasetForm
datastore=ckanext.datastore.plugin:DatastorePlugin
test_tag_vocab_plugin=ckanext.test_tag_vocab_plugin:MockVocabTagsPlugin
resource_proxy=ckanext.resourceproxy.plugin:ResourceProxy
text_preview=ckanext.textpreview.plugin:TextPreview
pdf_preview=ckanext.pdfpreview.plugin:PdfPreview
recline_preview=ckanext.reclinepreview.plugin:ReclinePreview
example_itemplatehelpers=ckanext.example_itemplatehelpers.plugin:ExampleITemplateHelpersPlugin
example_idatasetform=ckanext.example_idatasetform.plugin:ExampleIDatasetFormPlugin
[ckan.system_plugins]
domain_object_mods = ckan.model.modification:DomainObjectModificationExtension
[babel.extractors]
ckan = ckan.lib.extract:extract_ckan
""",
# setup.py test command needs a TestSuite so does not work with py.test
# test_suite = 'nose.collector',
# tests_require=[ 'py >= 0.8.0-alpha2' ]
)