-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (62 loc) · 1.94 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
from setuptools import setup, find_packages
import os
name = 'seantis.kantonsrat'
description = (
"Specialized type and custom organisations for the Kantonsrat of Zug. "
)
version = '1.0.6'
tests_require = [
'plone.app.testing',
'collective.betterbrowser[pyquery]',
'seantis.plonetools[tests]',
'mock',
'freezegun'
]
def get_long_description():
readme = open('README.rst').read()
history = open(os.path.join('docs', 'HISTORY.rst')).read()
contributors = open(os.path.join('docs', 'CONTRIBUTORS.rst')).read()
# cut the part before the description to avoid repetition on pypi
readme = readme[readme.index(description) + len(description):]
return '\n'.join((readme, contributors, history))
setup(
name=name, version=version, description=description,
long_description=get_long_description(),
classifiers=[
'Framework :: Plone',
'Framework :: Plone :: 4.3',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
],
keywords='plone seantis people persons organizations positions kantonsrat',
author='Seantis GmbH',
author_email='info@seantis.ch',
url='https://github.com/seantis/seantis.kantonsrat',
license='GPL v2',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['seantis'],
include_package_data=True,
zip_safe=False,
install_requires=[
'Plone>=4.3',
'plone.api',
'five.grok',
'plone.app.dexterity [grok, relations]',
'seantis.people>=0.23',
'seantis.plonetools>=0.11',
'collective.dexteritytextindexer',
'collective.js.jqueryui',
'reportlab',
'pdfdocument',
'svglib>=0.8'
],
extras_require=dict(
tests=tests_require
),
entry_points="""
# -*- Entry points: -*-
[z3c.autoinclude.plugin]
target = plone
"""
)