Skip to content

Commit 5051e57

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

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help install-dependencies test lint coverage build clean clean-pyc clean-tests clean-coverage clean-build
1+
.PHONY: help install-dependencies test lint coverage build build-test clean clean-pyc clean-tests clean-coverage clean-build
22

33
help:
44
@echo ""
@@ -7,6 +7,7 @@ help:
77
@echo "lint runs linter"
88
@echo "coverage runs test coverage"
99
@echo "build builds python package (sdist)"
10+
@echo "build-test tests build for errors and uploads to test.pypi.org"
1011
@echo ""
1112
@echo "clean runs all cleaning functions"
1213
@echo "clean-pyc removes python file artifacts"
@@ -30,6 +31,10 @@ coverage:
3031
build: clean-pyc clean-build
3132
python setup.py sdist bdist_wheel
3233

34+
build-test:
35+
twine check dist/*
36+
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
37+
3338
clean: clean-pyc clean-tests clean-coverage clean-build
3439

3540
clean-pyc:

make.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ echo test runs tests
1010
echo lint runs linter
1111
echo coverage runs test coverage
1212
echo build builds python package (sdist)
13+
echo build-test tests build for errors and uploads to test.pypi.org
1314
echo.
1415
echo clean runs all cleaning functions
1516
echo clean-pyc removes python file artifacts
@@ -41,6 +42,11 @@ call:clean-build
4142
python setup.py sdist bdist_wheel
4243
goto:eof
4344

45+
:build-test
46+
twine check dist/*
47+
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
48+
goto:eof
49+
4450
:clean
4551
call:clean-pyc
4652
call:clean-tests

0 commit comments

Comments
 (0)