From 60f9fea53ca6eac9a388ca33cad84778fd07dd1f71d546e5d84f3d20278025ec Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 27 May 2021 12:17:40 +0000 Subject: [PATCH] Accepting request 895698 from home:pgajdos:python setup.py test replacement OBS-URL: https://build.opensuse.org/request/show/895698 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis-fspaths?expand=0&rev=3 --- python-hypothesis-fspaths.changes | 5 +++++ python-hypothesis-fspaths.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-hypothesis-fspaths.changes b/python-hypothesis-fspaths.changes index bebfe64..ec47e37 100644 --- a/python-hypothesis-fspaths.changes +++ b/python-hypothesis-fspaths.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 26 07:04:27 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest rpm macro + ------------------------------------------------------------------- Wed Mar 6 10:02:28 AM UTC 2019 - John Vandenberg diff --git a/python-hypothesis-fspaths.spec b/python-hypothesis-fspaths.spec index 7558b84..b5a2571 100644 --- a/python-hypothesis-fspaths.spec +++ b/python-hypothesis-fspaths.spec @@ -1,7 +1,7 @@ # # spec file for package python-hypothesis-fspaths # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/lazka/hypothesis-fspaths Source: https://files.pythonhosted.org/packages/source/h/hypothesis-fspaths/hypothesis-fspaths-%{version}.tar.gz -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,6 +42,8 @@ Hypothesis extension for generating filesystem paths %prep %setup -q -n hypothesis-fspaths-%{version} +# https://github.com/lazka/hypothesis-fspaths/issues/3 +sed -i '/pytest-runner/d' setup.py %build %python_build @@ -51,7 +53,7 @@ Hypothesis extension for generating filesystem paths %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst