diff --git a/python/README.md b/python/README.md index d858d8d..55d7fcc 100755 --- a/python/README.md +++ b/python/README.md @@ -29,6 +29,9 @@ You can customize this behavior, see the next section for more details. There are two ways to list the applications dependencies: ``requirements.txt`` or ``setup.py``. The priority order is: requirements -> setup. The file should be in the root of deploy files. +packages will be upgrade to specified version or last stable version + + ### Using requirements.txt You can define a file called ``requirements.txt`` that list all pip dependencies of your application, @@ -56,4 +59,4 @@ You can also define the setup script to list your depencies, here's an example: ) After invokin ``git push`` or ``tsuru app-deploy``, tsuru will receive your code and tell the platform -to install all the depencies using ``pip install -r requirements.txt`` or ``pip instal -e ./``. +to install all the depencies using ``pip install --upgrade -r requirements.txt`` or ``pip instal --upgrade -e ./``. diff --git a/python/deploy b/python/deploy index 85af97e..d1f9214 100755 --- a/python/deploy +++ b/python/deploy @@ -54,8 +54,8 @@ pyenv global $APP_VENV echo_debug "*** $0: About to do pip install (pwd: $(pwd))" if [ -f "${CURRENT_DIR}/requirements.txt" ]; then - pip install -r ./requirements.txt + pip install --upgrade -r ./requirements.txt elif [ -f "${CURRENT_DIR}/setup.py" ]; then - pip install -e . + pip install --upgrade -e . fi popd