From eb0ce754c675cacb1c73005762ddd7b3cf2d008f9b60bfb9cb4e9ab0138f303b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 23 Nov 2020 18:21:45 +0000 Subject: [PATCH] Accepting request 850198 from home:jayvdb:py-submit - Use pytest instead of nose during check OBS-URL: https://build.opensuse.org/request/show/850198 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=5 --- python-srcinfo.changes | 5 +++++ python-srcinfo.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-srcinfo.changes b/python-srcinfo.changes index 4323dd2..d646408 100644 --- a/python-srcinfo.changes +++ b/python-srcinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg + +- Use pytest instead of nose during check + ------------------------------------------------------------------- Tue May 19 08:03:02 UTC 2020 - Petr Gajdos diff --git a/python-srcinfo.spec b/python-srcinfo.spec index 7defcd0..b0bbf56 100644 --- a/python-srcinfo.spec +++ b/python-srcinfo.spec @@ -35,8 +35,8 @@ Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module nose} BuildRequires: %{python_module parse} +BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -46,6 +46,11 @@ Python library to parse Arch .SRCINFO files. %prep %setup -q -n python-srcinfo-%{version} %patch0 -p1 +mv test/__init__.py test_srcinfo.py + +# Only needed until 0.0.9 is released +# https://github.com/kyrias/python-srcinfo/pull/8 +sed -i '/nose/d' setup.py %build %python_build @@ -56,7 +61,7 @@ Python library to parse Arch .SRCINFO files. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %post %python_install_alternative parse_srcinfo