From d5e0610a0384151571523ab6bf1b9b01df531f9e Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Tue, 3 May 2022 20:57:38 -0500 Subject: [PATCH] pin typing-extensions<4.2 to fix st2client install st2client requires importlib-metadata which requires typing-extensions. But typing-extensions v4.2.0 dropped support for python3.6, so pin it. --- CHANGELOG.rst | 3 +++ fixed-requirements.txt | 2 ++ requirements.txt | 1 + st2client/in-requirements.txt | 2 ++ st2client/requirements.txt | 1 + 5 files changed, 9 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 20be64a44ca..d55e09bf5c1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -202,6 +202,9 @@ Changed * Bump black to v22.3.0 - This is used internally to reformat our python code. #5606 +* Pin ``typing-extensions<4.2`` (used indirectly by st2client) to maintain python 3.6 support. #5638 + + 3.6.0 - October 29, 2021 ------------------------ diff --git a/fixed-requirements.txt b/fixed-requirements.txt index d02d90bb20e..3001c58851d 100644 --- a/fixed-requirements.txt +++ b/fixed-requirements.txt @@ -60,6 +60,8 @@ argparse==1.12.2 argcomplete==1.12.2 prettytable==2.1.0 importlib-metadata==3.10.1 +# importlib-metadata requires typing-extensions but v4.2.0 requires py3.7+ +typing-extension<4.2 # NOTE: sseclient has various issues which sometimes hang the connection for a long time, etc. sseclient-py==1.7 stevedore==1.30.1 diff --git a/requirements.txt b/requirements.txt index 3ddc4047a36..a13861b61fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -72,6 +72,7 @@ sseclient-py==1.7 stevedore==1.30.1 tenacity>=3.2.1,<7.0.0 tooz==2.8.0 +typing-extensions udatetime==0.0.16 unittest2 webob==1.8.7 diff --git a/st2client/in-requirements.txt b/st2client/in-requirements.txt index 369b36c32be..e5dc7e82d6f 100644 --- a/st2client/in-requirements.txt +++ b/st2client/in-requirements.txt @@ -1,5 +1,7 @@ # Remember to list implicit packages here, otherwise version won't be fixated! importlib-metadata +# importlib-metadata requires typing-extensions +typing-extensions argcomplete prettytable pytz diff --git a/st2client/requirements.txt b/st2client/requirements.txt index ed699899e24..667a715312b 100644 --- a/st2client/requirements.txt +++ b/st2client/requirements.txt @@ -24,3 +24,4 @@ pyyaml==5.4.1 requests[security]==2.25.1 six==1.13.0 sseclient-py==1.7 +typing-extensions