From 20528e11039034c31ef74d29bcfc9760a520f2d9 Mon Sep 17 00:00:00 2001 From: zachglassman Date: Fri, 20 Jul 2018 13:56:02 -0700 Subject: [PATCH 1/2] move to py3 and update requirements --- requirements.txt | 4 ++-- runtime.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9cbebb2d6..7e2819289 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -gunicorn==19.7.1 -requests==2.18.4 +gunicorn==19.9.0 +requests==2.19.1 diff --git a/runtime.txt b/runtime.txt index 538568204..486fcce12 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-2.7.14 +python-3.6.5 From d8dd45d297ecb031d95fd190ba19a0697a9566a8 Mon Sep 17 00:00:00 2001 From: zachglassman Date: Fri, 20 Jul 2018 13:57:34 -0700 Subject: [PATCH 2/2] update buildpack links in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 515490cda..e4b472cc7 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ A [finished example](https://lemurian.herokuapp.com) that demonstrates some basi - There is some boilerplate HTML in `templates/` - Create Heroku application with `heroku create ` or leave blank to auto-generate a name. -- (Suggested) Use the [conda buildpack](https://github.com/kennethreitz/conda-buildpack). +- (Suggested) Use the [conda buildpack](https://github.com/thedataincubator/conda-buildpack). If you choose not to, put all requirements into `requirements.txt` - `heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git` + `heroku config:add BUILDPACK_URL=https://github.com/thedataincubator/conda-buildpack.git#py3` The advantages of conda include easier virtual environment management and fast package installation from binaries (as compared to the compilation that pip-installed packages sometimes require). One disadvantage is that binaries take up a lot of memory, and the slug pushed to Heroku is limited to 300 MB. Another note is that the conda buildpack is being deprecated in favor of a Docker solution (see [docker branch](https://github.com/thedataincubator/flask-framework/tree/docker) of this repo for an example).