From b0707a7705dc2898b46fc015049ed7c77e2523b0 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 10 Aug 2018 04:15:38 +0200 Subject: [PATCH] python-pytest: depend on python-pathlib2 now pluggy has already been updated to >=0.7 (ex post facto). --- srcpkgs/python-pytest/template | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-pytest/template b/srcpkgs/python-pytest/template index 8fc42dec67f..93215b059b6 100644 --- a/srcpkgs/python-pytest/template +++ b/srcpkgs/python-pytest/template @@ -1,14 +1,14 @@ # Template file for 'python-pytest' pkgname=python-pytest version=3.7.1 -revision=1 +revision=2 noarch=yes wrksrc="${pkgname/python-//}-${version}" build_style=python-module pycompile_module="_pytest pytest.py" hostmakedepends="python-setuptools python3-setuptools" depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools - python-pluggy python-py python-setuptools" + python-pluggy python-py python-setuptools python-pathlib2" checkdepends="python3-atomicwrites python3-hypothesis python3-more-itertools python3-pluggy python3-py python3-atomicwrites" short_desc="Simple powerful testing with Python2" @@ -22,6 +22,12 @@ alternatives=" pytest:pytest:/usr/bin/pytest2 pytest:py.test:/usr/bin/py.test2" +pre_build() { + sed -i setup.py \ + -e '/setup_requires=/d' \ + -e "s|use_scm_version=.*|version=\"${version}\",|" +} + do_check() { python3 setup.py test }