[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Sat Sep 12 07:13:35 UTC 2015


    Date: Saturday, September 12, 2015 @ 09:13:35
  Author: fyan
Revision: 139954

addpkg: python-pytest-django 2.8.0-1

Added:
  python-pytest-django/
  python-pytest-django/repos/
  python-pytest-django/trunk/
  python-pytest-django/trunk/PKGBUILD

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

Added: python-pytest-django/trunk/PKGBUILD
===================================================================
--- python-pytest-django/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-django/trunk/PKGBUILD	2015-09-12 07:13:35 UTC (rev 139954)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-django
+pkgname=('python-pytest-django' 'python2-pytest-django')
+pkgver=2.8.0
+pkgrel=1
+pkgdesc="A Django plugin for py.test"
+arch=('any')
+license=('BSD')
+url="https://github.com/pytest-dev/pytest-django"
+makedepends=('python-pytest' 'python2-pytest' 'git')
+checkdepends=('python-django' 'python2-django' 'python-pytest-xdist' 'python2-pytest-xdist'
+              'twine' 'python2-twine' 'python-south' 'python2-south')
+source=("git+https://github.com/pytest-dev/pytest-django.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a pytest-django{,-py2}
+}
+
+build() {
+  cd "$srcdir/pytest-django"
+  python setup.py build
+
+  cd "$srcdir/pytest-django-py2"
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir/pytest-django"
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.4/site-packages:$PYTHONPATH:$PWD" \
+  DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
+    py.test tests || warning "Tests failed"
+
+  cd "$srcdir/pytest-django-py2"
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD" \
+  DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
+    py.test2 tests
+}
+
+package_python-pytest-django() {
+  depends=('python-pytest')
+
+  cd pytest-django
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pytest-django() {
+  depends=('python2-pytest')
+
+  cd pytest-django-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


Property changes on: python-pytest-django/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list