From 230239b7f4e94c1fdb9377c9bc4c5b7fa66fc353 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sat, 23 Aug 2025 15:25:54 -0700 Subject: [PATCH 1/4] Upgrade click to stop the pager issue. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e2f8eef..af97b3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [{ name = "dbcli", email = "litecli-users@googlegroups.com" }] urls = { "homepage" = "https://github.com/dbcli/litecli" } dependencies = [ "cli-helpers[styles]>=2.2.1", - "click>=4.1", + "click>=8.2", "configobj>=5.0.5", "prompt-toolkit>=3.0.3,<4.0.0", "pygments>=1.6", From b182b39ae7e6c920cbb284891aff907641d2dc7e Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sat, 23 Aug 2025 15:26:49 -0700 Subject: [PATCH 2/4] Update Changelog. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3352c4..6be9aa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Upcoming (TBC) + +### Bug Fixes + +* Upgrade Click to be 8.2+ to prevent pager mess up with pager env var has spaces. + ## 1.16.0 - 2025-08-16 ### Features From 2e0e9d2fb12139a6a825a6ed9c478a6c0fd0f71f Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sat, 23 Aug 2025 15:31:42 -0700 Subject: [PATCH 3/4] Make Click version relaxed. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index af97b3e..aa55428 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [{ name = "dbcli", email = "litecli-users@googlegroups.com" }] urls = { "homepage" = "https://github.com/dbcli/litecli" } dependencies = [ "cli-helpers[styles]>=2.2.1", - "click>=8.2", + "click>=4.1,!=8.1.*", "configobj>=5.0.5", "prompt-toolkit>=3.0.3,<4.0.0", "pygments>=1.6", From 912f008bc13ea3bddedad87df4413b4a3667ce99 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sat, 23 Aug 2025 15:41:23 -0700 Subject: [PATCH 4/4] Clarify Click upgrade note in CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be9aa5..91c7001 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### Bug Fixes -* Upgrade Click to be 8.2+ to prevent pager mess up with pager env var has spaces. +* Avoid Click 8.1.* to prevent messing up the pager when the PAGER env var has a string with spaces. ## 1.16.0 - 2025-08-16