forked from pool/python-verboselogs
Accepting request 970228 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/970228 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-verboselogs?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 14 11:00:24 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:55:47 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:55:47 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-verboselogs
|
# spec file for package python-verboselogs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,10 +25,10 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/xolox/python-verboselogs
|
URL: https://github.com/xolox/python-verboselogs
|
||||||
Source: https://files.pythonhosted.org/packages/source/v/verboselogs/verboselogs-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/v/verboselogs/verboselogs-%{version}.tar.gz
|
||||||
|
Patch0: verboselogs-pylint2.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Patch0: verboselogs-pylint2.patch
|
|
||||||
Recommends: python-pylint
|
Recommends: python-pylint
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@@ -61,7 +61,9 @@ It is currently tested on Python 2.6, 2.7, 3.4, 3.5 and PyPy.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand py.test-%{$python_bin_suffix} verboselogs/tests.py
|
# https://github.com/xolox/python-verboselogs/issues/12
|
||||||
|
sed -i 's:import mock:from unittest import mock:' verboselogs/tests.py
|
||||||
|
%pytest verboselogs/tests.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Reference in New Issue
Block a user