-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
69 lines (58 loc) · 1.74 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
def fread(filepath):
with open(filepath) as f:
return f.read()
def version():
content = fread('flask_storage/__init__.py')
m = re.findall(r'__version__\s*=\s*\'(.*)\'', content)
return m[0]
extras_require = dict(
qiniu=['qiniu'],
s3=['boto'],
full=['qiniu', 'boto'],
)
setup(
name='Flask-Storage',
version=version(),
author='Hsiaoming Yang',
author_email='[email protected]',
url='https://github.com/lepture/flask-storage',
packages=["flask_storage"],
description="Flask upload and storage extensions.",
long_description=fread('README.rst'),
license='BSD',
platforms='any',
zip_safe=False,
include_package_data=True,
install_requires=[
'Flask',
],
tests_require=[
'nose',
],
extras_require=extras_require,
test_suite='nose.collector',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)