Download Latest Version v0.56.0 source code.tar.gz (480.8 kB)
Email in envelope

Get an email when there's a new version of libtmux

Home / v0.55.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-19 3.5 kB
v0.55.1 - improved docs, pytest teardown source code.tar.gz 2026-04-19 445.0 kB
v0.55.1 - improved docs, pytest teardown source code.zip 2026-04-19 505.3 kB
Totals: 3 Items   953.9 kB 0

A point release focused on a pytest-plugin cleanup fix, a new Sphinx extension for documenting pytest fixtures, and a docs-stack migration to gp-sphinx.

Highlights

Fix: pytest_plugin leaks tmux socket files on teardown (#661, fixes [#660])

The server and TestServer fixtures now unlink(2) the tmux socket from /tmp/tmux-<uid>/ during teardown, in addition to calling server.kill(). tmux does not reliably remove its own socket on non-graceful exit, so /tmp/tmux-<uid>/ would accumulate stale libtmux_test* entries across runs — 10k+ observed on long-lived dev machines.

A new internal _reap_test_server helper centralizes the kill + unlink flow and suppresses cleanup-time errors, so a finalizer failure can no longer mask the real test failure.

If you use libtmux's pytest plugin in CI or locally, upgrade to stop the leak.

New: Sphinx extension for pytest fixture documentation (#656)

A new Sphinx extension (docs/_ext/sphinx_pytest_fixtures.py) renders pytest fixtures as first-class API documentation with scope/kind/factory badges, cross-referenced dependencies, and auto-generated usage snippets.

  • .. autofixture:: — autodoc-style documenter for individual fixtures
  • .. autofixtures:: — bulk discovery and rendering from a module
  • .. autofixture-index:: — auto-generated index table with linked return types (via intersphinx) and parsed RST descriptions
  • :fixture: cross-reference role with short-name resolution
  • Scope, kind, and autouse badges with touch-accessible tooltips
  • Responsive layout (mobile metadata stacking, badge font scaling, scroll wrappers)
  • WCAG AA contrast compliance in both light and dark mode
  • 109 tests (unit + integration)

Also fixes an inaccurate session_params fixture docstring surfaced by the new extension.

Documentation

  • Docs restructured to the Library Skeleton pattern (#652)
  • Self-hosted fonts, eliminated layout shift, added SPA-style navigation (#643)
  • Standardized shell code-block formatting across all docs (#644)
  • Migrated the docs stack to gp-sphinx workspace packages (#657)
  • Visual improvements to API docs via gp-sphinx (#658)
  • Bumped gp-sphinx to v0.0.1a8 (#659); subsequent bump to v0.0.1a9 on master

Development

  • Added types-docutils to dev dependencies for mypy type checking (#656)

What's Changed

Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.55.0...v0.55.1

Source: README.md, updated 2026-04-19