[arch-commits] Commit in python-transaction/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 16:13:34 UTC 2018
Date: Saturday, June 30, 2018 @ 16:13:34
Author: felixonmars
Revision: 348400
archrelease: copy trunk to community-staging-any
Added:
python-transaction/repos/community-staging-any/
python-transaction/repos/community-staging-any/PKGBUILD
(from rev 348399, python-transaction/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-transaction/repos/community-staging-any/PKGBUILD (from rev 348399, python-transaction/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 16:13:34 UTC (rev 348400)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-transaction
+pkgname=('python-transaction' 'python2-transaction')
+pkgver=2.2.1
+pkgrel=2
+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:
More information about the arch-commits
mailing list