Date: Monday, April 17, 2023 @ 10:22:04 Author: dvzrv Revision: 1446681
upgpkg: tmuxp 1.27.1-1: Upgrade to 1.27.1. Add bash and zsh completions. Modified: tmuxp/trunk/PKGBUILD ----------+ PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-17 10:19:43 UTC (rev 1446680) +++ PKGBUILD 2023-04-17 10:22:04 UTC (rev 1446681) @@ -1,47 +1,66 @@ # Maintainer: David Runge <[email protected]> pkgname=tmuxp -pkgver=1.27.0 -pkgrel=2 +pkgver=1.27.1 +pkgrel=1 pkgdesc="Tmux session manager built on libtmux" arch=(any) url="https://tmuxp.git-pull.com/en/latest/" license=(MIT) -depends=(python python-colorama python-libtmux python-pyyaml) -makedepends=(python-build python-installer python-poetry-core python-wheel) -checkdepends=(python-pytest python-pytest-mock python-pytest-rerunfailures) +depends=( + python + python-colorama + python-libtmux + python-pyyaml +) +makedepends=( + python-build + python-installer + python-poetry-core + python-shtab + python-wheel +) +checkdepends=( + python-pytest + python-pytest-mock + python-pytest-rerunfailures +) optdepends=( 'python-shtab: for workspace completion and import' 'ipython: for alternative CLI' 'python-prompt_toolkit: for alternative CLI' + 'bpython: for alternative CLI' # TODO: package ptpython for additional alternative CLI - # TODO: package bpython for additional alternative CLI ) source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz) -sha512sums=('f5e300b3b5db26fed52d365d68759944052c63790634abee70eb91bacc846166cfb2d829cb8f69b943ebddaada90d9c88b5d0a8aa6f54abc0d9a6f9fbd67a104') -b2sums=('93eef869bd8f15642103ae49f8125ed23e41a88eefd392889011dfcf26f81f3857cac7ad6be0f67b9828cb068f461b25f9f8dc8637d3b7191fdb20de7d06838a') +sha512sums=('1b0402d6e754bdcf2a9e7d8aa4d3aa9a3b1f150ccf4dbfe5e68f752035602a299a8c744ec322013823fa0e2f8335e487eba58f074e25bd77673be066aecdc7c0') +b2sums=('7a13abf89c0732d842dd3255abe691e51d2664da74a238be2844e301e13f7d95c6b0d4411a1e9d15689fdd31abfa97c5fb3a1e05e95c43d13f5eabc455c80818') build() { cd $pkgname-$pkgver python -m build --wheel --no-isolation + + python -m installer --destdir=test_dir dist/*.whl + export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH" + mkdir completions + shtab --shell=bash tmuxp.cli.create_parser > completions/$pkgname + shtab --shell=zsh tmuxp.cli.create_parser > completions/_$pkgname } check() { - local _deselected=( + local python_options=( + -vv # https://github.com/tmux-python/tmuxp/issues/855 --deselect tests/workspace/test_builder.py::test_window_shell ) - local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") cd $pkgname-$pkgver - python -m installer --destdir=test_dir dist/*.whl - export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" - pytest -vv "${_deselected[@]}" tests + export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH" + pytest "${python_options[@]}" tests } package() { - local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - cd $pkgname-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl @@ -48,6 +67,8 @@ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -vDm 644 {CHANGES,README.md} -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 examples/*.{json,yaml} -t "$pkgdir/usr/share/doc/$pkgname/examples/" + install -vDm 644 completions/$pkgname -t "$pkgdir/usr/share/bash-completion/completions/" + install -vDm 644 completions/_$pkgname -t "$pkgdir/usr/share/zsh/site-functions/" } # vim:set ts=2 sw=2 et:
