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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:13:31 UTC 2020


    Date: Monday, November 9, 2020 @ 20:13:30
  Author: felixonmars
Revision: 748161

archrelease: copy trunk to community-staging-x86_64

Added:
  python-persistent/repos/community-staging-x86_64/
  python-persistent/repos/community-staging-x86_64/PKGBUILD
    (from rev 748159, python-persistent/trunk/PKGBUILD)

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

Copied: python-persistent/repos/community-staging-x86_64/PKGBUILD (from rev 748159, python-persistent/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-09 20:13:30 UTC (rev 748161)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-persistent
+pkgver=4.6.4
+pkgrel=2
+pkgdesc="Translucent persistent objects"
+arch=('x86_64')
+license=('ZPL')
+url="http://www.zope.org/Products/ZODB"
+depends=('python-zope-interface')
+makedepends=('python-setuptools' 'python-cffi')
+checkdepends=('python-zope-testrunner' 'python-manuel')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/persistent/archive/$pkgver.tar.gz")
+sha512sums=('5b17e969bedb800985526118eb5d4ef9e318e77bb8e50e70da36808eeb227583373563808a8ca638b889b498ff84cb8233c7930d7b652d6d69f4b7382546aa6b')
+
+build() {
+  cd persistent-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd persistent-$pkgver
+  python -m venv "$srcdir/pyvenv" --system-site-packages
+  (
+    . "$srcdir/pyvenv/bin/activate"
+    python setup.py develop
+    python -m zope.testrunner --test-path=.
+  )
+}
+
+package() {
+  cd persistent-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list