-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added internal scripts for automated test in virtual environments wit…
…h both PyQt5 and PySide2
- Loading branch information
1 parent
7e7eb0e
commit 534024e
Showing
14 changed files
with
98 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
cd %~dp0..\ | ||
if exist MANIFEST ( del /q MANIFEST ) | ||
if exist build ( rmdir /s /q build ) | ||
if exist dist ( rmdir /s /q dist ) | ||
call %~dp0func SetPythonPath | ||
call %~dp0func UseWinPython | ||
python setup.py sdist bdist_wheel --universal | ||
python setup.py build sdist | ||
call %~dp0func EndOfScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo off | ||
call %~dp0func SetPythonPath | ||
call %~dp0func UseWinPython | ||
set PATH=C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip;C:\Program Files\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;%PATH% | ||
cd %~dp0..\ | ||
sphinx-build -b htmlhelp doc build\doc | ||
hhc build\doc\PythonQwt.hhp | ||
copy /y build\doc\PythonQwt.chm doc\_downloads | ||
7z a doc\_downloads\PythonQwt.chm.zip doc\_downloads\PythonQwt.chm | ||
move /y doc\PythonQwt.chm . | ||
sphinx-build -b html doc build\doc | ||
call %~dp0func EndOfScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
REM Utilities for deployment, test and build scripts | ||
@echo off | ||
call:%* | ||
goto Exit | ||
|
||
:SetPythonPath | ||
set PYTHONPATH=%~dp0.. | ||
goto:eof | ||
|
||
:UseWinPython | ||
if defined WINPYDIRBASE ( | ||
call %WINPYDIRBASE%\scripts\env.bat | ||
call :ShowTitle "Using WinPython from %WINPYDIRBASE%" | ||
) | ||
goto:eof | ||
|
||
:ShowTitle | ||
@echo: | ||
@echo ========= %~1 ========= | ||
@echo: | ||
goto:eof | ||
|
||
:EndOfScript | ||
@echo: | ||
@echo ********************************************************************************** | ||
@echo: | ||
if not defined UNATTENDED ( | ||
@echo End of script | ||
pause | ||
) | ||
goto:eof | ||
|
||
:Exit | ||
exit /b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
setlocal | ||
call %~dp0func SetPythonPath | ||
call %~dp0func UseWinPython | ||
python -m qwt.tests.__init__ | ||
call %~dp0func EndOfScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
setlocal | ||
set UNATTENDED=1 | ||
call %~dp0build_dist | ||
set PYTHONPATH= | ||
call %~dp0func UseWinPython | ||
call :TestEnv PyQt5 | ||
call :TestEnv PySide2 | ||
set UNATTENDED= | ||
call %~dp0func EndOfScript | ||
exit /B %ERRORLEVEL% | ||
|
||
:TestEnv | ||
call %~dp0func ShowTitle "Testing in %~1-based Python virtual environment" | ||
set VENVPATH=cd %~dp0..\build\testenv | ||
python -m venv %VENVPATH% | ||
call %VENVPATH%\Scripts\activate | ||
pip install %~1 | ||
for %%f IN ("%~dp0..\dist\PythonQwt-*.whl") DO ( pip install %%f ) | ||
call %VENVPATH%\Scripts\PythonQwt-tests-py3 --mode unattended | ||
call %VENVPATH%\Scripts\deactivate | ||
exit /B 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
setlocal | ||
call %~dp0func SetPythonPath | ||
call %~dp0func UseWinPython | ||
cd %~dp0..\ | ||
python qwt/tests/__init__.py --mode screenshots | ||
call %~dp0func EndOfScript |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.