File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 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
33help :
44 @echo " "
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:
3031build : 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+
3338clean : clean-pyc clean-tests clean-coverage clean-build
3439
3540clean-pyc :
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ echo test runs tests
1010echo lint runs linter
1111echo coverage runs test coverage
1212echo build builds python package (sdist)
13+ echo build-test tests build for errors and uploads to test.pypi.org
1314echo .
1415echo clean runs all cleaning functions
1516echo clean-pyc removes python file artifacts
@@ -41,6 +42,11 @@ call:clean-build
4142python setup.py sdist bdist_wheel
4243goto :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
4551call :clean-pyc
4652call :clean-tests
You can’t perform that action at this time.
0 commit comments