forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
157 lines (154 loc) · 6.85 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
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__)
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',
'datapusher=ckanext.datapusher.plugin:DatapusherPlugin',
'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',
'example_iauthfunctions_v1 = ckanext.example_iauthfunctions.plugin_v1:ExampleIAuthFunctionsPlugin',
'example_iauthfunctions_v2 = ckanext.example_iauthfunctions.plugin_v2:ExampleIAuthFunctionsPlugin',
'example_iauthfunctions_v3 = ckanext.example_iauthfunctions.plugin_v3:ExampleIAuthFunctionsPlugin',
'example_iauthfunctions = ckanext.example_iauthfunctions.plugin:ExampleIAuthFunctionsPlugin',
],
'ckan.system_plugins': [
'domain_object_mods = ckan.model.modification:DomainObjectModificationExtension',
],
'ckan.test_plugins': [
'routes_plugin = tests.ckantestplugins:RoutesPlugin',
'mapper_plugin = tests.ckantestplugins:MapperPlugin',
'session_plugin = tests.ckantestplugins:SessionPlugin',
'mapper_plugin2 = tests.ckantestplugins:MapperPlugin2',
'authorizer_plugin = tests.ckantestplugins:AuthorizerPlugin',
'test_observer_plugin = tests.ckantestplugins:PluginObserverPlugin',
'action_plugin = tests.ckantestplugins:ActionPlugin',
'auth_plugin = tests.ckantestplugins:AuthPlugin',
'test_group_plugin = tests.ckantestplugins:MockGroupControllerPlugin',
'test_package_controller_plugin = tests.ckantestplugins:MockPackageControllerPlugin',
'test_resource_preview = tests.ckantestplugins:MockResourcePreviewExtension',
'test_json_resource_preview = tests.ckantestplugins:JsonMockResourcePreviewExtension',
],
'babel.extractors': [
'ckan = ckan.lib.extract:extract_ckan',
],
}
setup(
name='ckan',
version=__version__,
author='Open Knowledge Foundation',
author_email='info@okfn.org',
license=__license__,
url='http://ckan.org/',
description=__description__,
keywords='data packaging component tool server',
long_description=__long_description__,
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=entry_points,
# 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' ]
)