Fix another dependency problem with httpbin and Python 3.4

Crazily, pip installs seem to be non-deterministic as installing httpbin
in https://travis-ci.org/github/wxWidgets/wxWidgets/jobs/765946720
pulled in werkzeug 0.16.1 which works with Python 3.4, but doing it
again tries to use werkzeug 1.x which isn't.

Fix the version explicitly to work around this.
This commit is contained in:
Vadim Zeitlin
2021-04-05 17:21:53 +02:00
parent 449e6251e2
commit c7c60877e4

View File

@@ -22,13 +22,14 @@ httpbin_launch() {
# Current decorator (>= 5) is incompatible with Python 3.4 used # Current decorator (>= 5) is incompatible with Python 3.4 used
# here, so explicitly use a version which is known to work. # here, so explicitly use a version which is known to work.
pip_decorator_arg='decorator==4.4.2' # Similarly, werkzeug >= 1 doesn't support 3.4 any longer.
pip_explicit_deps='decorator==4.4.2 werkzeug==0.16.1'
;; ;;
macOS) macOS)
# We use Python 2 under macOS 10.11 which doesn't have Python 3, # We use Python 2 under macOS 10.11 which doesn't have Python 3,
# and decorator >= 5 is incompatible with it too. # and decorator >= 5 is incompatible with it too.
pip_decorator_arg='decorator==4.4.2' pip_explicit_deps='decorator==4.4.2'
;; ;;
*) *)
@@ -55,7 +56,7 @@ httpbin_launch() {
echo "Installing using `python$PY3 -m pip --version`" echo "Installing using `python$PY3 -m pip --version`"
python$PY3 -m pip install $pip_decorator_arg httpbin --user python$PY3 -m pip install $pip_explicit_deps httpbin --user
python$PY3 -m httpbin.core 2>&1 >httpbin.log & python$PY3 -m httpbin.core 2>&1 >httpbin.log &
WX_TEST_WEBREQUEST_URL="http://localhost:5000" WX_TEST_WEBREQUEST_URL="http://localhost:5000"