-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
55 lines (49 loc) · 1.75 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
from __future__ import absolute_import
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.develop import develop as STDevelopCmd
class DevelopCmd(STDevelopCmd):
def run(self):
# add in requirements for testing only when using the develop command
self.distribution.install_requires.extend([
'mock',
'nose',
])
STDevelopCmd.run(self)
cdir = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(cdir, 'readme.rst')).read()
CHANGELOG = open(os.path.join(cdir, 'changelog.rst')).read()
VERSION = open(os.path.join(cdir, 'savalidation', 'version.txt')).read().strip()
setup(
name='SAValidation',
version=VERSION,
description="Active Record like validation on SQLAlchemy declarative model objects",
long_description=README + '\n\n' + CHANGELOG,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Database',
],
author='Randy Syring',
author_email='[email protected]',
url='https://github.com/blazelibs/sqlalchemy-validation',
license='BSD',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
cmdclass={'develop': DevelopCmd},
install_requires=[
'SQLAlchemy>=0.7.6',
'python-dateutil',
'FormEncode>={}'.format(
'1.2' if sys.version_info.major == 2 else '1.3.0a1',
),
'six',
],
)