Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-pytest-helpers-namespace 2021.4.29-1: Upgrade to 2021.…
Browse files Browse the repository at this point in the history
…4.29.

Disable most tests, as pytest is unable to pickup the plugin in check():
saltstack/pytest-helpers-namespace#10

git-svn-id: file:///srv/repos/svn-community/svn@964697 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv authored and svntogit committed Jun 17, 2021
1 parent 1bc1647 commit 917deb9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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) <[email protected]>
Expand All @@ -30,18 +30,18 @@ check() {
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() {
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}"
}

0 comments on commit 917deb9

Please sign in to comment.