27 lines
557 B
Makefile
27 lines
557 B
Makefile
.PHONY: clean virtualenv test docker dist dist-upload
|
|
|
|
clean:
|
|
find . -name '*.py[co]' -delete
|
|
|
|
virtualenv:
|
|
virtualenv --prompt '|> kontor-fastapi <| ' env
|
|
env/bin/pip install -r requirements.txt
|
|
env/bin/python setup.py develop
|
|
@echo
|
|
@echo "VirtualENV Setup Complete. Now run: source env/bin/activate"
|
|
@echo
|
|
|
|
test:
|
|
pytest -v --cov --cov-report=term --cov-report=html:coverage-report
|
|
|
|
docker: clean
|
|
docker build -t kontor-api:latest .
|
|
|
|
dist: clean
|
|
rm -rf dist/*
|
|
python setup.py sdist
|
|
python setup.py bdist_wheel
|
|
|
|
dist-upload:
|
|
twine upload dist/*
|