Skip to content

Commit b494c3d

Browse files
committed
2 parents cf7fe11 + 524a1de commit b494c3d

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

scripts/build_dist.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ call %~dp0utils GetScriptPath SCRIPTPATH
1010
call %FUNC% GetLibName LIBNAME
1111
cd %SCRIPTPATH%\..\
1212
if exist MANIFEST ( del /q MANIFEST )
13-
if exist build ( rmdir /s /q build )
14-
if exist dist ( rmdir /s /q dist )
1513
call %FUNC% SetPythonPath
1614
call %FUNC% UseWinPython
1715
python setup.py sdist bdist_wheel --universal
1816
python setup.py build sdist
1917
rmdir /s /q %LIBNAME%.egg-info
20-
call %FUNC% EndOfScript
18+
call %FUNC% EndOfScript

scripts/clean_up.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
REM ======================================================
3+
REM Clean up repository
4+
REM ======================================================
5+
REM Licensed under the terms of the MIT License
6+
REM Copyright (c) 2020 Pierre Raybaut
7+
REM (see PythonQwt LICENSE file for more details)
8+
REM ======================================================
9+
call %~dp0utils GetScriptPath SCRIPTPATH
10+
call %FUNC% GetLibName LIBNAME
11+
cd %SCRIPTPATH%\..\
12+
if exist MANIFEST ( del /q MANIFEST )
13+
if exist build ( rmdir /s /q build )
14+
if exist dist ( rmdir /s /q dist )
15+
del /s /q *.pyc
16+
FOR /d /r %%d IN ("__pycache__") DO @IF EXIST "%%d" rd /s /q "%%d"

scripts/run_test_venv.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REM Virtual environment test script
44
REM ======================================================
55
REM Licensed under the terms of the MIT License
66
REM Copyright (c) 2020 Pierre Raybaut
7-
REM (see LICENSE file for more details)
7+
REM (see PythonQwt LICENSE file for more details)
88
REM ======================================================
99
setlocal
1010
call %~dp0utils GetScriptPath SCRIPTPATH
@@ -22,11 +22,12 @@ exit /B %ERRORLEVEL%
2222
call %FUNC% GetLibName LIBNAME
2323
call %FUNC% ShowTitle "Testing in %~1-based Python virtual environment"
2424
set VENVPATH=%SCRIPTPATH%\..\build\testenv
25+
if exist %VENVPATH% ( rmdir /s /q %VENVPATH% )
2526
python -m venv %VENVPATH%
2627
call %VENVPATH%\Scripts\activate
2728
python -m pip install --upgrade pip
2829
pip install %~1
2930
for %%f IN ("%SCRIPTPATH%\..\dist\%LIBNAME%-*.whl") DO ( pip install %%f )
3031
call %VENVPATH%\Scripts\%LIBNAME%-tests-py3 --mode unattended
3132
call %VENVPATH%\Scripts\deactivate
32-
exit /B 0
33+
exit /B 0

0 commit comments

Comments
 (0)