[arch-commits] Commit in python-flufl-lock/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Sep 2 18:57:03 UTC 2020


    Date: Wednesday, September 2, 2020 @ 18:57:03
  Author: dvzrv
Revision: 696816

upgpkg: python-flufl-lock 5.0.1-1: Upgrade to 5.0.1.

Upstream started installing tests and docs top-level in site-packages (this is now removed and reported).

Modified:
  python-flufl-lock/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-02 18:56:28 UTC (rev 696815)
+++ PKGBUILD	2020-09-02 18:57:03 UTC (rev 696816)
@@ -2,11 +2,11 @@
 
 _name=flufl.lock
 pkgname=python-flufl-lock
-pkgver=4.0
+pkgver=5.0.1
 pkgrel=1
 pkgdesc="NFS-safe file locking with timeouts for POSIX systems for Python"
 arch=('any')
-url="https://flufllock.readthedocs.io/en/latest/"
+url="https://gitlab.com/warsaw/flufl.lock"
 license=('Apache')
 depends=('python-atpublic' 'python-psutil')
 makedepends=('python-setuptools')
@@ -13,7 +13,8 @@
 checkdepends=('python-pytest' 'python-sybil')
 replaces=('python-flufl.lock')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('78f984ca691ca720a78e01928352b89ba7a4d4c7a4830150887d450c055658b9ce1bf010e45a26aa9b729ec06a6f22a95e7d348996412e14ea1261f1226ea71c')
+sha512sums=('f937fb6c7f7bef2b85674225f83f3162f34db3fe2df3d9a896f772c4489c3e0611361e3d1d9efda7727112d780f31022d3045d3a3b8e78e9412aca2f2418ca24')
+b2sums=('2651898e881719f24bc61e14f697877ca39f2747fadf52de1a5fc917b26e23001df5f0a4ea2e48271da69198e1a1336e69cc0167a4f46fddd21f464b355fa4ca')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
@@ -34,10 +35,13 @@
 }
 
 package() {
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
   cd "$pkgname-$pkgver"
   python setup.py install --skip-build \
     --optimize=1 \
-    --prefix=/usr \
     --root="${pkgdir}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  # remove top-level tests and docs
+  # https://gitlab.com/warsaw/flufl.lock/-/issues/22
+  rm -rfv "${pkgdir}/${site_packages}/"{docs,tests}
 }



More information about the arch-commits mailing list