forked from 3wordchant/capsul-flask
migrate to pipenv
This commit is contained in:
16
README.md
16
README.md
@ -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)
|
||||
|
Reference in New Issue
Block a user