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 3
3
4
4
# Makefile for django_coverage_plugin
5
5
6
+ .PHONY : help test clean sterile dist pypi test_pypi tag ghrelease
7
+
6
8
help : # # Show this help.
7
9
@echo " Available targets:"
8
10
@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.
24
26
sterile : clean # # Remove all non-controlled content, even if expensive.
25
27
-rm -rf .tox*
26
28
27
- kit : # # Make the source distribution.
29
+ dist : # # Make the source distribution.
28
30
python -m build
29
31
python -m twine check dist/*
30
32
31
- kit_upload : # # Upload the built distributions to PyPI.
33
+ pypi : # # Upload the built distributions to PyPI.
32
34
python -m twine upload --verbose dist/*
33
35
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/*
36
38
37
39
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__ ) ' )
39
41
git push --all
40
42
41
43
ghrelease : # # Make a GitHub release for the latest version.
You can’t perform that action at this time.
0 commit comments