Date: Saturday, September 24, 2022 @ 11:04:58
  Author: dvzrv
Revision: 1309292

upgpkg: tmuxp 1.15.1-1: Upgrade to 1.15.1.

Install package to temporary location to test it.
Remove unneeded conftest.py file: 
https://github.com/tmux-python/tmuxp/issues/825

Modified:
  tmuxp/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-24 09:55:26 UTC (rev 1309291)
+++ PKGBUILD    2022-09-24 11:04:58 UTC (rev 1309292)
@@ -1,7 +1,7 @@
 # Maintainer: David Runge <[email protected]>
 
 pkgname=tmuxp
-pkgver=1.14.0
+pkgver=1.15.1
 pkgrel=1
 pkgdesc="Tmux session manager built on libtmux"
 arch=(any)
@@ -11,8 +11,8 @@
 makedepends=(python-build python-installer python-poetry-core python-wheel)
 checkdepends=(python-pytest python-pytest-mock python-pytest-rerunfailures)
 
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
-sha512sums=('6f342298f8e4c65be1aed230bfade0cd6a63a430dc4b90c05674cfe5186a532498fab8b5a8406e2e860e04089ca50646e6a3c9aaee17935792129f9d4ebfacb8')
-b2sums=('70dd6a1761f60747f5c1413ca377623ca86d87ee9544055bd8e9f44acdae69143478e7faa5d2072201827bee0724fc88dc028c6d1229d6685238c4c0b6506cc7')
+sha512sums=('400decbb5434705b6100febdb035d910bcd6ffbe4d1e6e4ff862f307ddf902116c8d753ee630642e0f1d0dbef87d8035ec1bd249f42c60fe8c7e2d91ba3f3248')
+b2sums=('7ecd0f602217e4dea36c871550bf7ee624b7ced6f4a4d272340e0e7c96095905931d9c86e5b420bda93fbff6140f0865ba2b8fa8411659abc2de1b207121e720')
 
 build() {
   cd $pkgname-$pkgver
@@ -24,14 +24,23 @@
     # https://github.com/tmux-python/tmuxp/issues/788
     --deselect tests/test_workspacebuilder.py::test_automatic_rename_option
   )
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
   cd $pkgname-$pkgver
-  pytest -vv "${_deselected[@]}"
+  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
 
+  # remove unneeded conftest.py: 
https://github.com/tmux-python/tmuxp/issues/825
+  rm -v "$pkgdir/$_site_packages/$pkgname/conftest.py"
+
   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/"

Reply via email to