File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- .PHONY : help install-dependencies test lint coverage build build-test clean clean-pyc clean-tests clean-coverage clean-build
1+ .PHONY : help install-dependencies test lint coverage build build-test release clean clean-pyc clean-tests clean-coverage clean-build
22
33help :
44 @echo " "
88 @echo " coverage runs test coverage"
99 @echo " build builds python package (sdist)"
1010 @echo " build-test tests build for errors and uploads to test.pypi.org"
11+ @echo " release builds and uploads python package to pypi.org"
1112 @echo " "
1213 @echo " clean runs all cleaning functions"
1314 @echo " clean-pyc removes python file artifacts"
@@ -35,6 +36,9 @@ build-test:
3536 twine check dist/*
3637 twine upload --repository-url https://test.pypi.org/legacy/ dist/*
3738
39+ release : build
40+ twine upload dist/*
41+
3842clean : clean-pyc clean-tests clean-coverage clean-build
3943
4044clean-pyc :
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ echo lint runs linter
1111echo coverage runs test coverage
1212echo build builds python package (sdist)
1313echo build-test tests build for errors and uploads to test.pypi.org
14+ echo release builds and uploads python package to pypi.org
1415echo .
1516echo clean runs all cleaning functions
1617echo clean-pyc removes python file artifacts
@@ -47,6 +48,11 @@ twine check dist/*
4748twine upload --repository-url https://test.pypi.org/legacy/ dist/*
4849goto :eof
4950
51+ :release
52+ call :build
53+ twine upload dist/*
54+ goto :eof
55+
5056:clean
5157call :clean-pyc
5258call :clean-tests
You can’t perform that action at this time.
0 commit comments