From b4ff604beb3350a0f707cd3c42e36dd717cc942b20cb0063548a373d61be96ac Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 18 Jan 2013 14:14:40 +0000 Subject: [PATCH] Accepting request 148606 from home:posophe:branches:devel:languages:python Update and python3 support OBS-URL: https://build.opensuse.org/request/show/148606 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transaction?expand=0&rev=24 --- python-transaction.changes | 30 +++++++++++++++++++ python-transaction.spec | 4 +-- python3-transaction.changes | 5 ++++ python3-transaction.spec | 58 +++++++++++++++++++++++++++++++++++++ transaction-1.3.0.tar.gz | 3 -- transaction-1.4.0.tar.gz | 3 ++ 6 files changed, 98 insertions(+), 5 deletions(-) create mode 100644 python3-transaction.changes create mode 100644 python3-transaction.spec delete mode 100644 transaction-1.3.0.tar.gz create mode 100644 transaction-1.4.0.tar.gz diff --git a/python-transaction.changes b/python-transaction.changes index 481409a..17e5532 100644 --- a/python-transaction.changes +++ b/python-transaction.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Tue Jan 15 15:52:04 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Tue Jan 15 15:49:33 UTC 2013 - p.drouand@gmail.com + +- Update to 1.4.0 version: + * Updated Trove classifiers. + +------------------------------------------------------------------- +Tue Jan 15 15:48:03 UTC 2013 - p.drouand@gmail.com + +- Update to 1.4.0b1 version: + * Converted existing doctests into Sphinx documentation (snippets + are exercised via 'tox'). + * 100% unit test coverage. + * Backward incompatibility: raise ValueError rather than AssertionError + for runtime errors: + - In Transaction.doom if the transaction is in a non-doomable state. + - In TransactionManager.attempts if passed a non-positive value. + - In TransactionManager.free if passed a foreign transaction. + * Declared support for Python 3.3 in setup.py, and added tox testing. + * When a non-retryable exception was raised as the result of a call to + transaction.manager.commit within the "attempts" machinery, the exception + was not reraised properly. Symptom: an unrecoverable exception such as + Unsupported: Storing blobs in is not supported. would be + swallowed inappropriately. + ------------------------------------------------------------------- Wed Jun 6 16:07:36 UTC 2012 - os-dev@jacraig.com diff --git a/python-transaction.spec b/python-transaction.spec index 852922e..711a14a 100644 --- a/python-transaction.spec +++ b/python-transaction.spec @@ -1,7 +1,7 @@ # # spec file for package python-transaction # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-transaction -Version: 1.3.0 +Version: 1.4.0 Release: 0 Summary: Transaction management for Python License: ZPL-2.1 diff --git a/python3-transaction.changes b/python3-transaction.changes new file mode 100644 index 0000000..afc2603 --- /dev/null +++ b/python3-transaction.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jan 15 15:52:16 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-transaction.spec b/python3-transaction.spec new file mode 100644 index 0000000..2825a8b --- /dev/null +++ b/python3-transaction.spec @@ -0,0 +1,58 @@ +# +# spec file for package python3-transaction +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-transaction +Version: 1.4.0 +Release: 0 +Summary: Transaction management for Python +License: ZPL-2.1 +Group: Development/Libraries/Python +Url: http://www.zope.org/Products/ZODB +Source: http://pypi.python.org/packages/source/t/transaction/transaction-%{version}.tar.gz +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +Requires: python3-zope.interface +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%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 +%setup -q -n transaction-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root) +%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt PKG-INFO README.txt +%{python3_sitelib}/* + +%changelog diff --git a/transaction-1.3.0.tar.gz b/transaction-1.3.0.tar.gz deleted file mode 100644 index 1de5637..0000000 --- a/transaction-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e210b5bc459e62d7d1ef879c21231a4d864bc24977d25ad2e2d2ebc25e54760 -size 49603 diff --git a/transaction-1.4.0.tar.gz b/transaction-1.4.0.tar.gz new file mode 100644 index 0000000..8c1da35 --- /dev/null +++ b/transaction-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19d41c018f1c012768c6cb3f3a79a9c7668bf34a323099318607d3dced8d2c9a +size 58550