forked from AFPy/afpy.org
Utilisation du makefile pour installer l'environnement virtuel
This commit is contained in:
parent
f6d0e8ace0
commit
e7cf34f317
|
@ -4,7 +4,7 @@ python:
|
|||
- 3.6
|
||||
|
||||
install:
|
||||
- pip install --upgrade -e.[test]
|
||||
- make install
|
||||
|
||||
script:
|
||||
- make test
|
||||
|
|
3
Makefile
3
Makefile
|
@ -2,7 +2,6 @@ VENV = $(PWD)/.env
|
|||
PIP = $(VENV)/bin/pip
|
||||
PYTHON = $(VENV)/bin/python
|
||||
FLASK = $(VENV)/bin/flask
|
||||
PYTEST = $(VENV)/bin/pytest
|
||||
|
||||
all: install serve
|
||||
|
||||
|
@ -19,7 +18,7 @@ check-outdated:
|
|||
$(PIP) list --outdated --format=columns
|
||||
|
||||
test:
|
||||
$(PYTEST) tests.py --flake8 --isort --cov=afpy --cov=tests --cov-report=term-missing
|
||||
$(PYTHON) -m pytest tests.py --flake8 --isort --cov=afpy --cov=tests --cov-report=term-missing
|
||||
|
||||
serve:
|
||||
env FLASK_APP=afpy.py FLASK_ENV=development $(VENV)/bin/flask run
|
||||
|
|
Loading…
Reference in New Issue
Block a user