Accepting request 970990 from home:pgajdos:python
- do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/970990 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transaction?expand=0&rev=43
This commit is contained in:
parent
33d2d87a63
commit
77c9ad5d29
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 20 07:35:20 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 13 14:19:23 UTC 2021 - pgajdos@suse.com
|
Wed Jan 13 14:19:23 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-transaction
|
# spec file for package python-transaction
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# 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
|
||||||
@ -24,15 +24,14 @@ Summary: Transaction management for Python
|
|||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
URL: https://github.com/zopefoundation/transaction
|
URL: https://github.com/zopefoundation/transaction
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module zope.interface}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-zope.interface
|
Requires: python-zope.interface
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION Test requirements
|
# SECTION Test requirements
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module zope.interface}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -58,6 +57,8 @@ rm -rf transaction.egg-info
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# https://github.com/zopefoundation/zdaemon/issues/28#issuecomment-1102754818
|
||||||
|
sed -i 's:import mock:from unittest import mock:' src/transaction/tests/test__manager.py
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user