File: pypi_upload.bat

package info (click to toggle)
python-friendly-styles 0.2%2Bgit20220822.ecae4d0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 412 kB
  • sloc: python: 311; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
echo off
:Ask
echo Did you update the version?(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 Ask

:yes
rd /S /Q dist
rd /S /Q build
rd /S /Q __pycache__
python setup.py sdist bdist_wheel
twine upload dist/*
:no