forked from Kotti/Kotti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
191 lines (174 loc) · 5.79 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
189
190
191
import codecs
import os
from setuptools import find_packages
from setuptools import setup
version = '2.0.5dev0'
description = "A high-level, Pythonic web application framework based on " \
"Pyramid and SQLAlchemy. It includes an extensible Content " \
"Management System called the Kotti CMS."
author = 'Kotti Developers'
author_email = '[email protected]'
url = 'http://kotti.pylonsproject.org/'
keywords = 'kotti web cms wcms pylons pyramid sqlalchemy bootstrap'
license = "BSD-derived (http://www.repoze.org/LICENSE.txt)"
install_requires = [
'Babel',
'Chameleon>=2.7.4', # Fixes error when raising HTTPFound
'alembic>=0.8.0',
'bleach>=3.1.4',
'bleach-allowlist',
'colander>=1.3.2',
'deform>=2.0.5', # fixes file upload on py3 - uncomment after 2.0.5 is released # noqa
'docopt',
'fanstatic>=1.0.0',
'filedepot',
'formencode>=2.0.0a',
'html2text',
'iso8601>=0.1.13',
'js.angular',
'js.bootstrap>=3.0.0',
'js.deform>=2.0.3',
'js.fineuploader',
'js.html5shiv',
'js.jquery<2.0.0.dev', # rq.filter: <2.0
'js.jquery_form',
'js.jquery_tablednd',
'js.jquery_timepicker_addon',
'js.jqueryui>=1.8.24',
'js.jqueryui_tagit',
'lingua>=1.3',
'py_bcrypt',
'pyramid>=1.9',
'pyramid_beaker',
'pyramid_chameleon',
'pyramid_deform>=0.2a3', # language and template path config includeme
'pyramid_mailer',
'pyramid_tm',
'pyramid_zcml>=1.1.0', # py3 compat
'repoze.lru',
'repoze.workflow>=1.0b1',
'repoze.zcml>=1.0b1',
'sqlalchemy>=1.0.0',
'sqlalchemy-utils',
'transaction>=1.1.0',
'unidecode',
'waitress',
'zope.deprecation',
'zope.interface',
'zope.sqlalchemy',
]
tests_require = [
'WebTest',
'mock',
'Pillow', # thumbnail filter in depot tween tests
'pyquery',
'pytest>=6',
'pytest-cov',
'pytest-flake8',
'pytest-virtualenv',
'tox',
'zope.testbrowser>=5.0.0',
]
development_requires = [
'check-manifest',
'pipdeptree',
'pyramid_debugtoolbar',
'kotti-tinymce>=0.7.0',
]
docs_require = [
'Sphinx',
'docutils',
'repoze.sphinx.autointerface',
'sphinx_rtd_theme',
'setuptools-git', # needed to make "python setup.py install" on rtd.
'pytest>=4.6,<5', # needed for kotti.testing apidocs
]
setup_requires = [
'setuptools_git>=0.3',
]
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
""" Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
Copied from
https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
"""
with codecs.open(os.path.join(here, *parts), "rb", "utf-8") as f:
return f.read()
setup(name='Kotti',
version=version,
description=description,
long_description='\n\n'.join([read('README.rst'),
read('AUTHORS.txt'),
read('CHANGES.txt'), ]),
long_description_content_type="text/x-rst",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Pylons',
'Framework :: Pyramid',
'License :: Repoze Public License',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Italian',
'Natural Language :: Japanese',
'Natural Language :: Polish',
'Natural Language :: Portuguese',
'Natural Language :: Swedish',
'Operating System :: POSIX',
'Operating System :: Unix',
# 'Programming Language :: JavaScript',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
# 'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: SQL',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries', # noqa
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks', # noqa
],
author=author,
author_email=author_email,
url=url,
keywords=keywords,
license=license,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points={
'paste.app_factory': [
'main = kotti:main',
],
'fanstatic.libraries': [
'kotti = kotti.fanstatic:lib_kotti',
],
'console_scripts': [
'kotti-migrate = kotti.migrate:kotti_migrate_command',
'kotti-reset-workflow = kotti.workflow:reset_workflow_command',
'kotti-migrate-storage = kotti.filedepot:migrate_storages_command', # noqa
],
'pytest11': [
'kotti = kotti.tests',
],
},
extras_require={
'testing': tests_require,
'development': development_requires,
'docs': docs_require,
},
)