From 20eb00cc284e405461a3073200325d36d8c737aa Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 17 Mar 2024 03:43:32 -0500 Subject: [PATCH 1/3] py(deps): libtmux 0.32.0 -> 0.33.0 (split and new window improvements) --- poetry.lock | 9 +++++---- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7c1cf6c67ba..328694fa13f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -391,13 +391,13 @@ i18n = ["Babel (>=2.7)"] [[package]] name = "libtmux" -version = "0.32.0" +version = "0.33.0" description = "Typed library that provides an ORM wrapper for tmux, a terminal multiplexer." optional = false python-versions = ">=3.8,<4.0" files = [ - {file = "libtmux-0.32.0-py3-none-any.whl", hash = "sha256:6b518dfe88143b4e2488ebee454db312f2da39c2091546c8de0ae26f2f919dbc"}, - {file = "libtmux-0.32.0.tar.gz", hash = "sha256:49b47ef388085dd7caf34034021abda6a0c15df5c1cf2e16f1d3ed52e607d88e"}, + {file = "libtmux-0.33.0-py3-none-any.whl", hash = "sha256:aab8245798750ee6102c7df43e218763be42093e6293cdbe3926a80f21d59b76"}, + {file = "libtmux-0.33.0.tar.gz", hash = "sha256:5267e78a0026571f6b375be64bcf7e1681097adbec465c415007db90927d7a49"}, ] [[package]] @@ -871,6 +871,7 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -1396,4 +1397,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "df7da1de500e925472b27b364246403699c69a1f91dc35b750092707df04f931" +content-hash = "49c88a74a498a205f2a3a4c1fd7a129eb17c48e174e4f69cf0f596a670ecb0b5" diff --git a/pyproject.toml b/pyproject.toml index 6b1772339a4..3b49adfd798 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ tmuxp = 'tmuxp:cli.cli' [tool.poetry.dependencies] python = "^3.8" -libtmux = "~0.32.0" +libtmux = "~0.33.0" colorama = ">=0.3.9" PyYAML = "^6.0" From e1c79d4566daa2c6c052cf1db8a9d720f15e9b35 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 17 Mar 2024 08:52:30 -0500 Subject: [PATCH 2/3] chore: split_window() -> split() --- docs/quickstart.md | 2 +- tests/cli/test_shell.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/quickstart.md b/docs/quickstart.md index 3b41fe96060..fe78bf60fea 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -149,7 +149,7 @@ AL - [Abstraction Layer][abstraction layer] | {meth}`libtmux.Session.windows` | `$ tmux list-windows` | | {meth}`libtmux.Session.new_window` | `$ tmux new-window` | | {meth}`libtmux.Window.panes` | `$ tmux list-panes` | -| {meth}`libtmux.Window.split_window` | `$ tmux split-window` | +| {meth}`libtmux.Window.split` | `$ tmux split-window` | | {meth}`libtmux.Pane.send_keys` | `$ tmux send-keys` | [import]: http://tmuxp.git-pull.com/commands/#import diff --git a/tests/cli/test_shell.py b/tests/cli/test_shell.py index bbc08704c1e..b6ceeceb4ef 100644 --- a/tests/cli/test_shell.py +++ b/tests/cli/test_shell.py @@ -122,7 +122,7 @@ def test_shell( monkeypatch.setenv("HOME", str(tmp_path)) window_name = "my_window" window = session.new_window(window_name=window_name) - window.split_window() + window.split() assert window.active_pane is not None @@ -215,7 +215,7 @@ def test_shell_target_missing( monkeypatch.setenv("HOME", str(tmp_path)) window_name = "my_window" window = session.new_window(window_name=window_name) - window.split_window() + window.split() assert server.socket_name is not None assert session.name is not None @@ -292,7 +292,7 @@ def test_shell_interactive( monkeypatch.setenv("HOME", str(tmp_path)) window_name = "my_window" window = session.new_window(window_name=window_name) - window.split_window() + window.split() assert window.active_pane is not None From db40f0b384d1df66df2ef76f28d4459c4e3b29b2 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 17 Mar 2024 08:53:27 -0500 Subject: [PATCH 3/3] docs(CHANGES): Note libtmux 0.33.0 update --- CHANGES | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 0599f6870a4..14e033b4393 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force +### Breaking changes + +- libtmux: 0.32.0 -> 0.33.0 (#918) + + Move `split_window()` to `split()`. + ### Development - poetry: 1.7.1 -> 1.8.1