From 056c4ab649d96bdcbe5142c6ce097dacaba3a4cd Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 3 Oct 2022 11:18:24 -0400 Subject: [PATCH] [stable-only] Cap importlib-metadata on Python 3.7 In the recently released importlib-metadata 5.0.0 package a number of breaking changes where made to the interface (in fact that was the only change for the release removing a bunch of things tagged as deprecated). Since Python 3.7 depends on this library to function for querying package metadata these breaking API changes cause anything using stevedore to fail when 5.0.0 is installed. To workaround these issues this commit sets a version cap on importlib-metadata to avoid using the version which is incompatible with stevedore. Change-Id: I0db3624fcdb50eea4ff039e65456ef6e91c99c48 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 06321a9..ed64141 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ # process, which may cause wedges in the gate later. pbr!=2.1.0,>=2.0.0 # Apache-2.0 -importlib_metadata>=1.7.0;python_version<'3.8' # Apache-2.0 +importlib_metadata>=1.7.0,<5.0.0;python_version<'3.8' # Apache-2.0