From 539e6ff2c46e9bfdbeb6c9e0e078a77ebd487412 Mon Sep 17 00:00:00 2001 From: mcbloch Date: Fri, 5 Apr 2019 02:12:52 +0200 Subject: [PATCH] add command to run the server/manage deps --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index be6e006..5d0bfde 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,14 @@ Finally run the webserver with 1. Update models located in 'app/models.py' 2. Run `python app/haldis.py db migrate` to create a new migration. 3. Apply the changes to the database using `python app/haldis.py db upgrade` + +### Adding dependencies/libraries + +1. Add new dependency to the `requirements.in` file +2. Run `pip-compile` to add freeze the dependency in the `requirements.txt` file together with it's own deps +3. Run `pip-sync` to download the library + +### Updating dependencies +Run `pip-compile --upgrade` + +For more information about managing the dependencies see [jazzband/pip-tools: A set of tools to keep your pinned Python dependencies fresh.](https://github.com/jazzband/pip-tools)