- Use %pyunittest macro instead of directly calling %python_exec

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-checkdmarc?expand=0&rev=2
This commit is contained in:
Matej Cepl 2021-07-21 10:20:57 +00:00 committed by Git OBS Bridge
parent 96a877762a
commit 082a0549af
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 21 10:20:44 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Use %pyunittest macro instead of directly calling %python_exec
-------------------------------------------------------------------
Tue Jul 20 17:00:06 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -1,6 +1,7 @@
#
# spec file for package python-checkdmarc
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@ -27,8 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/c/checkdmarc/chec
Source1: https://raw.githubusercontent.com/domainaware/checkdmarc/master/LICENSE
Source2: https://raw.githubusercontent.com/domainaware/checkdmarc/master/tests.py
Patch0: skip-broken-tests.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module dnspython >= 2.0.0}
BuildRequires: %{python_module expiringdict >= 1.1.4}
@ -70,7 +71,7 @@ cp %{SOURCE1} %{SOURCE2} .
%python_uninstall_alternative checkdmarc
%check
%python_exec -m unittest tests.py -v
%pyunittest -v tests.py
%files %{python_files}
%license LICENSE