pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/py-tmuxp



Module Name:    pkgsrc
Committed By:   kim
Date:           Thu Nov 26 22:49:18 UTC 2026

Modified Files:
        pkgsrc/misc/py-tmuxp: Makefile PLIST distinfo version.mk

Log Message:
py-tmuxp: update to 1.82.0

User-visible changes since 1.74.0:

1.82.0  When an earlier shell_command entry closes the pane before
        a later one runs, loading the workspace raises
        TmuxObjectDoesNotExist instead of dropping the later
        commands.  Keep "exit" last, or set remain-on-exit.
1.81.0  A "#" in session_name, window_name or start_directory
        reaches tmux as typed, so window_name: "#S" names the
        window "#S" instead of the session's name.
1.80.0  A socket path too long for tmux, passed to load -S or
        freeze -S, ends in a SocketPathTooLong error.
1.79.0  tmux 3.3a is the minimum; an older tmux gets a one-line
        message instead of a traceback.
1.78.0  No user-facing changes (libtmux fixes).
1.77.0  Python 3.11 is the minimum.
1.76.0  No user-facing changes (libtmux update).
1.75.0  Fix: every tmuxp command failed on Python 3.15 while
        building its argument parser.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/misc/py-tmuxp/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/py-tmuxp/PLIST \
    pkgsrc/misc/py-tmuxp/distinfo pkgsrc/misc/py-tmuxp/version.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/py-tmuxp/Makefile
