-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup.py
61 lines (52 loc) · 1.83 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
from setuptools import setup, find_packages
import os, sys
version = '0.11.0'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
TEST_DEPENDENCIES = ['mock',
'requests',
'ming',
'boto3',
'google-cloud-storage',
'flaky']
py_version = sys.version_info[:2]
if py_version != (3, 2):
TEST_DEPENDENCIES += ['boto', 'coverage']
else:
TEST_DEPENDENCIES += ['coverage < 4.0']
INSTALL_DEPENDENCIES = []
if py_version >= (3, 0):
INSTALL_DEPENDENCIES += ["anyascii"]
if py_version == (2, 6):
INSTALL_DEPENDENCIES += ['importlib']
TEST_DEPENDENCIES += ['ordereddict', 'pillow < 4.0.0', 'WebTest < 2.0.24', 'sqlalchemy < 1.2']
else:
TEST_DEPENDENCIES += ['pillow', 'WebTest', 'sqlalchemy']
setup(name='filedepot',
version=version,
description="Toolkit for storing files and attachments in web applications",
long_description=README,
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2"
],
keywords='storage files s3 gridfs mongodb aws sqlalchemy wsgi',
author='Alessandro Molina',
author_email='[email protected]',
url='https://github.com/amol-/depot',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'tests']),
include_package_data=True,
install_requires=INSTALL_DEPENDENCIES,
tests_require=TEST_DEPENDENCIES,
extras_require={
'testing': TEST_DEPENDENCIES,
},
zip_safe=False,
)