[arch-commits] Commit in python-flufl-lock/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:52:59 UTC 2020


    Date: Monday, November 9, 2020 @ 16:52:59
  Author: felixonmars
Revision: 747654

archrelease: copy trunk to community-staging-any

Added:
  python-flufl-lock/repos/community-staging-any/
  python-flufl-lock/repos/community-staging-any/PKGBUILD
    (from rev 747651, python-flufl-lock/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: python-flufl-lock/repos/community-staging-any/PKGBUILD (from rev 747651, python-flufl-lock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:52:59 UTC (rev 747654)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=flufl.lock
+pkgname=python-flufl-lock
+pkgver=5.0.3
+pkgrel=2
+pkgdesc="NFS-safe file locking with timeouts for POSIX systems for Python"
+arch=('any')
+url="https://gitlab.com/warsaw/flufl.lock"
+license=('Apache')
+depends=('python-atpublic' 'python-psutil')
+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=('e5a7cca0b239b1db7cbdcad2c2a3aaa2da98a98c8d7901fa853b738804d457a0c82f25016987bd7dbc1b3aae1b48de72af1e2dac8dd30f74b2311baaaee2ac00')
+b2sums=('3b4098862fd7eea978f7fa717ce2f15231db05c304efea91b580bb248da70c5814ed150105a05159dab15c9cbeb31de1e493b1d0d482aa4187d017ce4b6732dd')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # we don't use coverage with pytest
+  sed -s '/addopts/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list