Date: Friday, April 7, 2023 @ 04:50:05
  Author: felixonmars
Revision: 1440575

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-relaxed/repos/community-staging-any/PKGBUILD (from rev 
1440572, python-pytest-relaxed/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 04:50:05 UTC (rev 1440575)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-relaxed
+pkgver=2.0.0
+pkgrel=2
+pkgdesc='Relaxed test discovery for pytest'
+arch=('any')
+license=('BSD')
+url='https://github.com/bitprophet/pytest-relaxed'
+depends=('python-pytest' 'python-decorator')
+makedepends=('python-setuptools')
+source=("https://github.com/bitprophet/pytest-relaxed/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('bdbe17c28d03754ad708b1db39779fd4b6f2a29024ec140aa4e2494e47005a71275714bacd0122ee0405832025bd57e5a445821f01b958c71ceaf0c25c51d586')
+
+build() {
+  cd pytest-relaxed-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  cd pytest-relaxed-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-relaxed-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to