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