From 4852924426d75bcac270522d244b021a2ad8f71e Mon Sep 17 00:00:00 2001 From: smac89 <8305511+smac89@users.noreply.github.com> Date: Thu, 3 Feb 2022 13:51:44 -0600 Subject: [PATCH 1/2] improve detection of CI --- pipenv/environments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/environments.py b/pipenv/environments.py index 622bf2c06a..4395e7cd5e 100644 --- a/pipenv/environments.py +++ b/pipenv/environments.py @@ -99,7 +99,7 @@ def normalize_pipfile_path(p): os.environ.pop("__PYVENV_LAUNCHER__", None) # Internal, to tell whether the command line session is interactive. SESSION_IS_INTERACTIVE = _isatty(sys.stdout) -PIPENV_IS_CI = bool("CI" in os.environ or "TF_BUILD" in os.environ) +PIPENV_IS_CI = env_to_bool(os.environ.get('CI') or os.environ.get('TF_BUILD') or False) PIPENV_COLORBLIND = bool(os.environ.get("PIPENV_COLORBLIND")) """If set, disable terminal colors. From 652b492152b3aa7e4fd07d58b518b7a30b043ac5 Mon Sep 17 00:00:00 2001 From: smac89 <8305511+smac89@users.noreply.github.com> Date: Thu, 3 Feb 2022 14:01:13 -0600 Subject: [PATCH 2/2] Create 4944.bugfix.mdB --- news/4944.bugfix.mdB | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/4944.bugfix.mdB diff --git a/news/4944.bugfix.mdB b/news/4944.bugfix.mdB new file mode 100644 index 0000000000..e27a224f87 --- /dev/null +++ b/news/4944.bugfix.mdB @@ -0,0 +1 @@ +Use `CI` environment value, over mere existence of name