[arch-commits] Commit in python-pytest/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 09:27:49 UTC 2015
Date: Saturday, September 19, 2015 @ 11:27:49
Author: fyan
Revision: 140709
archrelease: copy trunk to community-staging-any
Added:
python-pytest/repos/community-staging-any/
python-pytest/repos/community-staging-any/PKGBUILD
(from rev 140708, python-pytest/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-pytest/repos/community-staging-any/PKGBUILD (from rev 140708, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 09:27:49 UTC (rev 140709)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-pytest
+pkgname=('python-pytest' 'python2-pytest')
+pkgver=2.8.0
+pkgrel=2
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="http://pytest.org/"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py')
+checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-twisted' 'python2-twisted'
+ 'python-mock' 'python2-mock' 'python-yaml' 'python2-yaml' 'python2-enum34'
+ 'python-pexpect' 'python2-pexpect' 'python-pytest-xdist' 'python2-pytest-xdist')
+source=("https://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.zip")
+sha512sums=('98f7131c3396848ef7dbcf67e21e0329f8a3b771b3f8b832c1894758b34a2f852209f809001da856cfe8ea3773b257405ae2d5f8a04152242b8692e1511289ed')
+
+prepare() {
+ cp -a pytest-${pkgver}{,-py2}
+}
+
+build() {
+ cd "$srcdir/pytest-${pkgver}"
+ python setup.py build
+
+ cd "$srcdir/pytest-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/pytest-${pkgver}"
+ python setup.py test
+
+ cd "$srcdir/pytest-${pkgver}-py2"
+ python2 setup.py test
+}
+
+package_python-pytest() {
+ depends=('python' 'python-py' 'python-setuptools')
+
+ cd pytest-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pytest() {
+ depends=('python2' 'python2-py' 'python2-setuptools')
+
+ cd pytest-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ mv "${pkgdir}/usr/bin/py.test" "${pkgdir}/usr/bin/py.test2"
+}
+
More information about the arch-commits
mailing list