diff -u pkgsrc/misc/py-tmuxp/Makefile:1.7 pkgsrc/misc/py-tmuxp/Makefile:1.8
--- pkgsrc/misc/py-tmuxp/Makefile:1.7   Fri Oct 16 19:44:07 2026
+++ pkgsrc/misc/py-tmuxp/Makefile       Thu Nov 26 22:49:18 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2026/10/16 19:44:07 adam Exp $
+# $NetBSD: Makefile,v 1.8 2026/11/26 22:49:18 kim Exp $
 
 DISTNAME=      tmuxp-${VERSION}
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,29 +12,68 @@ HOMEPAGE=   https://tmuxp.git-pull.com/
 COMMENT=       Session manager for tmux
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-libtmux>=0.61:../../misc/py-libtmux
+DEPENDS+=      ${PYPKGPREFIX}-libtmux>=0.68:../../misc/py-libtmux
 DEPENDS+=      ${PYPKGPREFIX}-yaml>=6:../../textproc/py-yaml
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.29:../../devel/py-hatchling
+# shtab imports tmuxp to generate the shell completions at build time
+TOOL_DEPENDS+= ${PYPKGPREFIX}-shtab>=1.13:../../devel/py-shtab
+TOOL_DEPENDS+= ${PYPKGPREFIX}-libtmux>=0.68:../../misc/py-libtmux
+TOOL_DEPENDS+= ${PYPKGPREFIX}-yaml>=6:../../textproc/py-yaml
 # codecov
 # coverage
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=7:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock>=0:../../devel/py-test-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-rerunfailures>=0:../../devel/py-test-rerunfailures
 TEST_DEPENDS+= ${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
 TEST_DEPENDS+= ${PYPKGPREFIX}-sphinx>=0:../../textproc/py-sphinx
 
-# as of 1.67.0
-# 66 failed, 897 passed, 2 skipped, 59 errors, 25 rerun
+# as of 1.82.0, with the package installed
+# 2 failed, 907 passed, 2 skipped, 5 rerun
 
 PYTHON_VERSIONS_INCOMPATIBLE=  311
 
 USE_LANGUAGES= # none
 
 TEST_ENV+=     PYTHONPATH=${WRKSRC}/src
+# docs/conf.py imports gp_sphinx, which is not packaged
+TEST_ENV+=     PYTEST_ADDOPTS=--ignore=docs/conf.py
+
+PY_RENAME_BINARIES=    tmuxp
+PYTHON_SELF_CONFLICT=  yes # completion files
+
+COMPLETION_SHELLS=     bash fish zsh
+COMPLETION_ENV=                NO_COLOR=1
+COMPLETION_ENV+=       PYTHON_COLORS=0
+COMPLETION_ENV+=       PYTHONDONTWRITEBYTECODE=1
+COMPLETION_ENV+=       PYTHONPATH=${WRKSRC}/src
+
+INSTALLATION_DIRS+=    share/bash-completion/completions
+INSTALLATION_DIRS+=    share/fish/vendor_completions.d
+INSTALLATION_DIRS+=    share/zsh/site-functions
+
+# libtmux separates tmux format fields with a non-ASCII character, which
+# tmux replaces with "_" unless the locale is UTF-8.  The locale has to
+# come after TEST_ENV, which ends with LC_ALL=C from MAKE_ENV.
+do-test:
+       ${RUN} cd ${WRKSRC} && \
+       ${SETENV} ${TEST_ENV} LC_ALL=en_US.UTF-8 \
+               pytest-${PYVERSSUFFIX}
+
+post-build:
+.for s in ${COMPLETION_SHELLS}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${COMPLETION_ENV} \
+               ${TOOL_PYTHONBIN} \
+               -m shtab --shell=${s} --error-unimportable \
+               --output=${WRKDIR}/tmuxp.${s} tmuxp.cli.create_parser
+.endfor
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && \
-       ${MV} tmuxp tmuxp-${PYVERSSUFFIX} || \
-       ${TRUE}
+       ${INSTALL_DATA} ${WRKDIR}/tmuxp.bash \
+               ${DESTDIR}${PREFIX}/share/bash-completion/completions/tmuxp
+       ${INSTALL_DATA} ${WRKDIR}/tmuxp.fish \
+               ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/tmuxp.fish
+       ${INSTALL_DATA} ${WRKDIR}/tmuxp.zsh \
+               ${DESTDIR}${PREFIX}/share/zsh/site-functions/_tmuxp
 
 .include "version.mk"
 .include "../../lang/python/wheel.mk"

Index: pkgsrc/misc/py-tmuxp/PLIST
diff -u pkgsrc/misc/py-tmuxp/PLIST:1.2 pkgsrc/misc/py-tmuxp/PLIST:1.3
--- pkgsrc/misc/py-tmuxp/PLIST:1.2      Tue Aug 18 14:51:28 2026
+++ pkgsrc/misc/py-tmuxp/PLIST  Thu Nov 26 22:49:18 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2026/08/18 14:51:28 kim Exp $
+@comment $NetBSD: PLIST,v 1.3 2026/11/26 22:49:18 kim Exp $
 bin/tmuxp-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -128,3 +128,6 @@ ${PYSITELIB}/tmuxp/workspace/options.pyo
 ${PYSITELIB}/tmuxp/workspace/validation.py
 ${PYSITELIB}/tmuxp/workspace/validation.pyc
 ${PYSITELIB}/tmuxp/workspace/validation.pyo
+share/bash-completion/completions/tmuxp
+share/fish/vendor_completions.d/tmuxp.fish
+share/zsh/site-functions/_tmuxp
Index: pkgsrc/misc/py-tmuxp/distinfo
diff -u pkgsrc/misc/py-tmuxp/distinfo:1.2 pkgsrc/misc/py-tmuxp/distinfo:1.3
--- pkgsrc/misc/py-tmuxp/distinfo:1.2   Tue Aug 18 14:51:28 2026
+++ pkgsrc/misc/py-tmuxp/distinfo       Thu Nov 26 22:49:18 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2026/08/18 14:51:28 kim Exp $
+$NetBSD: distinfo,v 1.3 2026/11/26 22:49:18 kim Exp $
 
-BLAKE2s (tmuxp-1.74.0.tar.gz) = 93b57fcb1db5c79e2f3ca1268c503ea83ce2938c2f9ae97d3a1ebe877dd566dc
-SHA512 (tmuxp-1.74.0.tar.gz) = 3124c7da4d36730594dde5ce2a2bc4d5501eee52213e44279a8a5b533cbb123083c42f25ccec49d7186d8c1680b47955806ac49ee5f299d8f64886b3283cea39
-Size (tmuxp-1.74.0.tar.gz) = 1114617 bytes
+BLAKE2s (tmuxp-1.82.0.tar.gz) = 16492eca88561db5e9847e53bd5afb519d6362d64542dea682f9fb3d121ae2af
+SHA512 (tmuxp-1.82.0.tar.gz) = fd3cdf58d1c84903063e56386259b69de7798523348329f77f1f4894db9de046e663501098dff043dde6c3e9361177504bcdb15995df2d5b38fbc07c58e898e5
+Size (tmuxp-1.82.0.tar.gz) = 1163024 bytes
Index: pkgsrc/misc/py-tmuxp/version.mk
diff -u pkgsrc/misc/py-tmuxp/version.mk:1.2 pkgsrc/misc/py-tmuxp/version.mk:1.3
--- pkgsrc/misc/py-tmuxp/version.mk:1.2 Tue Aug 18 14:51:28 2026
+++ pkgsrc/misc/py-tmuxp/version.mk     Thu Nov 26 22:49:18 2026
@@ -1,3 +1,3 @@
-# $NetBSD: version.mk,v 1.2 2026/08/18 14:51:28 kim Exp $
+# $NetBSD: version.mk,v 1.3 2026/11/26 22:49:18 kim Exp $
 
-VERSION=       1.74.0
+VERSION=       1.82.0



Home | Main Index | Thread Index | Old Index