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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:52:54 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:52:54
  Author: felixonmars
Revision: 1059457

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-django/repos/community-staging-any/PKGBUILD (from rev 1059456, python-pytest-django/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:52:54 UTC (rev 1059457)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-django
+pkgver=4.4.0
+pkgrel=2
+pkgdesc="A Django plugin for py.test"
+arch=('any')
+license=('BSD')
+url="https://github.com/pytest-dev/pytest-django"
+depends=('python-pytest')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-django' 'python-pytest-xdist')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-django/archive/v$pkgver.tar.gz")
+sha512sums=('47e4a84606aeb6bb99ed74603faf988298d52f81f74ec8e4608cb670f0f331ad0c6555f3e4a516fc7834aea4e634f849dc0ff6d446a86e924a116fbe90bd79e0')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd "$srcdir"/pytest-django-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-django-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD" \
+  DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
+    py.test tests
+}
+
+package() {
+  cd pytest-django-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list