From 70ba859bb68a650b35b6e85ddc889ad143055170 Mon Sep 17 00:00:00 2001 From: Thor Date: Thu, 9 Jan 2020 18:43:11 +0800 Subject: [PATCH] Python/bump flask (#93) * Bump Flask version and add .flaskenv file. * Remove FLASK_APP from README. --- server/python/.flaskenv | 2 ++ server/python/README.md | 2 +- server/python/requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 server/python/.flaskenv diff --git a/server/python/.flaskenv b/server/python/.flaskenv new file mode 100644 index 00000000..364d68d5 --- /dev/null +++ b/server/python/.flaskenv @@ -0,0 +1,2 @@ +FLASK_APP=app.py +FLASK_ENV=development \ No newline at end of file diff --git a/server/python/README.md b/server/python/README.md index 9668f7f9..6948a23c 100644 --- a/server/python/README.md +++ b/server/python/README.md @@ -53,7 +53,6 @@ pip install -r requirements.txt Export our Flask app and run! ``` -export FLASK_APP=app.py flask run ``` @@ -70,6 +69,7 @@ We can use the Stripe CLI to forward webhook events to our local development ser ``` stripe listen --forward-to http://localhost:5000/webhook ``` + > **Note:** You do not need to configure any webhook endpoints in your Dashboard to receive webhooks with the CLI. The Stripe CLI will let you know that webhook forwarding is ready and output your webhook signing secret: diff --git a/server/python/requirements.txt b/server/python/requirements.txt index 0ba07ada..07a94cd5 100644 --- a/server/python/requirements.txt +++ b/server/python/requirements.txt @@ -3,7 +3,7 @@ attrs==17.4.0 certifi==2018.1.18 chardet==3.0.4 click==6.7 -Flask==0.12.4 +Flask==1.1.1 gunicorn==19.7.1 idna==2.6 idna-ssl==1.1.0 @@ -22,5 +22,5 @@ six==1.11.0 stripe==2.12.0 tornado==5.0.2 urllib3==1.24.2 -Werkzeug==0.14.1 +Werkzeug==0.15.3 yarl==1.1.1