Date: Friday, April 7, 2023 @ 05:52:10
Author: felixonmars
Revision: 1440675
archrelease: copy trunk to community-staging-any
Added:
python-pytest-helpers-namespace/repos/community-staging-any/
python-pytest-helpers-namespace/repos/community-staging-any/PKGBUILD
(from rev 1440674, python-pytest-helpers-namespace/trunk/PKGBUILD)
python-pytest-helpers-namespace/repos/community-staging-any/keys/
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-pytest-helpers-namespace/repos/community-staging-any/PKGBUILD
(from rev 1440674, python-pytest-helpers-namespace/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 05:52:10 UTC (rev 1440675)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pytest-helpers-namespace
+pkgname=python-pytest-helpers-namespace
+pkgver=2021.12.29
+_commit=f5c519bfd65815cef78ea31fca390e662801b617 # refs/tags/v2021.12.29^{}
+pkgrel=3
+pkgdesc="PyTest Helpers Namespace"
+arch=(any)
+url="https://github.com/saltstack/pytest-helpers-namespace"
+license=(Apache)
+depends=(
+ python
+ python-setuptools
+ python-pytest
+)
+makedepends=(
+ git
+ python-build
+ python-installer
+ python-setuptools-declarative-requirements
+ python-setuptools-scm
+ python-toml
+ python-wheel
+)
+checkdepends=(python-pytest)
+source=(git+$url#commit=$_commit?signed)
+sha512sums=('SKIP')
+validpgpkeys=('D2908FB3A823B0FAB3BD21F5BB36BF6584A298FF') # Pedro Algarvio
(s0undt3ch) <[email protected]>
+
+build() {
+ cd $_name
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd $_name
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH"
+ pytest -vv
+}
+
+package() {
+ cd $_name
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 {AUTHORS,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+}