Skip to content

Commit 204785b

Browse files
authored
tmux 3.6 support (#607)
# Changes ## Bump tmux max version to tmux 3.6 See release notes: https://github.com/tmux/tmux/blob/3.6/CHANGES#L1
2 parents 4601185 + e921282 commit 204785b

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: ['3.14']
14-
tmux-version: ['2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', '3.4', '3.5', 'master']
14+
tmux-version: ['2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', '3.4', '3.5', '3.6', 'master']
1515
steps:
1616
- uses: actions/checkout@v5
1717

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ $ uvx --from 'libtmux' --prerelease allow python
3434

3535
- _Future release notes will be placed here_
3636

37+
### What's new
38+
39+
#### tmux 3.6 support (#607)
40+
41+
Added tmux 3.6 to test grid and `TMUX_MAX_VERSION` 3.4 -> 3.6.
42+
3743
## libtmux 0.47.0 (2025-11-01)
3844

3945
### Breaking changes

src/libtmux/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
TMUX_MIN_VERSION = "1.8"
2828

2929
#: Most recent version of tmux supported
30-
TMUX_MAX_VERSION = "3.4"
30+
TMUX_MAX_VERSION = "3.6"
3131

3232
SessionDict = dict[str, t.Any]
3333
WindowDict = dict[str, t.Any]

tests/legacy_api/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
5454

5555
def test_allows_next_version(monkeypatch: pytest.MonkeyPatch) -> None:
5656
"""Assert get_version() supports next version."""
57-
TMUX_NEXT_VERSION = str(float(TMUX_MAX_VERSION) + 0.1)
57+
TMUX_NEXT_VERSION = "3.7"
5858

5959
class Hi:
6060
stdout: t.ClassVar = [f"tmux next-{TMUX_NEXT_VERSION}"]

tests/test_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@ class VersionParsingFixture(t.NamedTuple):
298298
),
299299
VersionParsingFixture(
300300
test_id="next_version",
301-
mock_stdout=[f"tmux next-{float(TMUX_MAX_VERSION) + 0.1!s}"],
301+
mock_stdout=["tmux next-3.7"],
302302
mock_stderr=None,
303303
mock_platform=None,
304-
expected_version=str(float(TMUX_MAX_VERSION) + 0.1),
304+
expected_version="3.7",
305305
raises=False,
306306
exc_msg_regex=None,
307307
),

0 commit comments

Comments
 (0)