From 7063813b592839d5fec0cb7308f4ed66e1e3833b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Apr 2021 17:56:09 +0200 Subject: [PATCH] Hardcode versions of all httpbin dependencies under Trusty Python package hosting seems to randomly decide which version of the package to return to pip running under Trusty: in addition to werkzeug (see last commit), the version of flask has spontaneously changed from 1.0 to 1.2 in the latest build too. Just hardcode the versions of all dependencies in the last successful build and hope they keep working for longer than a day. --- build/tools/httpbin.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index 3909fc1e91..3b1a6248c7 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -20,10 +20,12 @@ httpbin_launch() { # Python 2.7.6 is too old to support SNI and can't be used. PY3=3 - # Current decorator (>= 5) is incompatible with Python 3.4 used - # here, so explicitly use a version which is known to work. - # Similarly, werkzeug >= 1 doesn't support 3.4 any longer. - pip_explicit_deps='decorator==4.4.2 werkzeug==0.16.1' + # Explicitly select the versions of dependencies that are still + # compatible with Python 3.4 used here as the latest versions of + # several of them are not. + pip_explicit_deps='Flask==1.0.4 Jinja2==2.10.3 MarkupSafe==1.1.1 + blinker==1.4 brotlipy==0.7.0 cffi==1.14.5 click==7.0 decorator==4.4.2 + itsdangerous==1.1.0 pycparser==2.20 raven==6.10.0 werkzeug==0.16.1' ;; macOS)