-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
66 lines (60 loc) · 2.31 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
#!/usr/bin/python
# coding=utf-8
"""
Setuptools setup file, used to install or test 'tableformatter'
"""
from setuptools import setup
DESCRIPTION = "python-tableformatter - Tabular data formatter allowing printing from both arbitrary tuples of strings or object inspection"
LONG_DESCRIPTION = """tableformatter is a tabular data formatter allowing printing from both arbitrary tuples of strings or object inspection.
It converts your data into a string form suitable for pretty-printing as a table. The goal is to make it quick and easy
for developers to display tabular data in an aesthetically pleasing fashion. It provides a simple public API, but allows
fine-grained control over almost every aspect of how the data is formatted.
"""
CLASSIFIERS = list(filter(None, map(str.strip,
"""
Development Status :: 5 - Production/Stable
Environment :: Console
Operating System :: OS Independent
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
""".splitlines())))
INSTALL_REQUIRES = ['wcwidth']
EXTRAS_REQUIRE = {
# Python 3.4 and earlier require the typing module backport for type hinting support
":python_version<'3.5'": ['typing'],
# development only dependencies - install with 'pip install -e .[dev]'
'dev': [
'pytest', 'pytest-cov', 'tox', 'invoke', 'twine>=1.11', 'setuptools>=39.1', 'wheel>=0.31'
]
}
PACKAGE_DATA = {
'': ['py.typed']
}
setup(
name="tableformatter",
use_scm_version=True,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
author='Eric Lin',
author_email='[email protected]',
url='https://github.com/python-tableformatter/tableformatter',
license='MIT',
platforms=['any'],
py_modules=['tableformatter'],
keywords='table tabular formatter',
python_requires='>=3.4',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
package_data=PACKAGE_DATA,
)