Date: Sunday, April 9, 2023 @ 03:23:42
Author: felixonmars
Revision: 1443047
archrelease: copy trunk to community-staging-any
Added:
python-transaction/repos/community-staging-any/
python-transaction/repos/community-staging-any/PKGBUILD
(from rev 1443046, python-transaction/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-transaction/repos/community-staging-any/PKGBUILD (from rev
1443046, python-transaction/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 03:23:42 UTC (rev 1443047)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-transaction
+pkgver=3.1.0
+pkgrel=2
+pkgdesc='Transaction management for Python'
+arch=('any')
+license=('ZPL')
+url='https://github.com/zopefoundation/transaction'
+depends=('python-zope-interface')
+makedepends=('python-setuptools')
+checkdepends=('python-zope-testrunner' 'python-mock')
+source=("https://github.com/zopefoundation/transaction/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('44a1c6e4a9790953a4ca31eb9660d85723dca37694a38c80ccc09945b1e23886c4ca2f0ca6dd705d489f80c068ecf921e42a9e0f1a6958b50b7d0e7074040548')
+
+build() {
+ cd transaction-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd transaction-$pkgver
+ PYTHONPATH="$PWD"/build/lib zope-testrunner --test-path=src
+}
+
+package() {
+ cd transaction-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: