Debian Codegraph @

pypi_upload.bat

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