Date: Wednesday, March 7, 2018 @ 06:33:24
  Author: felixonmars
Revision: 303455

archrelease: copy trunk to community-testing-any

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

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

Copied: python-transaction/repos/community-testing-any/PKGBUILD (from rev 
303454, python-transaction/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-03-07 06:33:24 UTC (rev 303455)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-transaction
+pkgname=('python-transaction' 'python2-transaction')
+pkgver=2.2.0
+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=('d7ea6228052b8d96cfb7ec7b8af2c63cdca10a1b8c3eb1ae2fbef239e10c63f4904869b0b826d69ebe1dc475be8a2ffca6cbbf7bb92c16e0c1cab4a26f43f60a')
+
+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