Hello community,
here is the log from the commit of package python-transaction for
openSUSE:Factory checked in at 2017-07-21 22:46:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-transaction (Old)
and /work/SRC/openSUSE:Factory/.python-transaction.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-transaction"
Fri Jul 21 22:46:29 2017 rev:20 rq:507381 version:2.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-transaction/python-transaction.changes
2015-05-18 22:35:05.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-transaction.new/python-transaction.changes
2017-07-21 22:46:32.956849772 +0200
@@ -1,0 +2,79 @@
+Sat Jun 24 11:52:07 UTC 2017 - [email protected]
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
transaction-1.4.3.tar.gz
New:
----
transaction-2.1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-transaction.spec ++++++
--- /var/tmp/diff_new_pack.Lvw6v8/_old 2017-07-21 22:46:33.832726218 +0200
+++ /var/tmp/diff_new_pack.Lvw6v8/_new 2017-07-21 22:46:33.832726218 +0200
@@ -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 @@
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/
++++++ transaction-1.4.3.tar.gz -> transaction-2.1.2.tar.gz ++++++
++++ 15018 lines of diff (skipped)