mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/python-pytest-plugins to 1.7.0-9
This commit is contained in:
parent
56eea70107
commit
8223585fb7
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
pkgbase=python-pytest-plugins
|
||||
pkgname=('python-pytest-fixture-config' 'python-pytest-shutil' 'python-pytest-virtualenv')
|
||||
pkgver=1.7.0
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
arch=('any')
|
||||
license=('BSD')
|
||||
url='https://github.com/manahl/pytest-plugins'
|
||||
|
@ -18,6 +18,7 @@ sha512sums=('6ce64f554359ae8b4e8b1cdab9908226501bad1d6bcdec9d7968133bbf0b3530842
|
|||
prepare() {
|
||||
# New pypandoc?
|
||||
sed -i "s/'rst')/'rst', format='markdown')/" pytest-plugins-$pkgver/common_setup.py
|
||||
sed -i "s/pypandoc.convert/pypandoc.convert_text/g" pytest-plugins-$pkgver/common_setup.py
|
||||
|
||||
# Our /bin is a symlink
|
||||
sed -i "s|'/bin'|'/usr/bin'|" pytest-plugins-$pkgver/pytest-shutil/tests/integration/test_cmdline_integration.py
|
||||
|
@ -40,10 +41,11 @@ build() {
|
|||
check() {
|
||||
# Hack entry points by installing it
|
||||
|
||||
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
|
||||
for _pkg in pytest-fixture-config pytest-shutil pytest-virtualenv; do
|
||||
cd "$srcdir"/pytest-plugins-$pkgver/$_pkg
|
||||
python setup.py install --root="$srcdir"/tmp_install --optimize=1
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python3.10/site-packages py.test
|
||||
PYTHONPATH="$srcdir"/tmp_install/usr/lib/python${python_version}/site-packages py.test -k 'not test_pretty_formatter'
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue