[arch-commits] Commit in python-repoze.profile/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 16:54:52 UTC 2016
Date: Sunday, December 25, 2016 @ 16:54:52
Author: bpiotrowski
Revision: 201991
archrelease: copy trunk to community-staging-any
Added:
python-repoze.profile/repos/community-staging-any/
python-repoze.profile/repos/community-staging-any/PKGBUILD
(from rev 201990, python-repoze.profile/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-repoze.profile/repos/community-staging-any/PKGBUILD (from rev 201990, python-repoze.profile/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 16:54:52 UTC (rev 201991)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+
+pkgname=(python-repoze.profile python2-repoze.profile)
+pkgver=2.2
+pkgrel=2
+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=('565bd64ae4930e41d3e0839b309081bd')
+
+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