-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·64 lines (55 loc) · 2.31 KB
/
setup.py
File metadata and controls
executable file
·64 lines (55 loc) · 2.31 KB
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
"""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
"""
from __future__ import absolute_import
import sys
from setuptools import setup, find_packages
import platform
if not (2,7) <= sys.version_info[:2] < (3,0) and not (3,6) <= sys.version_info[:2]:
raise ImportError('Python version not supported')
tests_require = [
'pytest<4.7' if sys.version_info[:2] < (3,0) else 'pytest',
'dnspython==1.16.0' if sys.version_info[:2] < (3,0) else 'dnspython>=2.0.0',
'pycountry<19' if sys.version_info < (3,0) else 'pycountry']
setup_requires = [
'setuptools_scm<6.0' if sys.version_info[:2] < (3,0) else 'setuptools_scm',
'setuptools_scm_git_archive',
]
doctests = ['docs/htmlfill.txt', 'docs/Validator.txt',
'formencode/tests/non_empty.txt']
setup(name='FormEncode',
# requires_python='>=2.7,!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,!=3.5' # PEP345
description="HTML form validation, generation, and conversion package",
long_description=__doc__,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author='Ian Bicking',
author_email='ianb@colorstudy.com',
url='http://formencode.org',
license='MIT',
data_files = [("", ["LICENSE.txt"])],
zip_safe=False,
packages=find_packages(),
include_package_data=True,
package_data={'formencode': ['../docs/*.txt']},
test_suite='formencode.tests',
install_requires=['six'],
tests_require=tests_require,
use_scm_version=True,
setup_requires=setup_requires,
extras_require={'testing': tests_require},
)