1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 12:42:41 +00:00
Files
blag/Makefile
Bastian Venthur 05db61da55 python -> python3
2021-01-15 15:40:10 +01:00

32 lines
626 B
Makefile

VENV = venv
all: lint test
$(VENV): requirements.txt requirements-dev.txt setup.py
python3 -m venv $(VENV)
$(VENV)/bin/python3 -m pip install --upgrade -r requirements.txt
$(VENV)/bin/python3 -m pip install --upgrade -r requirements-dev.txt
$(VENV)/bin/python3 -m pip install -e .
touch $(VENV)
test:
$(VENV)/bin/python -m pytest
.PHONY: test
lint:
$(VENV)/bin/python -m flake8
.PHONY: lint
release:
python3 setup.py sdist bdist_wheel upload
.PHONY: release
clean:
rm -rf $(VENV)
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
# coverage
rm -rf htmlcov .coverage
.PHONY: clean