File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 33
44# Makefile for django_coverage_plugin
55
6+ .PHONY : help test clean sterile dist pypi test_pypi tag ghrelease
7+
68help : # # 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.
2426sterile : 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
3739tag : # # 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
4143ghrelease : # # Make a GitHub release for the latest version.
You can’t perform that action at this time.
0 commit comments