[arch-commits] Commit in python-pytest-helpers-namespace/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Jun 17 19:13:54 UTC 2021
Date: Thursday, June 17, 2021 @ 19:13:54
Author: dvzrv
Revision: 964697
upgpkg: python-pytest-helpers-namespace 2021.4.29-1: Upgrade to 2021.4.29.
Disable most tests, as pytest is unable to pickup the plugin in check():
https://github.com/saltstack/pytest-helpers-namespace/issues/10
Modified:
python-pytest-helpers-namespace/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-17 19:13:39 UTC (rev 964696)
+++ PKGBUILD 2021-06-17 19:13:54 UTC (rev 964697)
@@ -2,15 +2,15 @@
_name=pytest-helpers-namespace
pkgname=python-pytest-helpers-namespace
-pkgver=2019.1.8
-pkgrel=3
+pkgver=2021.4.29
+pkgrel=1
pkgdesc="PyTest Helpers Namespace"
arch=('any')
url="https://github.com/saltstack/pytest-helpers-namespace"
license=('Apache')
depends=('python-pytest')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-forked')
+makedepends=('git' 'python-setuptools-declarative-requirements' 'python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest')
source=("git+https://github.com/saltstack/pytest-helpers-namespace#tag=v${pkgver}?signed")
sha512sums=('SKIP')
validpgpkeys=('D2908FB3A823B0FAB3BD21F5BB36BF6584A298FF') # Pedro Algarvio (s0undt3ch) <pedro at algarvio.me>
@@ -30,11 +30,12 @@
mkdir -vp test_dir
python setup.py install --skip-build \
--optimize=1 \
- --prefix=/usr \
--root="test_dir"
- local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
- export PYTHONPATH="test_dir/usr/lib/python${python_version}/site-packages/:${PYTHONPATH}"
- pytest -v --forked
+
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ export PYTHONPATH="test_dir/${site_packages}:${PYTHONPATH}"
+ # only use working test: https://github.com/saltstack/pytest-helpers-namespace/issues/10
+ pytest -vv -k 'test_helper_contains_method'
}
package() {
@@ -41,7 +42,6 @@
cd "$pkgname-$pkgver"
python setup.py install --skip-build \
--optimize=1 \
- --prefix=/usr \
--root="${pkgdir}"
install -vDm 644 {AUTHORS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list