-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
109 lines (99 loc) · 3.6 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
# blah
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__
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=[
'routes>=1.9,<=1.11.99',
'vdm>=0.9,<0.9.99',
'ckanclient>=0.1,<0.7.99',
'Pylons>=0.9.7.0,<0.9.7.99',
'Genshi>=0.6,<0.6.99',
'SQLAlchemy>=0.6,<0.6.99',
'repoze.who>=1.0.0,<1.0.99',
'repoze.who.plugins.openid>=0.5.3',
'repoze.who-friendlyform>=1.0.8',
'Babel>=0.9.5',
'pyutilib.component.core>=4.1,<4.1.99',
# uuid in python >= 2.5
# 'uuid>=1.0',
# for open licenses
'licenses==0.4,<0.6.99',
'sqlalchemy-migrate==0.6',
# latest version of Routes (1.10) depends on webob in middleware but
# does not declare the dependency!
# (not sure we need this except in tests but ...)
'WebOb',
'FormAlchemy>=1.3.4',
## required for harvesting
## TODO: this could be removed if harvesting moved to worker
'lxml',
],
extras_require = {
'solr': ['solrpy>=0.9'],
},
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
package_data={'ckan': ['i18n/*/LC_MESSAGES/*.mo']},
message_extractors = {'ckan': [
('**.py', 'python', None),
('templates/importer/**', 'ignore', None),
('templates/**.html', 'genshi', None),
('templates/**.js', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
('templates/**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
('public/**', 'ignore', None),
]},
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 = pylons.util:PylonsInstaller
[paste.paster_command]
db = ckan.lib.cli:ManageDb
create-test-data = ckan.lib.create_test_data:CreateTestData
sysadmin = ckan.lib.cli:Sysadmin
search-index = ckan.lib.cli:SearchIndexCommand
ratings = ckan.lib.cli:Ratings
changes = ckan.lib.cli:Changes
notifications = ckan.lib.cli:Notifications
harvester = ckan.lib.cli:Harvester
rights = ckan.lib.authztool:RightsCommand
roles = ckan.lib.authztool:RolesCommand
[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
gov = ckan.forms.package_gov:get_gov_fieldset
[ckan.search]
sql = ckan.lib.search.sql:SqlSearchBackend
[ckan.plugins]
synchronous_search = ckan.lib.search.worker:SynchronousSearchPlugin
[ckan.system_plugins]
domain_object_mods = ckan.model.modification:DomainObjectModificationExtension
""",
# 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' ]
)