- 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:
parent
96a877762a
commit
082a0549af
@ -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>
|
Tue Jul 20 17:00:06 UTC 2021 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-checkdmarc
|
# spec file for package python-checkdmarc
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2021 SUSE LLC
|
||||||
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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
|
Source1: https://raw.githubusercontent.com/domainaware/checkdmarc/master/LICENSE
|
||||||
Source2: https://raw.githubusercontent.com/domainaware/checkdmarc/master/tests.py
|
Source2: https://raw.githubusercontent.com/domainaware/checkdmarc/master/tests.py
|
||||||
Patch0: skip-broken-tests.patch
|
Patch0: skip-broken-tests.patch
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module dnspython >= 2.0.0}
|
BuildRequires: %{python_module dnspython >= 2.0.0}
|
||||||
BuildRequires: %{python_module expiringdict >= 1.1.4}
|
BuildRequires: %{python_module expiringdict >= 1.1.4}
|
||||||
@ -70,7 +71,7 @@ cp %{SOURCE1} %{SOURCE2} .
|
|||||||
%python_uninstall_alternative checkdmarc
|
%python_uninstall_alternative checkdmarc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest tests.py -v
|
%pyunittest -v tests.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user