From 2e85e20efd1530f407a56cc02adf9e3367b0e17a Mon Sep 17 00:00:00 2001 From: Larry Cohen Date: Tue, 7 Jan 2020 16:14:54 +0200 Subject: [PATCH 1/8] changed pyhton version to 2.7 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0382aa2..2f5624e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Flask==0.9 +Flask==0.10.1 Jinja2==2.6 Werkzeug==0.8.3 wsgiref==0.1.2 From 9da88a5722b30664989a632c231ea5a3121cef86 Mon Sep 17 00:00:00 2001 From: Larry Cohen Date: Tue, 7 Jan 2020 16:26:17 +0200 Subject: [PATCH 2/8] latest flask version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2f5624e..04a766c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Flask==0.10.1 +Flask==1.1.1 Jinja2==2.6 Werkzeug==0.8.3 wsgiref==0.1.2 From c85e592b9290a71e24ae130ddcce6dda0bf8985c Mon Sep 17 00:00:00 2001 From: Larry Cohen Date: Tue, 7 Jan 2020 16:30:37 +0200 Subject: [PATCH 3/8] latest wsgiref version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 04a766c..d1399ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Flask==1.1.1 Jinja2==2.6 Werkzeug==0.8.3 -wsgiref==0.1.2 +wsgiref From 1cc60bb27800b6cc0e911a05984b0290fb2ee955 Mon Sep 17 00:00:00 2001 From: Larry Cohen Date: Tue, 7 Jan 2020 16:32:27 +0200 Subject: [PATCH 4/8] removed wsgiref --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d1399ed..6709077 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ Flask==1.1.1 Jinja2==2.6 Werkzeug==0.8.3 -wsgiref From 69c9a768ce85c64ba7393f9b43f83c779cfb86c6 Mon Sep 17 00:00:00 2001 From: marianobrc Date: Thu, 6 May 2021 10:48:10 -0300 Subject: [PATCH 5/8] Get app name from env vars --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f64c9e7..4b5c2f2 100644 --- a/app.py +++ b/app.py @@ -5,9 +5,10 @@ @app.route('/') def hello(): - return 'Hello World!' + app_name = os.environ.get('APP_NAME', '[set APP_NAME env var]') + return 'Hello World from {}!'.format(app_name) if __name__ == '__main__': # Bind to PORT if defined, otherwise default to 5000. port = int(os.environ.get('PORT', 5000)) - app.run(host='0.0.0.0', port=port) \ No newline at end of file + app.run(host='0.0.0.0', port=port) From 98269d6f93258bfbbcced7d5b8b990c8e668c137 Mon Sep 17 00:00:00 2001 From: marianobrc Date: Thu, 6 May 2021 10:59:17 -0300 Subject: [PATCH 6/8] update requirements for python 3.8+ --- requirements.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6709077..e4c5de6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ -Flask==1.1.1 -Jinja2==2.6 -Werkzeug==0.8.3 +click==7.1.2 +Flask==1.1.2 +itsdangerous==1.1.0 +Jinja2==2.11.3 +MarkupSafe==1.1.1 +Werkzeug==1.0.1 From 1bbb48be89cf24e72dde3908219bede33874952f Mon Sep 17 00:00:00 2001 From: Mariano Date: Tue, 25 May 2021 14:41:35 -0300 Subject: [PATCH 7/8] Create README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..271d759 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# python-sample +The simplest posible webapp in flask. +This app responds to GET requests at / printing 'Hello World from {APP_NAME}!', where APP_NAME is optional and it is readen from an environment variable. +It's compatible with python 3.8+. From 733fb46f3feef1732f8d0876ebeac3d7cd595327 Mon Sep 17 00:00:00 2001 From: Mariano Date: Tue, 25 May 2021 14:46:29 -0300 Subject: [PATCH 8/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 271d759..7301f09 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # python-sample The simplest posible webapp in flask. -This app responds to GET requests at / printing 'Hello World from {APP_NAME}!', where APP_NAME is optional and it is readen from an environment variable. +This app responds to GET requests at / printing 'Hello World from {APP_NAME}!', where APP_NAME is optional and it is read from an environment variable. It's compatible with python 3.8+.