url2markdown/Makefile

40 lines
690 B
Makefile
Raw Normal View History

2020-10-11 14:01:39 +02:00
SHELL=/bin/bash
2020-10-12 14:48:08 +02:00
.PHONY: dist/url2markdown
2020-10-11 14:01:39 +02:00
2020-10-13 23:17:23 +02:00
dist/url2markdown: venv
2020-10-11 14:01:39 +02:00
( \
. venv/bin/activate; \
2020-10-13 21:13:01 +02:00
pyinstaller -F url2markdown/__main__.py -n url2markdown; \
2020-10-11 14:01:39 +02:00
)
venv: venv/bin/activate
venv/bin/activate: requirements/base.txt
2020-10-11 14:01:39 +02:00
test -d venv || python3 -m venv venv
. venv/bin/activate; pip3 install wheel; pip3 install -Ur requirements/base.txt
2020-10-11 14:01:39 +02:00
touch venv/bin/activate
init:
rm -rf venv
python3 -m venv venv
. venv/bin/activate
( \
pip3 install -r requirements/development.txt; \
2020-10-11 14:01:39 +02:00
pip3 install -e .; \
)
test:
@. venv/bin/activate
@( \
2020-10-13 21:13:37 +02:00
pytest --cov=. --cov-report=html; \
2020-10-11 14:01:39 +02:00
)
clean: distclean
rm -rf build/
rm -rf venv/
find -iname "*.pyc" -delete
distclean:
rm -rf dist/