-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
39 lines (30 loc) · 1.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/django_coverage_plugin/blob/master/NOTICE.txt
# Makefile for django_coverage_plugin
help: ## Show this help.
@echo "Available targets:"
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
test: ## Run all the tests.
tox -q -- -q
clean: ## Remove non-source files.
-rm -rf *.egg-info
-rm -rf build dist
-rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc */*/*/*/*.pyc */*/*/*/*/*.pyc
-rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo */*/*/*/*.pyo */*/*/*/*/*.pyo
-rm -f *.bak */*.bak */*/*.bak */*/*/*.bak */*/*/*/*.bak */*/*/*/*/*.bak
-rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__ */*/*/*/__pycache__ */*/*/*/*/__pycache__
-rm -f MANIFEST
-rm -f .coverage .coverage.* coverage.xml
-rm -f setuptools-*.egg distribute-*.egg distribute-*.tar.gz
sterile: clean ## Remove all non-controlled content, even if expensive.
-rm -rf .tox*
kit: ## Make the source distribution.
python -m build
python -m twine check dist/*
kit_upload: ## Upload the built distributions to PyPI.
python -m twine upload --verbose dist/*
tag: ## Make a git tag with the version number.
git tag -s -m "Version v$$(python setup.py --version)" v$$(python setup.py --version)
git push --all
ghrelease: ## Make a GitHub release for the latest version.
python -m scriv github-release