15
0
forked from pool/python-tld

Accepting request 760391 from devel:languages:python

- Do not use setup.py test but call pytest directly

OBS-URL: https://build.opensuse.org/request/show/760391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tld?expand=0&rev=10
This commit is contained in:
2020-01-02 13:44:09 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 2 10:14:36 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not use setup.py test but call pytest directly
-------------------------------------------------------------------
Tue Dec 24 10:03:46 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@@ -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