This repository has been archived by the owner on Sep 5, 2019. It is now read-only.
/
setup.py
66 lines (58 loc) · 1.64 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
name = 'onegov.form'
description = (
'Common OneGov form library based on WTForms.'
)
version = '0.4.1'
def get_long_description():
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
# cut the part before the description to avoid repetition on pypi
readme = readme[readme.index(description) + len(description):]
return '\n'.join((readme, history))
setup(
name=name,
version=version,
description=description,
long_description=get_long_description(),
url='http://github.com/seantis/onegov.form',
author='Seantis GmbH',
author_email='info@seantis.ch',
license='GPLv2',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=name.split('.')[:-1],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'delorean',
'humanize',
'jsonpickle',
'onegov.core>=0.3.5',
'pyparsing',
'pyyaml',
'python-magic',
'python-stdnum',
'sqlalchemy_utils',
'wtforms',
'wtforms-components[color]',
'unidecode'
],
extras_require=dict(
test=[
'coverage',
'onegov.testing',
'pytest',
'webob',
'werkzeug'
],
),
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
]
)