From 6eb203cd4e27fadc4866cd10e14af432741a4a5b75660097e0c3ca4577c25d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Nov 2019 12:37:01 +0000 Subject: [PATCH] - Use nose2 to run the tests as the package can't use pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman-hyperkitty?expand=0&rev=2 --- python-mailman-hyperkitty.changes | 5 +++++ python-mailman-hyperkitty.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-mailman-hyperkitty.changes b/python-mailman-hyperkitty.changes index 3c0ad7b..a2ad869 100644 --- a/python-mailman-hyperkitty.changes +++ b/python-mailman-hyperkitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 12:36:41 UTC 2019 - Tomáš Chvátal + +- Use nose2 to run the tests as the package can't use pytest + ------------------------------------------------------------------- Wed Nov 13 15:01:47 UTC 2019 - pgajdos@suse.com diff --git a/python-mailman-hyperkitty.spec b/python-mailman-hyperkitty.spec index 91132f5..eb7e355 100644 --- a/python-mailman-hyperkitty.spec +++ b/python-mailman-hyperkitty.spec @@ -25,7 +25,6 @@ Summary: Mailman archiver plugin for HyperKitty License: GPL-3.0-only URL: https://gitlab.com/mailman/mailman-hyperkitty/ Source: https://files.pythonhosted.org/packages/source/m/mailman-hyperkitty/mailman-hyperkitty-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -37,7 +36,7 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module mailman} BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module nose2} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module zope.interface} @@ -58,7 +57,7 @@ Mailman archiver plugin for HyperKitty %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m nose2 -v %files %{python_files} %doc README.rst