[arch-commits] Commit in python-requests-unixsocket/trunk (PKGBUILD)

George Rawlinson grawlinson at archlinux.org
Sun Jun 27 09:18:43 UTC 2021


    Date: Sunday, June 27, 2021 @ 09:18:42
  Author: grawlinson
Revision: 967570

upgpkg: python-requests-unixsocket 0.2.0-4

Remove tests from package.

Modified:
  python-requests-unixsocket/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-27 01:46:50 UTC (rev 967569)
+++ PKGBUILD	2021-06-27 09:18:42 UTC (rev 967570)
@@ -4,7 +4,7 @@
 pkgname=python-requests-unixsocket
 _name="${pkgname#python-}"
 pkgver=0.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Use requests to talk HTTP via a UNIX domain socket"
 arch=('any')
 depends=('python' 'python-requests' 'python-urllib3')
@@ -33,5 +33,9 @@
   cd "$_name-$pkgver"
 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  # remove tests folder from package
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  rm -rf "$pkgdir$site_packages/${_name/-/_}/tests"
 }
 




More information about the arch-commits mailing list