forked from formencode/formencode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (41 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
"""FormEncode validates and converts nested structures.
It allows for a declarative form of defining the validation,
and decoupled processes for filling and generating forms.
The official repo is at GitHub: https://github.com/formencode/formencode
"""
import sys
from setuptools import setup, find_packages
version = '1.3.0dev'
if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version:
raise ImportError('Python version not supported')
tests_require = ['nose', 'pycountry',
'dnspython' if sys.version < '3.0' else 'dnspython3']
doctests = ['docs/htmlfill.txt', 'docs/Validator.txt',
'formencode/tests/non_empty.txt']
setup(name='FormEncode',
version=version,
# requires_python='>=2.6,!=3.0,!=3.1', # PEP345
description="HTML form validation, generation, and conversion package",
long_description=__doc__,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author='Ian Bicking',
author_email='[email protected]',
url='http://formencode.org',
license='PSF',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
package_data={'formencode': ['../docs/*.txt']},
test_suite='formencode.tests',
tests_require=tests_require,
use_2to3=True,
convert_2to3_doctests=doctests,
)