forked from stefanofontanelli/ColanderAlchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (61 loc) · 2.61 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
# setup.py
# Copyright (C) 2012 the ColanderAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of ColanderAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import os
import sys
from setuptools import setup, find_packages
version = '0.3.4.dev1'
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
tests_require = []
install_requires = [
'colander >= 1.0b1',
]
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
# In Python < 2.7 use unittest2.
tests_require.append('unittest2')
# SQLAlchemy dropped 2.6 support in 1.2
install_requires.append('SQLAlchemy >= 0.8dev, < 1.2')
else:
install_requires.append('SQLAlchemy >= 0.8dev')
setup(name='ColanderAlchemy',
version=version,
description="Autogenerate Colander schemas based on SQLAlchemy "
"models.",
long_description=README + '\n\n' + CHANGES,
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Database'],
keywords='serialize deserialize validate schema validation '
'colander sqlalchemy',
author='Stefano Fontanelli',
author_email='s.fontanelli@asidev.com',
url='https://github.com/stefanofontanelli/ColanderAlchemy',
license='MIT',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=True,
install_requires=install_requires,
tests_require=tests_require,
test_suite='tests',
)