[arch-commits] Commit in python-yg.lockfile/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 22:31:52 UTC 2021


    Date: Tuesday, November 30, 2021 @ 22:31:52
  Author: felixonmars
Revision: 1059036

archrelease: copy trunk to community-staging-any

Added:
  python-yg.lockfile/repos/community-staging-any/
  python-yg.lockfile/repos/community-staging-any/PKGBUILD
    (from rev 1059031, python-yg.lockfile/trunk/PKGBUILD)

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

Copied: python-yg.lockfile/repos/community-staging-any/PKGBUILD (from rev 1059031, python-yg.lockfile/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 22:31:52 UTC (rev 1059036)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yg.lockfile
+pkgver=2.3
+pkgrel=2
+pkgdesc="Lockfile object with timeouts and context manager"
+url="https://github.com/yougov/yg.lockfile"
+license=('MIT')
+arch=('any')
+depends=('python-zc.lockfile' 'python-tempora' 'python-jaraco')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("https://github.com/yougov/yg.lockfile/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('938bde1795da7d48c11ee01212c0d24179e3b55f17b1a128010ee4304cb6931f87c4fabeccb4637b1cff932253c449c56ea809bd21cc1d131b47ed68e0a9d8af')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd yg.lockfile-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd yg.lockfile-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd yg.lockfile-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  # Will be available in next version
+  #install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list