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

@@ -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