forked from dahlia/sqlalchemy-imageattach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (63 loc) · 2.12 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
69
70
71
72
73
74
75
76
import os.path
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from sqlalchemy_imageattach.version import VERSION
def readme():
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
return f.read()
except (IOError, OSError):
return ''
class pytest(test):
def finalize_options(self):
test.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
from pytest import main
errno = main(self.test_args)
raise SystemExit(errno)
install_requires = [
'SQLAlchemy >= 0.8.0',
'Wand >= 0.3.0'
]
tests_require = [
'pytest >= 2.6.0',
'WebOb'
]
setup(
name='SQLAlchemy-ImageAttach',
version=VERSION,
description='SQLAlchemy extension for attaching images to entity objects',
long_description=readme(),
url='https://github.com/dahlia/sqlalchemy-imageattach',
author='Hong Minhee',
author_email='minhee' '@' 'dahlia.kr',
license='MIT License',
packages=find_packages(exclude=['tests', 'tests.stores']),
install_requires=install_requires,
tests_require=tests_require,
extras_require={'tests': tests_require},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: Stackless',
'Topic :: Database :: Front-Ends',
'Topic :: Multimedia :: Graphics'
],
cmdclass={'test': pytest}
)