Commit 22dceccb authored by MinchinWeb's avatar MinchinWeb

Use `colorama` to provide color on Windows CMD

Fixes #32
parent d51462d5
......@@ -20,6 +20,11 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")
conditional_dependencies = {
"colorama>=0.2.5": "win32" in sys.platform,
}
setup(
name = "topydo",
packages = find_packages(exclude=["test"]),
......@@ -30,7 +35,7 @@ setup(
url = "https://github.com/bram85/topydo",
install_requires = [
'six >= 1.9.0',
],
] + [p for p, cond in conditional_dependencies.items() if cond],
extras_require = {
'ical': ['icalendar'],
'prompt-toolkit': ['prompt-toolkit >= 0.39'],
......
......@@ -20,6 +20,10 @@ import sys
import getopt
from topydo.cli.CLIApplicationBase import MAIN_OPTS, error
from topydo.cli.CLI import CLIApplication
# enable color on windows CMD
if "win32" in sys.platform:
import colorama
colorama.init()
def main():
""" Main entry point of the CLI. """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment