Skip to content

Commit 5570554

Browse files
committed
Removed colorama as a dependency since it was unecessary
1 parent 75f2199 commit 5570554

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Main Features
1616
- Good unicode support including for characters which are more than 1 visual character wide
1717
- Support for Python 3.4+ on Windows, macOS, and Linux
1818

19+
1920
Installation
2021
============
2122
```Bash
@@ -24,12 +25,13 @@ pip install tableformatter
2425

2526
Dependencies
2627
------------
27-
``tableformatter`` requires that at least one of the following two modules are installed to support table colors:
28+
``tableformatter`` does not have any required dependencies.
29+
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:
2831
* [colorama](https://github.com/tartley/colorama)
2932
* [colored](https://github.com/dslackw/colored)
3033

31-
**pip** will treat ``colorama`` as a dependency and install if it isn't already installed. However, if ``colored`` is
32-
installed, then it will be used instead of ``colorama``.
34+
If both ``colorama`` and ``colored`` are installed, then ``colored`` will take precedence.
3335

3436

3537
Usage

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@
3030
Topic :: Software Development :: Libraries :: Python Modules
3131
""".splitlines())))
3232

33-
INSTALL_REQUIRES = ['colorama']
34-
3533
EXTRAS_REQUIRE = {
3634
# POSIX OSes also require wcwidth for correctly estimating the displayed width of unicode chars
3735
":sys_platform!='win32'": ['wcwidth'],
38-
# Python 3.4 and earlier require contextlib2 for temporarily redirecting stderr and stdout
36+
# Python 3.4 and earlier the typing module backport for optional type hinting support
3937
":python_version<'3.5'": ['typing'],
40-
# development only dependencies
41-
# install with 'pip install -e .[dev]'
38+
# development only dependencies - install with 'pip install -e .[dev]'
4239
'dev': [
4340
'pytest', 'pytest-cov', 'tox', 'pylint', 'sphinx', 'sphinx-rtd-theme',
4441
'sphinx-autobuild', 'invoke', 'twine>=1.11',
@@ -59,6 +56,5 @@
5956
py_modules = ['TableFormatter'],
6057
keywords='table tabular formatter',
6158
python_requires='>=3.4',
62-
install_requires=INSTALL_REQUIRES,
6359
extras_require=EXTRAS_REQUIRE,
6460
)

0 commit comments

Comments
 (0)