This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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(): saltstack/pytest-helpers-namespace#10 git-svn-id: file:///srv/repos/svn-community/svn@964697 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
@@ -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}" | ||
} |