[arch-commits] Commit in python-repoze.profile/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 13 13:46:52 UTC 2018
Date: Tuesday, November 13, 2018 @ 13:46:51
Author: felixonmars
Revision: 406502
archrelease: copy trunk to community-testing-any
Added:
python-repoze.profile/repos/community-testing-any/
python-repoze.profile/repos/community-testing-any/PKGBUILD
(from rev 406501, python-repoze.profile/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-repoze.profile/repos/community-testing-any/PKGBUILD (from rev 406501, python-repoze.profile/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-11-13 13:46:51 UTC (rev 406502)
@@ -0,0 +1,52 @@
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+
+pkgname=(python-repoze.profile python2-repoze.profile)
+pkgver=2.3
+pkgrel=1
+pkgdesc="Aggregate profiling for WSGI requests"
+arch=('any')
+license=('custom:BSD')
+url="http://docs.repoze.org/profile/"
+makedepends=('python-setuptools' 'python2-setuptools' 'pyprof2calltree' 'python2-pyprof2calltree')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/r/repoze.profile/repoze.profile-$pkgver.tar.gz")
+md5sums=('65e87b8ef5ac7e6b2074decdb89a180b')
+
+prepare() {
+ cp -a repoze.profile-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/repoze.profile-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/repoze.profile-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/repoze.profile-$pkgver
+ nosetests3
+
+ cd "$srcdir"/repoze.profile-$pkgver-py2
+ nosetests2
+}
+
+package_python-repoze.profile() {
+ depends=('python')
+ optdepends=('pyprof2calltree')
+
+ cd repoze.profile-$pkgver
+ python setup.py install --root="$pkgdir"
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-repoze.profile() {
+ depends=('python2-pyprof2calltree')
+
+ cd repoze.profile-$pkgver-py2
+ python2 setup.py install --root="$pkgdir"
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list