From a61485d3bbf0eb386b0a23853733278649c16cd6 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 13 Mar 2015 08:29:28 -0700 Subject: [PATCH] Add contextlib2 lib to aid in py2/py3 compatability The contextlib2 provides functionality of that exists in the newer contextlib of python 3.2 and newer for projects that wish to work seamlessly in 2.6/2.7 and 3.2 and newer they need this package to be able to seamlessly use those python versions functionality. This package exists on at least ubuntu 14.04 and therefore is already being used/supported (and it seems to have a fedora package as well). TaskFlow would like to use it to provide use an equivalent of the contextlib.ExitStack functionality that exists in this library (and natively exists in 3.2 and newer). Oslo.db should also be able to take advantage of the same functionality to replace some test code (and likely other use-cases exist as well). Change-Id: I328a29d0f095204dfbe175a9044e26ed653cb01d --- global-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/global-requirements.txt b/global-requirements.txt index ee3a12396c..21042b52d3 100644 --- a/global-requirements.txt +++ b/global-requirements.txt @@ -12,6 +12,7 @@ cffi cliff>=1.7.0 # Apache-2.0 cmd2>=0.6.7 coinor.pulp>=1.0.4 +contextlib2>=0.4.0 # PSF License croniter>=0.3.4 # MIT License cryptography>=0.4 # Apache-2.0 ddt>=0.4.0