[arch-commits] Commit in python-pytest/repos (2 files)

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 05:50:59 UTC 2014


    Date: Monday, March 17, 2014 @ 06:50:59
  Author: fyan
Revision: 107337

archrelease: copy trunk to community-staging-any

Added:
  python-pytest/repos/community-staging-any/
  python-pytest/repos/community-staging-any/PKGBUILD
    (from rev 107336, python-pytest/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-pytest/repos/community-staging-any/PKGBUILD (from rev 107336, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-03-17 05:50:59 UTC (rev 107337)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-pytest
+pkgname=('python-pytest' 'python2-pytest')
+pkgver=2.5.2
+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')
+source=("http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.tar.gz")
+
+prepare() {
+  cp -r pytest-${pkgver} python2-pytest-${pkgver}
+}
+
+package_python-pytest() {
+  depends=('python' 'python-py')
+
+  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')
+
+  cd python2-pytest-${pkgver}
+  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"
+}
+
+sha512sums=('d291f229f4c0a2132c437dde6ca04bf87701fe270c2fa314104badad9221ab866251890c66387d23fefd3ab1f928ee3b290dac21e3d62e7660af8903e85a2f36')




More information about the arch-commits mailing list