/
setup.py
91 lines (86 loc) · 2.3 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
91
import os.path as osp
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
# pip install -e .[develop]
develop_requires = [
'arrow',
'BlazeWeb',
'coverage',
# tests rely on SQL string comparison which fails with SA < 0.9
'SQLAlchemy>=0.9.0'
'SQLAlchemyBWC',
'mock',
'nose', # required to import some blazeweb helpers
'psycopg2-binary',
# pinned to version in our package index.
'pyodbc==4.0.30',
'pytest',
'pytest-cov',
'Flask',
'Flask-Bootstrap',
'Flask-Script',
'Flask-SQLAlchemy',
'Flask-WebTest',
'pyquery',
'sqlalchemy_pyodbc_mssql',
'sqlalchemy_utils',
'sqlalchemybwc',
'wrapt',
'xlrd',
'xlsxwriter',
'xlwt',
]
cdir = osp.abspath(osp.dirname(__file__))
README = open(osp.join(cdir, 'readme.rst')).read()
CHANGELOG = open(osp.join(cdir, 'changelog.rst')).read()
version_fpath = osp.join(cdir, 'webgrid', 'version.py')
version_globals = {}
with open(version_fpath) as fo:
exec(fo.read(), version_globals)
setup(
name="WebGrid",
version=version_globals['VERSION'],
description="A library for rendering HTML tables and Excel files from SQLAlchemy models.",
long_description='\n\n'.join((README, CHANGELOG)),
author="Randy Syring",
author_email="randy.syring@level12.io",
url='https://github.com/level12/webgrid',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
license='BSD-3-Clause',
packages=['webgrid'],
extras_require={
'develop': develop_requires,
'i18n': [
'morphi'
]
},
zip_safe=False,
include_package_data=True,
setup_requires=[
'Babel'
],
install_requires=[
'BlazeUtils>=0.6.0',
'FormEncode',
'SQLAlchemy',
'jinja2',
'python-dateutil',
'Werkzeug<1.0.0',
],
entry_points="""
[console_scripts]
webgrid_ta = webgrid_ta.manage:script_entry
""",
)