From 9cc7274c9c4b99d16d1df5e968efa162773acd66 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 23 Feb 2025 13:39:03 -0600 Subject: [PATCH 1/3] py(deps) libtmux 0.44.2 -> 0.45.0 ## py(deps) libtmux 0.44.2 -> 0.45.0 See also: https://libtmux.git-pull.com/history.html#libtmux-0-45-0-2025-02-23 --- pyproject.toml | 2 +- uv.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 47712df53d..cc600c1bcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ include = [ { path = "conftest.py", format = "sdist" }, ] dependencies = [ - "libtmux~=0.44.2", + "libtmux~=0.45.0", "colorama>=0.3.9", "PyYAML>=6.0" ] diff --git a/uv.lock b/uv.lock index 6b4155dfb6..f24576b0bd 100644 --- a/uv.lock +++ b/uv.lock @@ -381,11 +381,11 @@ wheels = [ [[package]] name = "libtmux" -version = "0.44.2" +version = "0.45.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/87/f4/66056457031778ba8191cde30144f6a1a2d29c73713a646800a046e1a35b/libtmux-0.44.2.tar.gz", hash = "sha256:fb606c4ab3236d30cdaba6a88cc8e74b9cf28df993b183f4a5a1afdd313ee824", size = 326221 } +sdist = { url = "https://files.pythonhosted.org/packages/e3/f0/d346cbfad84f6c807642be44a777429ec6bae7685d1255168ac16d1b8e57/libtmux-0.45.0.tar.gz", hash = "sha256:7f13a5fda3eef37f87f6b44692da290032cf3dbabb9e65699dd578f49f70bc8f", size = 327919 } wheels = [ - { url = "https://files.pythonhosted.org/packages/3e/2c/af0411a05c620bee82c1ff8950216f660cbcd86257386d26e8d2d35606de/libtmux-0.44.2-py3-none-any.whl", hash = "sha256:846b37c5f2072f72a5854dadbf6925f65d0fe502ffa7c94de6c10de38a32dae1", size = 58003 }, + { url = "https://files.pythonhosted.org/packages/34/87/a801f87de3caa837861052c9eee69d39b75e9ecaa5dc86a512e762a462e4/libtmux-0.45.0-py3-none-any.whl", hash = "sha256:6c9cde8f00f73817ad05f4f09900d410ea553b82901e7e49a433766c98428bd2", size = 60243 }, ] [[package]] @@ -1316,7 +1316,7 @@ testing = [ [package.metadata] requires-dist = [ { name = "colorama", specifier = ">=0.3.9" }, - { name = "libtmux", specifier = "~=0.44.2" }, + { name = "libtmux", specifier = "~=0.45.0" }, { name = "pyyaml", specifier = ">=6.0" }, ] From b9317425a730ca52f010de29cd550370031910ec Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 23 Feb 2025 13:41:35 -0600 Subject: [PATCH 2/3] refactor: Bump test helpers for libtmux 0.45.0 --- conftest.py | 2 +- tests/tests/test_helpers.py | 3 ++- tests/workspace/test_builder.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 4a22edb1db..1c6c63e6b6 100644 --- a/conftest.py +++ b/conftest.py @@ -18,7 +18,7 @@ import pytest from _pytest.doctest import DoctestItem -from libtmux.test import namer +from libtmux.test.random import namer from tests.fixtures import utils as test_utils from tmuxp.workspace.finders import get_workspace_dir diff --git a/tests/tests/test_helpers.py b/tests/tests/test_helpers.py index 0888cd5e03..aa04cee8c0 100644 --- a/tests/tests/test_helpers.py +++ b/tests/tests/test_helpers.py @@ -5,7 +5,8 @@ import typing as t import pytest -from libtmux.test import get_test_session_name, temp_session +from libtmux.test.random import get_test_session_name +from libtmux.test.temporary import temp_session if t.TYPE_CHECKING: from libtmux.server import Server diff --git a/tests/workspace/test_builder.py b/tests/workspace/test_builder.py index a888a1ca56..2dc55270bf 100644 --- a/tests/workspace/test_builder.py +++ b/tests/workspace/test_builder.py @@ -16,7 +16,8 @@ from libtmux.exc import LibTmuxException from libtmux.pane import Pane from libtmux.session import Session -from libtmux.test import retry_until, temp_session +from libtmux.test.retry import retry_until +from libtmux.test.temporary import temp_session from libtmux.window import Window from tests.constants import EXAMPLE_PATH, FIXTURE_PATH From e6ac733c2a20bacac3dc4679211c064113107471 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 23 Feb 2025 13:42:53 -0600 Subject: [PATCH 3/3] docs(CHANGES) Note libtmux 0.45.0 bump --- CHANGES | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index fd953409da..b95cf5e591 100644 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force - _Future release notes will be placed here_ +### Breaking changes + +- libtmux: Bump minimum version from 0.44.2 -> 0.45.0 (#968) + + 0.45.0+ needs this release of tmuxp to stay up-to-date with test helpers. + ### Development - CI: Check CLI modules runtime dependencies (#967)