forked from pool/python-transaction
Accepting request 507381 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/507381 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-transaction?expand=0&rev=20
This commit is contained in:
commit
e51961f543
@ -1,3 +1,82 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 24 11:52:07 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to version 2.1.2
|
||||
* To avoid leaking memory, don’t include unexpected value in
|
||||
warnings about non-text transaction meta data.
|
||||
2.1.1:
|
||||
* For backward compatibility, relax the requirements that
|
||||
transaction meta data (user or description) be text:
|
||||
+ If None is assigned, the assignment is ignored.
|
||||
+ If a non-text value is assigned, a warning is issued and
|
||||
the value is converted to text. If the value is a binary
|
||||
string, it will be decoded with the UTF-8 encoding the
|
||||
replace error policy.
|
||||
2.1.0:
|
||||
* Added a transaction-manager explicit mode. Explicit mode makes
|
||||
some kinds of application bugs easier to detect and potentially
|
||||
allows data managers to manage resources more efficiently.
|
||||
(This addresses
|
||||
https://github.com/zopefoundation/transaction/issues/35.)
|
||||
2.0.3:
|
||||
* The user and description fields must now be set with text
|
||||
(unicode) data. Previously, if bytes were provided, they’d be
|
||||
decoded as ASCII. It was decided that this would lead to bugs
|
||||
that were hard to test for.
|
||||
* Also, the transaction meta-data field, extended_info has
|
||||
been renamed to extension.
|
||||
2.0.2:
|
||||
* Fixed: Some legacy applications expect the transaction
|
||||
_extension attribute to be mutable and it wasn’t.
|
||||
2.0.1:
|
||||
* The transaction user and description attributes are now
|
||||
defined to be text (unicode) as opposed to Python the str
|
||||
type.
|
||||
* Added the extended_info transaction attribute which contains
|
||||
transaction meta data. (The _extension attribute is retained
|
||||
as an alias for backward compatibility.)
|
||||
* The transaction interface, ITransaction, now requires
|
||||
extended_info keys to be text (unicode) and values to be
|
||||
JSON-serializable.
|
||||
* Removed setUser from ITransaction. We’ll keep the method
|
||||
indefinitely, but it’s unseemly in ITransaction. :)
|
||||
The main purpose of these changes is to tighten up the text
|
||||
specification of user, description and extended_info keys, and
|
||||
to give us more flexibility in the future for serializing
|
||||
extended info. It’s possible that these changes will be
|
||||
breaking, so we’re also increasing the major version number.
|
||||
1.7.0:
|
||||
* Added a transaction-manager run method for running a
|
||||
function as a transaction, retrying as necessary on transient
|
||||
errors.
|
||||
* Fixed the transaction manager attempts method. It didn’t
|
||||
stop repeating when there wasn’t an error.
|
||||
* Corrected ITransaction by removing beforeCommitHook (which
|
||||
is no longer implemented) and removing ‘self’ from two methods.
|
||||
1.6.1:
|
||||
* Fixed: Synchonizers that registered with transaction
|
||||
managers when transactions were in progress didn’t have their
|
||||
newTransaction methods called to let them know of the
|
||||
in-progress transactions.
|
||||
1.6.0:
|
||||
* New transaction API for storing data on behalf of objects,
|
||||
such as data managers.
|
||||
* Drop references to data managers joined to a transaction
|
||||
when it is committed or aborted.
|
||||
1.5.0:
|
||||
* Drop support for Python 2.6 and 3.2.
|
||||
* Add support for Python 3.5.
|
||||
* Added APIs for interogating and clearing internal state to
|
||||
support client tests.
|
||||
1.4.4:
|
||||
* Use the standard valuerefs() method rather than relying on
|
||||
implementation details of WeakValueDictionary in WeakSet.
|
||||
* Add support for PyPy3.
|
||||
* Require 100% branch coverage (in addition to 100% statement
|
||||
coverage).
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 14 09:56:45 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-transaction
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@ -16,27 +16,30 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-transaction
|
||||
Version: 1.4.3
|
||||
Version: 2.1.2
|
||||
Release: 0
|
||||
Summary: Transaction management for Python
|
||||
License: ZPL-2.1
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.zope.org/Products/ZODB
|
||||
Source: https://pypi.python.org/packages/source/t/transaction/transaction-%{version}.tar.gz
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-zope.interface
|
||||
BuildRequires: unzip
|
||||
Source: https://files.pythonhosted.org/packages/source/t/transaction/transaction-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-zope.interface
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
# SECTION Documentation requirements
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-repoze.sphinx.autointerface
|
||||
# /SECTION
|
||||
# SECTION Test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This package contains a generic transaction implementation for Python. It is
|
||||
@ -48,33 +51,36 @@ 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.
|
||||
|
||||
%package doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Transaction management for Python
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module transaction-doc == %{version}}
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n transaction-%{version}
|
||||
rm -rf transaction.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py -q test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1b2304a886a85ad014f73d93346c14350fc214ae22a4f565f42f6761cfb9ecc5
|
||||
size 332882
|
3
transaction-2.1.2.tar.gz
Normal file
3
transaction-2.1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b9bc365e7dba3877e0f6fdee32aa029b8c0c1eb4fe227f524bffd5fc46064bd5
|
||||
size 65104
|
Loading…
Reference in New Issue
Block a user