From 4473fd6c92d19b97cfd20fcc326c5ba4e153cc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 11 Mar 2020 12:56:57 +0700 Subject: [PATCH] python-pytest: require specific version of pluggy --- srcpkgs/python-pytest/template | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python-pytest/template b/srcpkgs/python-pytest/template index aebd31da598..5e2ffe71b6e 100644 --- a/srcpkgs/python-pytest/template +++ b/srcpkgs/python-pytest/template @@ -1,16 +1,17 @@ # Template file for 'python-pytest' pkgname=python-pytest version=4.6.9 -revision=1 +revision=2 archs=noarch wrksrc="pytest-${version}" build_style=python2-module hostmakedepends="python-setuptools" -depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools - python-pluggy python-py python-setuptools python-pathlib2 python-six +depends="python-atomicwrites python-attrs>=17.4.0 python-funcsigs + python-more-itertools python-pluggy>=0.12.0 python-py>=1.6.0 + python-setuptools python-pathlib2 python-six>=1.10.0 python-wcwidth python-hypothesis python-importlib_metadata python-packaging" -checkdepends="$depends python-mock tox" +checkdepends="$depends python-mock" short_desc="Simple powerful testing with Python 2" maintainer="Orphaned " license="MIT" @@ -26,10 +27,14 @@ post_patch() { vsed -i setup.py \ -e '/setup_requires=/d' \ -e "s|use_scm_version=.*|version=\"${version}\",|" + # This merely check if pytest executable was generated + rm testing/test_entry_points.py } do_check() { - tox -e py27 + # Don't use tox, tox will use its own environment instead of system + # package + PYTHONPATH=$(pwd)/build/lib python2 -m pytest } post_install() {