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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:26:30 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:26:30
  Author: felixonmars
Revision: 1059202

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-forked/repos/community-staging-any/PKGBUILD (from rev 1059200, python-pytest-forked/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 11:26:30 UTC (rev 1059202)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-forked
+pkgver=1.3.0
+pkgrel=5
+pkgdesc='run tests in isolated forked subprocesses'
+arch=('any')
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-forked'
+makedepends=('python-pytest' 'python-setuptools-scm')
+depends=('python-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz")
+sha512sums=('3fbbde21b4157eb8d2f72ae4285e2a84718a1ba85781ee10b53cc36d8de21512c6f2285fad5fa3cf40dcb6df767cc87fc8e749897011d89e84dcf153fc466ba6')
+
+prepare() {
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/pytest-forked-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+  cd "$srcdir"/pytest-forked-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test
+}
+
+package() {
+  cd pytest-forked-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list