Skip to content

Commit 9186f39

Browse files
authored
build: tmux 3.3a support (#387)
2 parents 973ddab + 9e115cc commit 9186f39

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
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.7", "3.10"]
14-
tmux-version: ["2.6", "2.7", "2.8", "3.0a", "3.1b", "3.2a", "master"]
14+
tmux-version: ["2.6", "2.7", "2.8", "3.0a", "3.1b", "3.2a", "3.3a", "master"]
1515
steps:
1616
- uses: actions/checkout@v3
1717

CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ $ pip install --user --upgrade --pre libtmux
1515
## Compatibility
1616

1717
- Brought back python 3.7 and 3.8 support ({issue}`375`)
18+
- Support for tmux 3.3a
19+
20+
- Add to CI
21+
- Bump `TMUX_MAX_VERSION` from 2.4 -> 3.3
22+
23+
_2.4 to 3.3a already worked, this is just the constant
24+
being updated._
1825

1926
### Development
2027

libtmux/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
TMUX_MIN_VERSION = "1.8"
2525

2626
#: Most recent version of tmux supported
27-
TMUX_MAX_VERSION = "2.4"
27+
TMUX_MAX_VERSION = "3.3"
2828

2929
SessionDict = t.Dict[str, t.Any]
3030
WindowDict = t.Dict[str, t.Any]

tests/test_common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ class Hi:
4646

4747

4848
def test_allows_next_version(monkeypatch):
49+
TMUX_NEXT_VERSION = str(float(TMUX_MAX_VERSION) + 0.1)
50+
4951
def mock_tmux_cmd(param):
5052
class Hi:
51-
stdout = ["tmux next-2.9"]
53+
stdout = [f"tmux next-{TMUX_NEXT_VERSION}"]
5254
stderr = None
5355

5456
return Hi()
@@ -58,7 +60,7 @@ class Hi:
5860
assert has_minimum_version()
5961
assert has_gte_version(TMUX_MIN_VERSION)
6062
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
61-
assert "2.9" == get_version()
63+
assert TMUX_NEXT_VERSION == get_version()
6264

6365

6466
def test_get_version_openbsd(monkeypatch):

0 commit comments

Comments
 (0)