From a021a9bba24d367801fe3e03cbcc4831e517c3b5 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 12 Mar 2024 10:19:51 -0700 Subject: [PATCH] Pin requests-oauthlib<1.4.0 under python2.7 While requests-oauthlib 1.4.0 reports compatibility with python2.7 evidence points to the contrary. Specifically: import requests_oauthlib as oauth File "/home/zuul/src/opendev.org/zuul/zuul-jobs/.tox/py27/lib/python2.7/site-packages/requests_oauthlib/__init__.py", line 5, in from .oauth1_session import OAuth1Session File "/home/zuul/src/opendev.org/zuul/zuul-jobs/.tox/py27/lib/python2.7/site-packages/requests_oauthlib/oauth1_session.py", line 1, in from urllib.parse import urlparse ImportError: No module named parse The azure-storage-blob library depends on this oauthlib which is needed for log upload role testing. We address that by pinning the lib under python2.7. Change-Id: Ia27f2df166ccb33dcc93334d884411670ac859f7 --- test-requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 04ef6c4d9..def9eb4b5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -37,8 +37,9 @@ protobuf<3.18;python_version<'3.6' # For upload-logs-s3 boto3 -# Dep of azure-storage-blob +# Deps of azure-storage-blob msrest<0.7.0;python_version=='2.7' +requests-oauthlib<1.4.0;python_version=='2.7' # For upload-logs-azure azure-storage-blob