You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.2 KiB
91 lines
2.2 KiB
# Fix for older setuptools
|
|
import re
|
|
import os
|
|
|
|
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 quartadmin/__init__.py since python 3.x cannot import it before using 2to3
|
|
file_text = read(fpath('quartadmin/__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 = [
|
|
'quart>=0.18.0',
|
|
'wtforms'
|
|
]
|
|
|
|
|
|
setup(
|
|
name='quartadmin',
|
|
version=grep('__version__'),
|
|
url='https://git.snyman.info/quartadmin/quartadmin/',
|
|
license='BSD',
|
|
python_requires='>=3.6',
|
|
author=grep('__author__'),
|
|
author_email=grep('__email__'),
|
|
description='Simple and extensible admin interface framework for Quart, forked from Flask-Admin',
|
|
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='quartadmin.tests'
|
|
)
|