14
0

Accepting request 827121 from home:jayvdb:py-submit

Replace nose with pytest

OBS-URL: https://build.opensuse.org/request/show/827121
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshould?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-08-17 06:14:51 +00:00
committed by Git OBS Bridge
parent 01587f2687
commit 33e8a8b564
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Aug 16 21:25:42 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Replace nose with pytest
-------------------------------------------------------------------
Tue Dec 4 12:52:51 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyshould
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -33,7 +33,7 @@ Requires: python-hamcrest
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hamcrest}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -53,6 +53,9 @@ the standard AssertionError.
%prep
%setup -q -n %{modname}-%{version}
sed -i '/nose/d' setup.py
# Remove __init__.py to help 15.x
rm tests/__init__.py
%build
%python_build
@@ -60,12 +63,12 @@ the standard AssertionError.
%install
%python_install
# We shouldn't install tests
%python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%python_exec setup.py test -v
%pytest tests/*.py
%files %{python_files}
%doc README.md