Accepting request 674169 from devel:languages:python:pytest

- Update to 0.9.2:
  * Fix incompatibility with pytest 3.10 (thanks @Natim)
  * Double colons for verbose output (thanks @albertodonato)
  * Fix "Wrong count with items modified in pytest_collection_modifyitems" (thanks @blueyed)
  * Defer registration of xdist hook (thanks @blueyed)
- Add patch from upstream to fix build with pytest 4.2+:
  * pytest4.patch

OBS-URL: https://build.opensuse.org/request/show/674169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-sugar?expand=0&rev=4
This commit is contained in:
Stephan Kulow
2019-02-24 16:04:37 +00:00
committed by Git OBS Bridge
parent 94820d3085
commit 7eadfc4cd9
5 changed files with 58 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-sugar
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-sugar
Version: 0.9.1
Version: 0.9.2
Release: 0
Summary: Pretty printer for pytest progress
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://pivotfinland.com/pytest-sugar/
URL: http://pivotfinland.com/pytest-sugar/
Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
Patch0: pytest4.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module termcolor}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
Requires: python-termcolor
BuildArch: noarch
%python_subpackages
%description
@@ -39,6 +41,7 @@ pytest-sugar is a plugin for py.test that shows failures and errors instantly an
%prep
%setup -q -n pytest-sugar-%{version}
%patch0 -p1
%build
%python_build
@@ -47,9 +50,12 @@ pytest-sugar is a plugin for py.test that shows failures and errors instantly an
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.md
%license LICENSE
%doc README.md
%{python_sitelib}/*
%changelog