From 32d50f982b7abcbd8fe71727b9fe42d9ae75ca6d Mon Sep 17 00:00:00 2001 From: totycro Date: Sat, 27 May 2023 02:42:03 +0200 Subject: [PATCH] Fix api tests in docker (#1255) The tests have recently been rewritten to use `url_for`, which was changed in flask 2.2.0, so the tests don't pass in previous versions https://flask.palletsprojects.com/en/2.3.x/api/#flask.Flask.url_for However the python3-flask package for ubuntu only features the ancient version 2.0.1-2ubuntu1. Therefore this commit switches flask the install to pip, where recent verions are available References https://github.com/geopython/pygeoapi/issues/1111 --- Dockerfile | 2 -- requirements-docker.txt | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5edeec5..ebb0eb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,8 +91,6 @@ ENV TZ=${TZ} \ tzdata \ gunicorn \ python3-dateutil \ - python3-flask \ - python3-flask-cors \ python3-gevent \ python3-greenlet \ python3-pip \ diff --git a/requirements-docker.txt b/requirements-docker.txt index fb5b1b6..1c47773 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -4,3 +4,5 @@ pygeofilter[backend-sqlalchemy] pygeoif pygeometa sodapy +Flask>=2.2.0 +Flask-Cors