14
0

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
This commit is contained in:
2020-11-23 18:21:45 +00:00
committed by Git OBS Bridge
parent c972259eb6
commit eb0ce754c6
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Use pytest instead of nose during check
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 19 08:03:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com> Tue May 19 08:03:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -35,8 +35,8 @@ Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module nose}
BuildRequires: %{python_module parse} BuildRequires: %{python_module parse}
BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@@ -46,6 +46,11 @@ Python library to parse Arch .SRCINFO files.
%prep %prep
%setup -q -n python-srcinfo-%{version} %setup -q -n python-srcinfo-%{version}
%patch0 -p1 %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 %build
%python_build %python_build
@@ -56,7 +61,7 @@ Python library to parse Arch .SRCINFO files.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %pytest
%post %post
%python_install_alternative parse_srcinfo %python_install_alternative parse_srcinfo