forked from keitaroinc/ckanext-pages
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
71 lines (65 loc) · 2.21 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
# encoding: utf-8
import io
import os.path
import re
from setuptools import setup, find_packages
# Extract version
HERE = os.path.abspath(os.path.dirname(__file__))
INIT_PY = os.path.join(HERE, 'ckanext', 'pages', '__init__.py')
version = None
with io.open(INIT_PY) as f:
for line in f:
m = re.match(r'__version__\s*=\s*u?[\'"](.*)[\'"]', line)
if m:
version = m.groups()[0]
break
if version is None:
raise RuntimeError('Could not extract version from "{}".'.format(INIT_PY))
setup(
name='ckanext-pages',
version=version,
description='Basic CMS extension for ckan',
long_description='',
classifiers=[
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='CKAN CMS',
author='David Raznick',
author_email='[email protected]',
url='https://github.com/ckan/ckanext-pages',
license='GNU Affero General Public License (AGPL) v3.0',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=['ckanext'],
include_package_data=True,
package_data={
'': ['theme/*/*.html', 'theme/*/*/*.html', 'theme/*/*/*/*.html'],
},
zip_safe=False,
install_requires=[
'six', 'ckantoolkit',
],
entry_points="""
[ckan.plugins]
pages=ckanext.pages.plugin:PagesPlugin
textboxview=ckanext.pages.plugin:TextBoxView
[babel.extractors]
ckan = ckan.lib.extract:extract_ckan
[paste.paster_command]
pages = ckanext.pages.commands:PagesCommand
""",
message_extractors={
'ckanext': [
('**.py', 'python', None),
('**.js', 'javascript', None),
('**/pages/theme/**.html', 'ckan', None),
],
},
)