python-pytest

This commit is contained in:
joborun linux 2024-03-20 02:21:39 +02:00
parent e770fbad0b
commit 2edae54ebb
3 changed files with 72 additions and 34 deletions

View File

@ -7,7 +7,7 @@
pkgname=python-pytest
_name=${pkgname#python-}
pkgver=7.4.4
pkgver=8.1.1
pkgrel=01
epoch=1
pkgdesc="Simple powerful testing with Python"
@ -21,6 +21,26 @@ makedepends=(
'python-setuptools-scm'
'python-wheel'
)
checkdepends=(
'python-argcomplete'
'python-attrs'
'python-hypothesis'
'python-nose'
'python-pygments'
'python-requests'
'python-xmlschema'
# Unlisted, but actually used. Check again after a while:
'lsof'
'python-decorator'
'python-docutils'
'python-exceptiongroup'
'python-jinja'
'python-numpy'
'python-pexpect'
'python-pytest-xdist'
'python-twisted'
)
#checkdepends=(
# 'python-argcomplete'
# 'python-attrs'
@ -57,11 +77,11 @@ build() {
python -m build --wheel --skip-dependency-check --no-isolation
}
#check() {
# cd "$_name"
# # https://github.com/pytest-dev/pytest/issues/10042
# PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
#}
check() {
cd "$_name"
# https://github.com/pytest-dev/pytest/issues/10042
PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
}
package() {
cd "$_name"
@ -80,7 +100,8 @@ arch=(x86_64)
license=('MIT')
b2sums=('4a06c96558620aa15681052ce67a06921f65aa5cd6e064545b0472f1264d4cbd1e73ed39f38d293053816d9c7d1e175de542b2d5e7f748d8be7e6ddb92f4ec88')
sha256sums=(SKIP) # pytest
## 2bed0d6c2d603a63437dd54260dd36324feabfa4997527c83f8dc267cc7f99c1 python-pytest-1_7.4.4-01-x86_64.pkg.tar.lz
## e871a4ef78c785c840d7f21b8b09600aa69f5f89c546f479459a37761d6c5d76 python-pytest-1_8.1.1-01-x86_64.pkg.tar.lz

View File

@ -4,7 +4,7 @@
pkgname=python-pytest
_name=${pkgname#python-}
pkgver=7.4.4
pkgver=8.1.1
pkgrel=1
epoch=1
pkgdesc="Simple powerful testing with Python"
@ -20,38 +20,38 @@ makedepends=(
'python-setuptools-scm'
'python-wheel'
)
#checkdepends=(
# 'python-argcomplete'
# 'python-attrs'
# 'python-hypothesis'
# 'python-nose'
# 'python-pygments'
# 'python-requests'
# 'python-xmlschema'
# # Unlisted, but actually used. Check again after a while:
# 'lsof'
# 'python-decorator'
# 'python-docutils'
# 'python-exceptiongroup'
# 'python-jinja'
# 'python-numpy'
# 'python-pexpect'
# 'python-pytest-xdist'
# 'python-twisted'
#)
checkdepends=(
'python-argcomplete'
'python-attrs'
'python-hypothesis'
'python-nose'
'python-pygments'
'python-requests'
'python-xmlschema'
# Unlisted, but actually used. Check again after a while:
'lsof'
'python-decorator'
'python-docutils'
'python-exceptiongroup'
'python-jinja'
'python-numpy'
'python-pexpect'
'python-pytest-xdist'
'python-twisted'
)
source=("git+https://github.com/$_name-dev/$_name.git#tag=$pkgver")
b2sums=('SKIP')
b2sums=('4a06c96558620aa15681052ce67a06921f65aa5cd6e064545b0472f1264d4cbd1e73ed39f38d293053816d9c7d1e175de542b2d5e7f748d8be7e6ddb92f4ec88')
build() {
cd "$_name"
python -m build --wheel --skip-dependency-check --no-isolation
}
#check() {
# cd "$_name"
# # https://github.com/pytest-dev/pytest/issues/10042
# PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
#}
check() {
cd "$_name"
# https://github.com/pytest-dev/pytest/issues/10042
PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
}
package() {
cd "$_name"

View File

@ -8,3 +8,20 @@ python-setuptools
python-setuptools-scm
python-wheel
python-argcomplete
python-attrs
python-hypothesis
python-nose
python-pygments
python-requests
python-xmlschema
lsof
python-decorator
python-docutils
python-exceptiongroup
python-jinja
python-numpy
python-pexpect
python-pytest-xdist
python-twisted