From 1145060cce836089c5acac49e92338359a9f22d1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Fri, 28 Nov 2025 12:08:05 -0600 Subject: [PATCH 1/3] chore(TMUX_MAX_VERSION): 3.4 to 3.6 --- src/libtmux/common.py | 2 +- tests/legacy_api/test_common.py | 2 +- tests/test_common.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libtmux/common.py b/src/libtmux/common.py index ac9b9b7f1..886b160fb 100644 --- a/src/libtmux/common.py +++ b/src/libtmux/common.py @@ -27,7 +27,7 @@ TMUX_MIN_VERSION = "1.8" #: Most recent version of tmux supported -TMUX_MAX_VERSION = "3.4" +TMUX_MAX_VERSION = "3.6" SessionDict = dict[str, t.Any] WindowDict = dict[str, t.Any] diff --git a/tests/legacy_api/test_common.py b/tests/legacy_api/test_common.py index fb32427e0..44c1742fb 100644 --- a/tests/legacy_api/test_common.py +++ b/tests/legacy_api/test_common.py @@ -54,7 +54,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi: def test_allows_next_version(monkeypatch: pytest.MonkeyPatch) -> None: """Assert get_version() supports next version.""" - TMUX_NEXT_VERSION = str(float(TMUX_MAX_VERSION) + 0.1) + TMUX_NEXT_VERSION = "3.7" class Hi: stdout: t.ClassVar = [f"tmux next-{TMUX_NEXT_VERSION}"] diff --git a/tests/test_common.py b/tests/test_common.py index 3d67182c1..3aa045bc4 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -298,10 +298,10 @@ class VersionParsingFixture(t.NamedTuple): ), VersionParsingFixture( test_id="next_version", - mock_stdout=[f"tmux next-{float(TMUX_MAX_VERSION) + 0.1!s}"], + mock_stdout=["tmux next-3.7"], mock_stderr=None, mock_platform=None, - expected_version=str(float(TMUX_MAX_VERSION) + 0.1), + expected_version="3.7", raises=False, exc_msg_regex=None, ), From 1602a4e7e544bc516d67786768a17995684bf7d9 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Fri, 28 Nov 2025 14:10:36 -0600 Subject: [PATCH 2/3] ci(tests) Add tmux 3.6 to testgrid See also: https://github.com/tmux/tmux/blob/3.6/CHANGES --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c554ec875..b0421f8e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: python-version: ['3.14'] - tmux-version: ['2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', '3.4', '3.5', 'master'] + tmux-version: ['2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', '3.4', '3.5', '3.6', 'master'] steps: - uses: actions/checkout@v5 From e921282b81834d4050c241beb31ea050d312729a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Fri, 28 Nov 2025 14:14:15 -0600 Subject: [PATCH 3/3] docs(CHANGES) Note tmux 3.6 support --- CHANGES | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 93b8c2836..dd4b1c328 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,12 @@ $ uvx --from 'libtmux' --prerelease allow python - _Future release notes will be placed here_ +### What's new + +#### tmux 3.6 support (#607) + +Added tmux 3.6 to test grid and `TMUX_MAX_VERSION` 3.4 -> 3.6. + ## libtmux 0.47.0 (2025-11-01) ### Breaking changes