Vendor discord.py (#2387)

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
Toby Harradine
2019-01-28 14:14:36 +11:00
committed by GitHub
parent 348277bcbd
commit 05bef917ae
62 changed files with 21516 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
@echo off
if "%1"=="" goto help
if [%1] == [] goto help
REM This allows us to expand variables at execution
setlocal ENABLEDELAYEDEXPANSION
@@ -21,6 +21,17 @@ exit /B %ERRORLEVEL%
black -l 99 -N --check !PYFILES!
exit /B %ERRORLEVEL%
:update_vendor
if [%REF%] == [] (
set REF2="rewrite"
) else (
set REF2=%REF%
)
pip install --upgrade --no-deps -t . https://github.com/Rapptz/discord.py/archive/!REF2!.tar.gz#egg=discord.py
del /S /Q "discord.py*.egg-info"
for /F %%i in ('dir /S /B discord.py*.egg-info') do rmdir /S /Q %%i
goto reformat
:help
echo Usage:
echo make ^<command^>
@@ -28,3 +39,5 @@ echo.
echo Commands:
echo reformat Reformat all .py files being tracked by git.
echo stylecheck Check which tracked .py files need reformatting.
echo update_vendor Update vendored discord.py library to %%REF%%, which defaults to
echo "rewrite"