Skip to content

Commit 2cd85c6

Browse files
committed
build: more-usual make targets
1 parent 8686b22 commit 2cd85c6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# Makefile for django_coverage_plugin
55

6+
.PHONY: help test clean sterile dist pypi test_pypi tag ghrelease
7+
68
help: ## Show this help.
79
@echo "Available targets:"
810
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
@@ -24,18 +26,18 @@ clean: ## Remove non-source files.
2426
sterile: clean ## Remove all non-controlled content, even if expensive.
2527
-rm -rf .tox*
2628

27-
kit: ## Make the source distribution.
29+
dist: ## Make the source distribution.
2830
python -m build
2931
python -m twine check dist/*
3032

31-
kit_upload: ## Upload the built distributions to PyPI.
33+
pypi: ## Upload the built distributions to PyPI.
3234
python -m twine upload --verbose dist/*
3335

34-
test_upload: ## Upload the distrubutions to test PyPI.
35-
python -m twine upload --verbose --repository testpypi dist/*
36+
test_pypi: ## Upload the distributions to test PyPI.
37+
python -m twine upload --verbose --repository testpypi --password $$TWINE_TEST_PASSWORD dist/*
3638

3739
tag: ## Make a git tag with the version number.
38-
git tag -s -m "Version v$$(python setup.py --version)" v$$(python setup.py --version)
40+
git tag -s -m "Version v$$(python -c 'import django_coverage_plugin; print(django_coverage_plugin.__version__)')" v$$(python -c 'import django_coverage_plugin; print(django_coverage_plugin.__version__)')
3941
git push --all
4042

4143
ghrelease: ## Make a GitHub release for the latest version.

0 commit comments

Comments
 (0)