[arch-commits] Commit in python-dogpile.core/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 15:17:11 UTC 2015
Date: Saturday, September 19, 2015 @ 17:17:10
Author: fyan
Revision: 140896
archrelease: copy trunk to community-staging-any
Added:
python-dogpile.core/repos/community-staging-any/
python-dogpile.core/repos/community-staging-any/PKGBUILD
(from rev 140895, python-dogpile.core/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-dogpile.core/repos/community-staging-any/PKGBUILD (from rev 140895, python-dogpile.core/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 15:17:10 UTC (rev 140896)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sibren Vasse <arch at sibrenvasse.nl>
+# Contributor: Quentin Stievenart <acieroid at awesom.eu>
+
+pkgbase=python-dogpile.core
+pkgname=(python-dogpile.core python2-dogpile.core)
+_pypiname=dogpile.core
+pkgver=0.4.1
+pkgrel=4
+pkgdesc="A 'dogpile' lock, typically used as a component of a larger caching solution"
+arch=('any')
+url="http://pypi.python.org/pypi/dogpile.core"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("http://pypi.python.org/packages/source/d/$_pypiname/$_pypiname-$pkgver.tar.gz")
+md5sums=('01cb19f52bba3e95c9b560f39341f045')
+
+prepare() {
+ cp -a "$_pypiname-$pkgver"{,-py2}
+}
+
+build() {
+ cd $_pypiname-$pkgver
+ python setup.py build
+
+ cd ../$_pypiname-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd $_pypiname-$pkgver
+ nosetests3
+
+ cd ../$_pypiname-$pkgver-py2
+ nosetests2
+}
+
+package_python-dogpile.core() {
+ depends=('python')
+
+ cd "$srcdir/$_pypiname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-dogpile.core() {
+ depends=('python2')
+
+ cd "$srcdir/$_pypiname-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list