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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 16:45:05 UTC 2021


    Date: Tuesday, November 30, 2021 @ 16:45:04
  Author: felixonmars
Revision: 1057843

archrelease: copy trunk to community-staging-any

Added:
  python-filelock/repos/community-staging-any/
  python-filelock/repos/community-staging-any/PKGBUILD
    (from rev 1057842, python-filelock/trunk/PKGBUILD)

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

Copied: python-filelock/repos/community-staging-any/PKGBUILD (from rev 1057842, python-filelock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 16:45:04 UTC (rev 1057843)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-filelock
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="A platform independent file lock"
+url="https://github.com/benediktschmitt/py-filelock"
+license=('custom:Unlicense')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-pytest-timeout')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/benediktschmitt/py-filelock/archive/$pkgver.tar.gz")
+sha512sums=('0dc85f083a8c60605dfbd0b6fe55a96b5872e5b8ce3fd746925444571d02e243459bed6cd2d8aa9d7eda7d197bdc31b289cfcf1f0aef295779ca900d24abcbd8')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd py-filelock-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd py-filelock-$pkgver
+  PYTHONPATH=src pytest tests
+}
+
+package() {
+  cd py-filelock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list