migrate to pipenv

This commit is contained in:
2020-05-11 21:25:49 -05:00
parent 22520fe984
commit 2e6291d87c
4 changed files with 302 additions and 25 deletions

View File

@ -8,17 +8,23 @@ Python Flask web application for capsul.org
Ensure you have the pre-requisites for the psycopg2 Postgres database adapter package
```
sudo apt-get install python3-dev libpq-dev
sudo apt install python3-dev libpq-dev
pg_config --version
```
Ensure you have the wonderful `pipenv` python package management and virtual environment cli
```
sudo apt install pipenv
```
Create python virtual environment and install packages
```
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip wheel
pip install -r requirements.txt
# install deps
pipenv install
# load the deps into $PATH
pipenv shell
```
Run an instance of Postgres (I used docker for this, you can use whatever you want, point is its listening on localhost:5432)