python3-pytest: update to 5.3.5.

This commit is contained in:
Đoàn Trần Công Danh 2020-02-21 17:22:48 +07:00 committed by Juan RP
parent 738550af6d
commit a7cc24ae1c

View file

@ -1,34 +1,37 @@
# Template file for 'python3-pytest' # Template file for 'python3-pytest'
pkgname=python3-pytest pkgname=python3-pytest
version=5.3.4 version=5.3.5
revision=1 revision=1
archs=noarch archs=noarch
wrksrc="${pkgname/python3-//}-${version}" wrksrc="pytest-${version}"
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-py python3-packaging python3-attrs python3-more-itertools depends="python3-py python3-packaging python3-attrs python3-more-itertools
python3-atomicwrites python3-pluggy python3-wcwidth" python3-atomicwrites python3-pluggy python3-wcwidth"
checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock
python3-nose python3-requests python3-parsing tox" python3-nose python3-requests python3-parsing python3-xmlschema"
short_desc="Simple powerful testing with Python 3" short_desc="Simple powerful testing with Python 3"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT" license="MIT"
homepage="https://docs.pytest.org/en/latest/" homepage="https://docs.pytest.org/en/latest/"
changelog="https://docs.pytest.org/en/latest/changelog.html" changelog="https://docs.pytest.org/en/latest/changelog.html"
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz" distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
checksum=1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 checksum=0d5fe9189a148acc3c3eb2ac8e1ac0742cb7618c084f3d228baaec0c254b318d
alternatives=" alternatives="
pytest:pytest:/usr/bin/pytest3 pytest:pytest:/usr/bin/pytest3
pytest:py.test:/usr/bin/py.test3" pytest:py.test:/usr/bin/py.test3"
post_patch() { post_patch() {
sed -i setup.py \ vsed -i setup.py \
-e '/setup_requires=/d' \ -e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version=\"${version}\",|" -e "s|use_scm_version=.*|version=\"${version}\",|"
# This test depends on tox, and/or egg-info
# merely check pytest and py.test were generated
rm testing/test_entry_points.py
} }
do_check() { do_check() {
tox -e "py${py3_ver/./}" PYTHONPATH=$(pwd)/build/lib python3 -m pytest
} }
post_install() { post_install() {