From b4d9e66b469ef7c18a1f228f803505b7f550bdc1 Mon Sep 17 00:00:00 2001 From: Niander Assis <4544122+niander@users.noreply.github.com> Date: Tue, 15 Mar 2022 23:51:51 -0700 Subject: [PATCH] Use proper PEP 508 environment marker to install colorama on Windows only (#257) --- HISTORY.rst | 5 +++++ setup.py | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 2f71174..f730cb4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +0.9.1 ++++++ + +* Use proper PEP 508 environment marker to install colorama on Windows only (#257) + 0.9.0 +++++ diff --git a/setup.py b/setup.py index bd4ca35..f62f98c 100644 --- a/setup.py +++ b/setup.py @@ -8,20 +8,18 @@ import sys from setuptools import setup -VERSION = '0.9.0' +VERSION = '0.9.1' DEPENDENCIES = [ 'argcomplete', 'jmespath', 'pygments', 'pyyaml', - 'tabulate' + 'tabulate', + # On Windows, colorama is required for legacy terminals. + 'colorama; sys_platform == "win32"' ] -# On Windows, colorama is required for legacy terminals. -if sys.platform == 'win32': - DEPENDENCIES.append('colorama') - with open('README.rst', 'r') as f: README = f.read()