File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,10 @@ pip install tableformatter
2525
2626Dependencies
2727------------
28- `` tableformatter `` does not have any required dependencies.
28+ `` tableformatter `` depends on the [ wcwidth] ( https://github.com/jquast/wcwidth ) module for measuring the width of
29+ unicode strings rendered to a terminal.
2930
30- However, if you wish to use the provided optional support for color, then at least one of the following two modules must be installed:
31+ If you wish to use the optional support for color, then at least one of the following two modules must be installed:
3132* [ colorama] ( https://github.com/tartley/colorama )
3233* [ colored] ( https://github.com/dslackw/colored )
3334
Original file line number Diff line number Diff line change 3030Topic :: Software Development :: Libraries :: Python Modules
3131""" .splitlines ())))
3232
33+ INSTALL_REQUIRES = ['wcwidth' ]
34+
3335EXTRAS_REQUIRE = {
34- # POSIX OSes also require wcwidth for correctly estimating the displayed width of unicode chars
35- ":sys_platform!='win32'" : ['wcwidth' ],
36- # Python 3.4 and earlier the typing module backport for optional type hinting support
36+ # Python 3.4 and earlier require the typing module backport for type hinting support
3737 ":python_version<'3.5'" : ['typing' ],
3838 # development only dependencies - install with 'pip install -e .[dev]'
3939 'dev' : [
5656 py_modules = ['tableformatter' ],
5757 keywords = 'table tabular formatter' ,
5858 python_requires = '>=3.4' ,
59+ install_requires = INSTALL_REQUIRES ,
5960 extras_require = EXTRAS_REQUIRE ,
6061)
Original file line number Diff line number Diff line change 1515 pytest
1616 pytest-cov
1717 pytest-mock
18- wcwidth
1918commands =
2019 py.test {posargs} --cov
2120 codecov
2524 mock
2625 pytest
2726 pytest-mock
28- wcwidth
2927commands = py.test -v
3028
3129[testenv:py35-win]
4038 pytest
4139 pytest-cov
4240 pytest-mock
43- wcwidth
4441commands =
4542 py.test {posargs} --cov
4643 codecov
@@ -58,6 +55,5 @@ commands =
5855deps =
5956 pytest
6057 pytest-mock
61- wcwidth
6258commands = py.test -v
6359
You can’t perform that action at this time.
0 commit comments