This commit is contained in:
Bastian Venthur
2021-01-11 22:36:30 +01:00
parent 4cd3afb08d
commit d3fe365bb0
11 changed files with 233 additions and 176 deletions

View File

@@ -1,24 +1,31 @@
.PHONY: \
test \
lint \
docs \
release \
clean
VENV = venv
all: lint test
$(VENV): requirements.txt requirements-dev.txt setup.py
python3 -m venv $(VENV)
$(VENV)/bin/python -m pip install --upgrade -r requirements.txt
$(VENV)/bin/python -m pip install --upgrade -r requirements-dev.txt
$(VENV)/bin/python -m pip install -e .
touch $(VENV)
test:
pytest
$(VENV)/bin/python -m pytest
.PHONY: test
lint:
flake8
#docs:
# $(MAKE) -C docs html
$(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