From 1be09081750799e36a7b1c81c861320e22918c72 Mon Sep 17 00:00:00 2001 From: Michal Urban <485429@mail.muni.cz> Date: Sun, 26 Jun 2022 22:38:21 +0200 Subject: [PATCH] updated README with an advice on how to perform dependency updates --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 4948c7c0..6483b522 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,18 @@ It consists of the following modules. * ostack_client - a client that provides all necessary functions for heat stack manipulation * utils - some common functions * exceptions - used exceptions + +## Updating Dependencies + +When performing `pipenv lock`, you may run into some issues. Here is how to resolve at least some of them. + +* First, download Python 3.6 alongside any other python that is installed, using for example: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/ + +* Newer versions of pipenv may be also causing trouble. A downgrade to last working version is adviced: `pip3 install --user pipenv==2022.1.8` + +* Create a virtual environment with Python 3.6: `pipenv --python 3.6` +* pipenv sync --dev +* pipenv lock +* pipenv run tox --recreate + +_If all else fails and the tox command does not succeed, compare the contents of Pipfile.lock with the latest working build. Check if there are differences in version of tools, such as pipenv, tox and so on. It may help to specify the latest working version in the pipfile, remove the pipenv (`pipenv --rm`) and try again._ \ No newline at end of file -- GitLab