From d56bddececaeb33327e999b473444573803ff70c Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 20 Feb 2013 17:56:03 +0200 Subject: [PATCH] Require transaction >= 1.4.1 on Python 3 Because our test suite triggers that 'RuntimeError: dictionary changed size during iteration' error sporadically. --- buildout.cfg | 2 +- setup.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index f3ccbf7e6..e86a43b92 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -12,7 +12,7 @@ zope.interface = 4.0.3 ZConfig = 3.0.1 BTrees = 4.0.5 persistent = 4.0.6 -transaction = 1.4.0 +transaction = 1.4.1 zdaemon = 4.0.0a1 [test] diff --git a/setup.py b/setup.py index bd2c533eb..1cf454d09 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,8 @@ print("This version of ZODB requires Python 2.6 or higher") sys.exit(0) +PY3 = sys.version_info >= (3,) + # The (non-obvious!) choices for the Trove Development Status line: # Development Status :: 5 - Production/Stable # Development Status :: 4 - Beta @@ -124,7 +126,7 @@ def read_file(*path): 'BTrees', 'ZConfig', 'persistent', - 'transaction', + 'transaction >= 1.4.1' if PY3 else 'transaction', 'six', 'zc.lockfile', 'zdaemon >= 4.0.0a1',