Create and display maps with points in Wagtail
https://framagit.org/cliss21/wagtail-maps
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
.PHONY: clean lint format help |
|
.DEFAULT_GOAL := help |
|
|
|
PYTHON := venv/bin/python |
|
|
|
help: |
|
@echo "Please use 'make <target>' where <target> is one of" |
|
@echo "" |
|
@grep '^[^.#]\+:\s\+.*#' Makefile | \ |
|
sed "s/\(.\+\):\s*\(.*\) #\s*\(.*\)/`printf "\033[93m"` \1`printf "\033[0m"` \3 [\2]/" | \ |
|
expand -35 |
|
@echo "" |
|
@echo "Check the Makefile to know exactly what each target is doing." |
|
|
|
clean: # Remove all builds and Python artifacts |
|
find wagtail_maps tests \ |
|
\( -name '*.py[co]' -o -name '__pycache__' \) -exec rm -rf {} + |
|
rm -rf build dist .eggs *.egg-info |
|
|
|
test: # Run tests quickly with the current Python |
|
$(PYTHON) -m pytest |
|
|
|
test-wip: # Run tests marked as wip with the current Python |
|
$(PYTHON) -m pytest -vv -m 'wip' --pdb |
|
|
|
test-all: # Run tests on every Python, Django and Wagtail versions |
|
tox |
|
|
|
coverage: # Check code coverage quickly with the current Python |
|
$(PYTHON) -m coverage run -m pytest |
|
$(PYTHON) -m coverage report -m |
|
$(PYTHON) -m coverage html |
|
@echo open htmlcov/index.html |
|
|
|
lint: # Check the Python code syntax and style |
|
$(PYTHON) -m flake8 wagtail_maps tests |
|
|
|
format: # Fix the Python code syntax and imports order |
|
$(PYTHON) -m isort wagtail_maps tests |
|
$(PYTHON) -m black wagtail_maps tests |
|
|
|
release: dist # Package and upload a release |
|
twine upload dist/* |
|
|
|
dist: clean # Build source and wheel package |
|
$(PYTHON) setup.py sdist |
|
$(PYTHON) setup.py bdist_wheel |
|
ls -l dist
|
|
|