From d2ae58a9c7fd3732204da16266c70233a696e11db697140d4fbf02fd1611e218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 22 Aug 2019 14:03:18 +0000 Subject: [PATCH] - Restrict to pytest3 as newer need major test tweaks OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbfread?expand=0&rev=8 --- python-dbfread.changes | 5 +++++ python-dbfread.spec | 20 ++++---------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/python-dbfread.changes b/python-dbfread.changes index 60e4f60..05e6c50 100644 --- a/python-dbfread.changes +++ b/python-dbfread.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 22 14:02:42 UTC 2019 - Tomáš Chvátal + +- Restrict to pytest3 as newer need major test tweaks + ------------------------------------------------------------------- Wed Dec 5 01:09:34 UTC 2018 - Jan Engelhardt diff --git a/python-dbfread.spec b/python-dbfread.spec index f535e33..0e87125 100644 --- a/python-dbfread.spec +++ b/python-dbfread.spec @@ -1,7 +1,7 @@ # # spec file for package python-dbfread # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Test directories messed up by python_expand -%bcond_without test Name: python-dbfread Version: 2.0.7 Release: 0 Summary: DBF file reader for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/olemb/dbfread +URL: https://github.com/olemb/dbfread Source: https://files.pythonhosted.org/packages/source/d/dbfread/dbfread-%{version}.tar.gz +BuildRequires: %{python_module pytest < 4} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pytest} -%endif BuildArch: noarch - %python_subpackages %description @@ -53,17 +48,10 @@ batch jobs and one-off scripts. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -rm -rf build -rm -rf _build.* -%{python_expand rm -rf build -py.test-%{$python_bin_suffix} -} -%endif +%pytest %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE %{python_sitelib}/*