2010-06-22 10:37:07 +02:00
|
|
|
#
|
2012-02-01 15:54:03 +01:00
|
|
|
# spec file for package python-transaction
|
2010-06-22 10:37:07 +02:00
|
|
|
#
|
2022-04-20 09:47:24 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2010-06-22 10:37:07 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-06-07 17:11:07 +02:00
|
|
|
|
2019-03-04 16:55:13 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-06-22 10:37:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-06-11 13:29:23 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-02-01 15:54:03 +01:00
|
|
|
Name: python-transaction
|
2021-01-13 15:26:22 +01:00
|
|
|
Version: 3.0.1
|
2012-02-01 15:54:03 +01:00
|
|
|
Release: 0
|
2010-06-22 10:37:07 +02:00
|
|
|
Summary: Transaction management for Python
|
2012-02-01 15:54:03 +01:00
|
|
|
License: ZPL-2.1
|
2019-03-04 16:55:13 +01:00
|
|
|
URL: https://github.com/zopefoundation/transaction
|
2017-06-30 15:44:01 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-02-01 15:54:03 +01:00
|
|
|
Requires: python-zope.interface
|
2010-09-14 15:08:25 +02:00
|
|
|
BuildArch: noarch
|
2017-06-30 15:44:01 +02:00
|
|
|
# SECTION Test requirements
|
2022-04-20 09:47:24 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
2017-06-30 15:44:01 +02:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
2010-06-22 10:37:07 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a generic transaction implementation for Python. It is
|
|
|
|
mainly used by the ZODB, though.
|
|
|
|
|
|
|
|
Note that the data manager API, transaction.interfaces.IDataManager, is
|
|
|
|
syntactically simple, but semantically complex. The semantics were not easy to
|
|
|
|
express in the interface. This could probably use more work. The semantics are
|
|
|
|
presented in detail through examples of a sample data manager in
|
|
|
|
transaction.tests.test_SampleDataManager.
|
|
|
|
|
|
|
|
%prep
|
2012-02-01 15:54:03 +01:00
|
|
|
%setup -q -n transaction-%{version}
|
2017-06-30 15:44:01 +02:00
|
|
|
rm -rf transaction.egg-info
|
2010-06-22 10:37:07 +02:00
|
|
|
|
|
|
|
%build
|
2017-06-30 15:44:01 +02:00
|
|
|
%python_build
|
2010-06-22 10:37:07 +02:00
|
|
|
|
|
|
|
%install
|
2017-06-30 15:44:01 +02:00
|
|
|
%python_install
|
2019-10-14 16:47:45 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2010-06-22 10:37:07 +02:00
|
|
|
|
2013-08-09 10:34:17 +02:00
|
|
|
%check
|
2022-04-20 09:47:24 +02:00
|
|
|
# https://github.com/zopefoundation/zdaemon/issues/28#issuecomment-1102754818
|
|
|
|
sed -i 's:import mock:from unittest import mock:' src/transaction/tests/test__manager.py
|
2021-01-13 15:26:22 +01:00
|
|
|
%pytest
|
2013-08-09 10:34:17 +02:00
|
|
|
|
2017-06-30 15:44:01 +02:00
|
|
|
%files %{python_files}
|
2019-03-04 16:55:13 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
2012-02-01 15:54:03 +01:00
|
|
|
%{python_sitelib}/*
|
2010-06-22 10:37:07 +02:00
|
|
|
|
|
|
|
%changelog
|