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

David Runge dvzrv at archlinux.org
Thu Oct 22 17:37:43 UTC 2020


    Date: Thursday, October 22, 2020 @ 17:37:42
  Author: dvzrv
Revision: 729302

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

Switch to gitlab for tarballs, as upstream accidentally removed tests from sdist tarballs.

Modified:
  python-flufl-lock/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-22 17:37:11 UTC (rev 729301)
+++ PKGBUILD	2020-10-22 17:37:42 UTC (rev 729302)
@@ -2,7 +2,7 @@
 
 _name=flufl.lock
 pkgname=python-flufl-lock
-pkgver=5.0.1
+pkgver=5.0.2
 pkgrel=1
 pkgdesc="NFS-safe file locking with timeouts for POSIX systems for Python"
 arch=('any')
@@ -12,9 +12,11 @@
 makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'python-sybil')
 replaces=('python-flufl.lock')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('f937fb6c7f7bef2b85674225f83f3162f34db3fe2df3d9a896f772c4489c3e0611361e3d1d9efda7727112d780f31022d3045d3a3b8e78e9412aca2f2418ca24')
-b2sums=('2651898e881719f24bc61e14f697877ca39f2747fadf52de1a5fc917b26e23001df5f0a4ea2e48271da69198e1a1336e69cc0167a4f46fddd21f464b355fa4ca')
+# upstream removed tests from sdist tarballs: https://gitlab.com/warsaw/flufl.lock/-/issues/26
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("https://gitlab.com/warsaw/${_name}/-/archive/${pkgver}/${_name}-${pkgver}.tar.gz")
+sha512sums=('08fbd8772222f076e268b22b56613bf7a1c849bcb09028b674d3aa74fbddbb4993c44a8787e7e954bb3be8693d1bd6bb573145a43378772da3217f9d005b4f7f')
+b2sums=('e3852821631bd531c00da4aaa947c3c10c3c3a1e5ff6daf10e322d4a588e91928f0b1484e6d6bdf163e93a418dc57dcf9a59a9093961bd74b3c359762e4b4d2c')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
@@ -35,13 +37,9 @@
 }
 
 package() {
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
   cd "$pkgname-$pkgver"
   python setup.py install --skip-build \
     --optimize=1 \
     --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