Skip to content

Commit c36dd5c

Browse files
committed
Update make.bat/Makefile
1 parent 5051e57 commit c36dd5c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
help:
44
@echo ""
@@ -8,6 +8,7 @@ help:
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+
3842
clean: clean-pyc clean-tests clean-coverage clean-build
3943

4044
clean-pyc:

make.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ echo lint runs linter
1111
echo coverage runs test coverage
1212
echo build builds python package (sdist)
1313
echo build-test tests build for errors and uploads to test.pypi.org
14+
echo release builds and uploads python package to pypi.org
1415
echo.
1516
echo clean runs all cleaning functions
1617
echo clean-pyc removes python file artifacts
@@ -47,6 +48,11 @@ twine check dist/*
4748
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
4849
goto:eof
4950

51+
:release
52+
call:build
53+
twine upload dist/*
54+
goto:eof
55+
5056
:clean
5157
call:clean-pyc
5258
call:clean-tests

0 commit comments

Comments
 (0)