[arch-commits] Commit in python-pytools/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 10:49:52 UTC 2015
Date: Saturday, September 19, 2015 @ 12:49:52
Author: fyan
Revision: 140740
archrelease: copy trunk to community-staging-any
Added:
python-pytools/repos/community-staging-any/
python-pytools/repos/community-staging-any/PKGBUILD
(from rev 140739, python-pytools/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-pytools/repos/community-staging-any/PKGBUILD (from rev 140739, python-pytools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 10:49:52 UTC (rev 140740)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgbase=python-pytools
+pkgname=('python2-pytools' 'python-pytools')
+pkgver=2015.1.3
+pkgrel=2
+pkgdesc="A collection of tools for Python"
+arch=('any')
+url="http://mathema.tician.de/software/pytools"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator' 'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/p/pytools/pytools-$pkgver.tar.gz")
+sha512sums=('a94189d93d22401a78078ba76db75ac644f2162000699393ef37fc64507c9b77856450aff7dcdec031348adb13a2e6da536fe8f2ae01e2a0a11967a74a00c968')
+
+prepare() {
+ cp -a pytools-${pkgver}{,-python2}
+}
+
+build() {
+ cd "$srcdir/pytools-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/pytools-$pkgver-python2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/pytools-$pkgver"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+
+ cd "$srcdir/pytools-$pkgver-python2"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
+}
+
+package_python2-pytools() {
+ depends=('python2-six' 'python2-decorator' 'python2-appdirs')
+ cd "$srcdir/pytools-$pkgver-python2"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+}
+
+package_python-pytools(){
+ depends=('python-six' 'python-decorator' 'python-appdirs')
+ cd "$srcdir/pytools-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+}
+
More information about the arch-commits
mailing list