diff --git a/.github/tmux-releases.toml b/.github/tmux-releases.toml index 14a5541c53..d0c5852cbb 100644 --- a/.github/tmux-releases.toml +++ b/.github/tmux-releases.toml @@ -2,7 +2,6 @@ # https://github.com/tmux/tmux/releases [releases] -"3.2a" = "551553a4f82beaa8dadc9256800bcc284d7c000081e47aa6ecbb6ff36eacd05f" "3.3a" = "e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f" "3.4" = "551ab8dea0bf505c0ad6b7bb35ef567cdde0ccb84357df142c254f35a23e19aa" "3.5" = "2fe01942e7e7d93f524a22f2c883822c06bc258a4d61dba4b407353d7081950f" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0188579236..e6b895c7c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: python-version: ['3.15'] - tmux-version: ['3.2a', '3.3a', '3.4', '3.5', '3.6', '3.7', '3.8', 'master'] + tmux-version: ['3.3a', '3.4', '3.5', '3.6', '3.7', '3.8', 'master'] steps: - uses: actions/checkout@v7 diff --git a/AGENTS.md b/AGENTS.md index 45ef26355c..3b0207ab4e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,7 +51,7 @@ live in [src/tmuxp/AGENTS.md](src/tmuxp/AGENTS.md). ## Domain facts -- tmux 3.2+, Python 3.11+ (`requires-python` in `pyproject.toml`); mypy runs +- tmux 3.3a+, Python 3.11+ (`requires-python` in `pyproject.toml`); mypy runs in strict mode. - One console script (`tmuxp`) and one plugin entry-point group (`tmuxp.workspace_builders`). diff --git a/CHANGES b/CHANGES index 5cbc9ade1f..321a98d051 100644 --- a/CHANGES +++ b/CHANGES @@ -44,6 +44,29 @@ $ tmuxp@next load yoursession _Notes on the upcoming release will go here._ +### Breaking changes + +#### tmux 3.3a+ is now required (#1109) + +tmux 3.2a is no longer supported, through the libtmux 0.65.0 update; tmuxp +1.78.0 was the last release that runs on tmux 3.2a. A plugin's default +`tmux_min_version` is now 3.3a. + +### Dependencies + +#### Minimum `libtmux~=0.65.0` (was `~=0.64.0`) (#1109) + +Picks up libtmux 0.65.0, which publishes a capability matrix of the tmux +features it gates by release and requires tmux 3.3a. See the +[libtmux 0.65.0 release notes](https://libtmux.git-pull.com/history.html#libtmux-0-65-0-2026-11-22). + +### Fixes + +#### A tmux older than libtmux supports prints a message (#1109) + +`tmuxp` prints libtmux's version message and exits when tmux is older than +libtmux supports, instead of ending in a `VersionTooLow` traceback. + ## tmuxp 1.78.0 (2026-11-21) tmuxp 1.78.0 updates libtmux to 0.64.0, a fixes-only release. It has no diff --git a/README.md b/README.md index ae4f78a7c1..4260d6c627 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,7 @@ See donation options at . # Project details -- tmux support: 3.2+ +- tmux support: 3.3a+ - python support: >= 3.11, pypy, pypy3 - Source: - Docs: diff --git a/docs/about_tmux.md b/docs/about_tmux.md index 1eee7989e1..7ee04e1a17 100644 --- a/docs/about_tmux.md +++ b/docs/about_tmux.md @@ -152,7 +152,7 @@ For the freshest results on how to get tmux installed on your system, "How to install tmux on \" will do, as directions change and are slightly different between distributions. -tmuxp requires tmux **3.2 or newer**. The latest stable version is +tmuxp requires tmux **3.3a or newer**. The latest stable version is viewable on the [tmux homepage](https://github.com/tmux/tmux). **Mac OS X** users may install the latest stable version of tmux diff --git a/docs/quickstart.md b/docs/quickstart.md index bc39969759..8d1f418595 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -9,7 +9,7 @@ takes you from nothing to a running session. ## Installation -Ensure you have at least tmux **>= 3.2** and python **>= 3.11**. +Ensure you have at least tmux **>= 3.3a** and python **>= 3.11**. ```console $ pip install --user tmuxp diff --git a/docs/topics/troubleshooting.md b/docs/topics/troubleshooting.md index 60f231a8f4..ff90549d4d 100644 --- a/docs/topics/troubleshooting.md +++ b/docs/topics/troubleshooting.md @@ -19,7 +19,7 @@ Ensure tmux is installed: $ tmux -V ``` -Minimum required version: tmux 3.2. +Minimum required version: tmux 3.3a. ## Configuration errors diff --git a/pyproject.toml b/pyproject.toml index f8ccc2fc2d..de495a6cb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ include = [ { path = "conftest.py", format = "sdist" }, ] dependencies = [ - "libtmux~=0.64.0", + "libtmux~=0.65.0", "PyYAML>=6.0" ] diff --git a/src/tmuxp/cli/__init__.py b/src/tmuxp/cli/__init__.py index 860a9200cb..24c60a01ff 100644 --- a/src/tmuxp/cli/__init__.py +++ b/src/tmuxp/cli/__init__.py @@ -10,7 +10,7 @@ from libtmux.__about__ import __version__ as libtmux_version from libtmux.common import has_minimum_version -from libtmux.exc import TmuxCommandNotFound +from libtmux.exc import TmuxCommandNotFound, VersionTooLow from tmuxp import exc from tmuxp.__about__ import __version__ @@ -290,7 +290,7 @@ def cli(_args: list[str] | None = None) -> None: except TmuxCommandNotFound: tmuxp_echo("tmux not found. tmuxp requires you install tmux first.") sys.exit() - except exc.TmuxpException as e: + except (exc.TmuxpException, VersionTooLow) as e: tmuxp_echo(str(e)) sys.exit() diff --git a/src/tmuxp/plugin.py b/src/tmuxp/plugin.py index d39f6de623..52950f7f2f 100644 --- a/src/tmuxp/plugin.py +++ b/src/tmuxp/plugin.py @@ -15,7 +15,7 @@ logger = logging.getLogger(__name__) #: Minimum version of tmux required to run tmuxp -TMUX_MIN_VERSION = "3.2" +TMUX_MIN_VERSION = "3.3a" #: Most recent version of tmux supported TMUX_MAX_VERSION = None diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.py index 34524946d4..bd32588ed4 100644 --- a/tests/cli/test_cli.py +++ b/tests/cli/test_cli.py @@ -31,6 +31,24 @@ def test_creates_config_dir_not_exists(tmp_path: pathlib.Path) -> None: assert tmp_path.exists() +def test_cli_reports_tmux_older_than_libtmux_supports( + monkeypatch: pytest.MonkeyPatch, + capsys: pytest.CaptureFixture[str], +) -> None: + """cli() prints libtmux's version message instead of a traceback.""" + message = "libtmux only supports tmux 3.3a and greater." + + def has_minimum_version() -> bool: + raise libtmux.exc.VersionTooLow(message) + + monkeypatch.setattr(cli, "has_minimum_version", has_minimum_version) + + with pytest.raises(SystemExit): + cli.cli(["ls"]) + + assert message in capsys.readouterr().out + + class HelpTestFixture(t.NamedTuple): """Test fixture for help command tests.""" diff --git a/uv.lock b/uv.lock index 5d6a1ede0c..227ff3b856 100644 --- a/uv.lock +++ b/uv.lock @@ -706,11 +706,11 @@ wheels = [ [[package]] name = "libtmux" -version = "0.64.0" +version = "0.65.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/63/e7/f59c1f249f5c8efe6fdb03b90e3198c882d14aefe4da9f59ce448e209d83/libtmux-0.64.0.tar.gz", hash = "sha256:f0dac5673c60dac3d596b505734e9ac953f6516a64b9eea6d437ab348019e23d", size = 670210, upload-time = "2026-11-22T00:10:19.386Z" } +sdist = { url = "https://files.pythonhosted.org/packages/91/5b/87d6619624341b8b1bf6292bc96774f9623c906e306443305eae9c992e16/libtmux-0.65.0.tar.gz", hash = "sha256:b548892f13d704d63a0dbb81ccdaae429060586378619c450394f73a205135d1", size = 684195, upload-time = "2026-11-22T13:13:13.724Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/bc/f5/99b796d643ef4fd7ecb96f061fc555ca11b1d4e8a435f3bb21d71f5f16dd/libtmux-0.64.0-py3-none-any.whl", hash = "sha256:8efdef72658cf7f50b0f836fdf11a2fc15f8ace5d84bf6b3b4f49e5485953b52", size = 146516, upload-time = "2026-11-22T00:10:17.632Z" }, + { url = "https://files.pythonhosted.org/packages/c1/79/0cd9ec053f89eec1d4eb928811adaeb3d6ae948521eff001e32bbd89453f/libtmux-0.65.0-py3-none-any.whl", hash = "sha256:721a06bf3857760e42fed9772c40f5e05d90d5d542d3523ed6f08f69296d9d82", size = 149051, upload-time = "2026-11-22T13:13:11.965Z" }, ] [[package]] @@ -1609,7 +1609,7 @@ testing = [ [package.metadata] requires-dist = [ - { name = "libtmux", specifier = "~=0.64.0" }, + { name = "libtmux", specifier = "~=0.65.0" }, { name = "pyyaml", specifier = ">=6.0" }, ]