-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
83 lines (78 loc) · 2.06 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
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',
'coverage',
'mock',
'openpyxl',
'psycopg2-binary',
'pyodbc',
'pytest',
'pytest-cov',
'Flask',
'Flask-Bootstrap',
'Flask-SQLAlchemy',
'Flask-WebTest',
'Flask-WTF',
'pyquery',
'sqlalchemy_pyodbc_mssql',
'sqlalchemy_utils',
'wrapt',
'xlsxwriter',
]
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="[email protected]",
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.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
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',
'dataclasses; python_version < "3.7"',
'SQLAlchemy>=1.4.20',
'jinja2',
'python-dateutil',
'Werkzeug',
],
entry_points="""
[console_scripts]
webgrid_ta = webgrid_ta.manage:script_entry
""",
)