1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
@echo off
setlocal
rem Change "do_the_upload=FALSE" to "do_the_upload=TRUE" to run the upload
rem AFTER... satisfying upload check list
set "do_the_upload=FALSE"
if "%do_the_upload%" == "TRUE" (
echo ...............................................................
echo doing the upload
echo ...............................................................
C:\Python310\Scripts\twine.exe upload --config-file "%HOMEPATh%\.pypirc" --skip-existing dist/*.*
echo ....................... DONE ..................................
) else (
echo ...................... CHECK LIST .............................
echo ...............................................................
echo Install from local source afer all changes made
echo pip install .
echo ...............................................................
echo RUN pytest
echo ...............................................................
echo Update HISTORY.rst README.rst AUTHORS.rst
echo ...............................................................
echo Make sure that sphinx HTML is built with _BUILD_SPHINX_HTML.BAT
echo ...............................................................
echo COMMIT all files in git
echo AND Tag IF a new version release
echo git tag -a v1.x.x -m "RocketCEA 1.x.x"
echo git push --follow-tags
echo ...............................................................
echo Make sure that "python -m build" has been executed
echo AND any "python -m build --wheel"
echo ...............................................................
echo Run "twine check" to see if long description will render correctly
echo twine check dist/* OR
echo twine check dist/*24.tar.gz (where: 24 is current version)
echo ...............................................................
echo THEN: set "do_the_upload=TRUE" to run the upload
echo AFTER UPLOAD: set "do_the_upload=FALSE"
echo ...............................................................
)
endlocal
rem use: twine check dist/* OR twine check dist/*24.tar.gz (where: 24 is current version)
|