1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
echo off
:Ask
echo Did you update the version?(y/n)
set ANSWER=
set /P ANSWER=Type input: %=%
If /I "%ANSWER%"=="y" goto Ask2
If /I "%ANSWER%"=="n" goto no
echo Incorrect input & goto Ask
:Ask2
echo Did you run the unit tests?(y/n)
set ANSWER=
set /P ANSWER=Type input: %=%
If /I "%ANSWER%"=="y" goto yes
If /I "%ANSWER%"=="n" goto no
echo Incorrect input & goto Ask2
:yes
rd /S /Q dist
rd /S /Q build
rd /S /Q __pycache__
python setup.py sdist bdist_wheel
twine upload dist/*
:no
|