forked from pallets-eco/flask-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (74 loc) · 2.19 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Fix for older setuptools
import re
import os
import sys
from setuptools import setup, find_packages
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def desc():
info = read('README.rst')
try:
return info + '\n\n' + read('doc/changelog.rst')
except IOError:
return info
# grep flask_admin/__init__.py since python 3.x cannot import it before using 2to3
file_text = read(fpath('flask_admin/__init__.py'))
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(attrname)
strval, = re.findall(pattern, file_text)
return strval
extras_require = {
'aws': ['boto'],
'azure': ['azure-storage-blob']
}
install_requires = [
'Flask>=0.7',
'wtforms'
]
setup(
name='Flask-Admin',
version=grep('__version__'),
url='https://github.com/flask-admin/flask-admin/',
license='BSD',
author=grep('__author__'),
author_email=grep('__email__'),
description='Simple and extensible admin interface framework for Flask',
long_description=desc(),
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
extras_require=extras_require,
install_requires=install_requires,
tests_require=[
'pytest',
'pillow>=3.3.2',
'mongoengine',
'pymongo',
'wtf-peewee',
'sqlalchemy',
'flask-mongoengine<=0.21.0',
'flask-sqlalchemy',
'flask-babelex',
'shapely',
'geoalchemy2',
'psycopg2',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
test_suite='flask_admin.tests'
)