[packages/python-transaction] - updated to 3.1.0
qboosh
qboosh at pld-linux.org
Mon Sep 25 21:00:41 CEST 2023
commit 3acaeba7b5038fa65b4ebe223a1eacd407a868b0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Sep 25 20:47:48 2023 +0200
- updated to 3.1.0
python-transaction-mock.patch | 16 ++++++++--------
python-transaction.spec | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/python-transaction.spec b/python-transaction.spec
index 12413fd..43a3b4f 100644
--- a/python-transaction.spec
+++ b/python-transaction.spec
@@ -10,12 +10,12 @@
Summary: Generic transaction implementation for Python, mainly used by the ZODB
Summary(pl.UTF-8): Ogólna implementacja transakcji dla Pythona, używana głównie przez ZODB
Name: python-%{module}
-Version: 3.0.1
+Version: 3.1.0
Release: 1
License: ZPL v2.1
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/t/transaction/%{module}-%{version}.tar.gz
-# Source0-md5: 6ffa07bd5021d502edb3998baee3701f
+# Source0-md5: 7e66f49195e9a54cf0af3121febb38a3
Patch0: %{name}-mock.patch
URL: https://github.com/zopefoundation/transaction
BuildRequires: rpm-pythonprov
diff --git a/python-transaction-mock.patch b/python-transaction-mock.patch
index 5ec008f..a26d859 100644
--- a/python-transaction-mock.patch
+++ b/python-transaction-mock.patch
@@ -9,25 +9,25 @@
setup(name='transaction',
version=version,
---- transaction-3.0.1/src/transaction/tests/test__manager.py.orig 2020-12-11 12:41:44.000000000 +0100
-+++ transaction-3.0.1/src/transaction/tests/test__manager.py 2022-04-26 22:18:47.468804525 +0200
-@@ -11,7 +11,10 @@
- # FOR A PARTICULAR PURPOSE
- #
+--- transaction-3.1.0/src/transaction/tests/test__manager.py.orig 2023-09-25 20:29:46.755625089 +0200
++++ transaction-3.1.0/src/transaction/tests/test__manager.py 2023-09-25 20:32:52.544618584 +0200
+@@ -13,7 +13,10 @@
##############################################################################
+ import unittest
+
-import mock
+try:
+ import mock
+except ImportError:
+ from unittest import mock
- import unittest
-
import zope.interface.verify
+
+ from .. import interfaces
@@ -671,7 +674,6 @@ class TransactionManagerTests(unittest.T
# If a datamanager registers for synchonization after a
# transaction has started, we should call newTransaction so it
# can do necessry setup.
- import mock
+
from .. import TransactionManager
manager = TransactionManager()
- sync1 = mock.MagicMock()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-transaction.git/commitdiff/3acaeba7b5038fa65b4ebe223a1eacd407a868b0
More information about the pld-cvs-commit
mailing list