Date: Thursday, April 12, 2018 @ 07:16:49
  Author: felixonmars
Revision: 315993

archrelease: copy trunk to community-testing-any

Added:
  python-transaction/repos/community-testing-any/
  python-transaction/repos/community-testing-any/PKGBUILD
    (from rev 315992, python-transaction/trunk/PKGBUILD)

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

Copied: python-transaction/repos/community-testing-any/PKGBUILD (from rev 
315992, python-transaction/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-04-12 07:16:49 UTC (rev 315993)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-transaction
+pkgname=('python-transaction' 'python2-transaction')
+pkgver=2.2.1
+pkgrel=1
+pkgdesc='Transaction management for Python'
+arch=('any')
+license=('ZPL')
+url='https://github.com/zopefoundation/transaction'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+             'python2-zope-interface')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/transaction/archive/$pkgver.tar.gz";)
+sha512sums=('688345f3906a7e74ac3104e67c12daa02ddb209fa5af95bd42869aac753d991acc6d3adb0da0727ef2cff4e4fc176abf98aa0e4358f72b2c883d4eee8712468c')
+
+prepare() {
+  cp -a transaction-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/transaction-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/transaction-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/transaction-$pkgver
+  python setup.py nosetests
+
+  cd "$srcdir"/transaction-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-transaction() {
+  depends=('python-zope-interface')
+
+  cd transaction-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-transaction() {
+  depends=('python2-zope-interface')
+
+  cd transaction-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to