Date: Monday, April 17, 2023 @ 10:28:19
Author: dvzrv
Revision: 1446686
archrelease: copy trunk to community-staging-any
Added:
tmuxp/repos/community-staging-any/PKGBUILD
(from rev 1446685, tmuxp/trunk/PKGBUILD)
Deleted:
tmuxp/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 127 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 74 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-17 10:28:03 UTC (rev 1446685)
+++ PKGBUILD 2023-04-17 10:28:19 UTC (rev 1446686)
@@ -1,53 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-pkgname=tmuxp
-pkgver=1.27.0
-pkgrel=2
-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)
-optdepends=(
- 'python-shtab: for workspace completion and import'
- 'ipython: for alternative CLI'
- 'python-prompt_toolkit: 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')
-
-build() {
- cd $pkgname-$pkgver
- python -m build --wheel --no-isolation
-}
-
-check() {
- local _deselected=(
- # 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])")
-
- cd $pkgname-$pkgver
- python -m installer --destdir=test_dir dist/*.whl
- export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
- pytest -vv "${_deselected[@]}" tests
-}
-
-package() {
- local _site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
-
- cd $pkgname-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- 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/"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: tmuxp/repos/community-staging-any/PKGBUILD (from rev 1446685,
tmuxp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-17 10:28:19 UTC (rev 1446686)
@@ -0,0 +1,74 @@
+# Maintainer: David Runge <[email protected]>
+
+pkgname=tmuxp
+pkgver=1.27.1
+pkgrel=2
+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-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
+)
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
+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 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])")
+
+ cd $pkgname-$pkgver
+ export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
+ pytest "${python_options[@]}" tests
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ 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: