File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ call %~dp0utils GetScriptPath SCRIPTPATH
1010call %FUNC% GetLibName LIBNAME
1111cd %SCRIPTPATH% \..\
1212if exist MANIFEST ( del /q MANIFEST )
13- if exist build ( rmdir /s /q build )
14- if exist dist ( rmdir /s /q dist )
1513call %FUNC% SetPythonPath
1614call %FUNC% UseWinPython
1715python setup.py sdist bdist_wheel --universal
1816python setup.py build sdist
1917rmdir /s /q %LIBNAME% .egg-info
20- call %FUNC% EndOfScript
18+ call %FUNC% EndOfScript
Original file line number Diff line number Diff line change 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 %~dp0 utils 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 "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ REM Virtual environment test script
44REM ======================================================
55REM Licensed under the terms of the MIT License
66REM Copyright (c) 2020 Pierre Raybaut
7- REM (see LICENSE file for more details)
7+ REM (see PythonQwt LICENSE file for more details)
88REM ======================================================
99setlocal
1010call %~dp0 utils GetScriptPath SCRIPTPATH
@@ -22,11 +22,12 @@ exit /B %ERRORLEVEL%
2222call %FUNC% GetLibName LIBNAME
2323call %FUNC% ShowTitle " Testing in %~1 -based Python virtual environment"
2424set VENVPATH = %SCRIPTPATH% \..\build\testenv
25+ if exist %VENVPATH% ( rmdir /s /q %VENVPATH% )
2526python -m venv %VENVPATH%
2627call %VENVPATH% \Scripts\activate
2728python -m pip install --upgrade pip
2829pip install %~1
2930for %%f IN (" %SCRIPTPATH% \..\dist\%LIBNAME% -*.whl" ) DO ( pip install %%f )
3031call %VENVPATH% \Scripts\%LIBNAME% -tests-py3 --mode unattended
3132call %VENVPATH% \Scripts\deactivate
32- exit /B 0
33+ exit /B 0
You can’t perform that action at this time.
0 commit comments