From 46d97d5e422f345aaf2822cfccc1dc932b7794940a5c8233e1e3e6e753196afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 2 Jan 2020 10:14:57 +0000 Subject: [PATCH] - Do not use setup.py test but call pytest directly OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=23 --- python-tld.changes | 5 +++++ python-tld.spec | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-tld.changes b/python-tld.changes index c9e88c4..9bf28e4 100644 --- a/python-tld.changes +++ b/python-tld.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 2 10:14:36 UTC 2020 - Tomáš Chvátal + +- Do not use setup.py test but call pytest directly + ------------------------------------------------------------------- Tue Dec 24 10:03:46 UTC 2019 - Sebastian Wagner diff --git a/python-tld.spec b/python-tld.spec index bc24dc9..b04c5a6 100644 --- a/python-tld.spec +++ b/python-tld.spec @@ -1,7 +1,7 @@ # # spec file for package python-tld # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,18 +29,16 @@ Source: https://files.pythonhosted.org/packages/source/t/tld/tld-%{versi # PATCH-FIX-OPENSUSE skip_internet_tests.patch Patch0: skip_internet_tests.patch BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-six >= 1.9 +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Faker} BuildRequires: %{python_module factory_boy} -BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six >= 1.9} -BuildRequires: %{python_module tox} # /SECTION -BuildRequires: fdupes -Requires: python-six >= 1.9 -BuildArch: noarch - %python_subpackages %description @@ -62,7 +60,7 @@ chmod -x src/tld/res/old/effective_tld_names-2015-07-19.dat.txt %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst CHANGELOG.rst