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:
@@ -22,13 +22,14 @@ httpbin_launch() {
|
||||
|
||||
# Current decorator (>= 5) is incompatible with Python 3.4 used
|
||||
# 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)
|
||||
# We use Python 2 under macOS 10.11 which doesn't have Python 3,
|
||||
# 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`"
|
||||
|
||||
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 &
|
||||
WX_TEST_WEBREQUEST_URL="http://localhost:5000"
|
||||
|
||||
|
Reference in New Issue
Block a user