File tree 14 files changed +98
-85
lines changed
14 files changed +98
-85
lines changed Original file line number Diff line number Diff line change 6
6
- Added command-line options to the ` PythonQwt-tests-py3 ` script to run all the tests
7
7
simultenously in unattended mode (` --mode unattended ` ) or to update all the
8
8
screenshots (` --mode screenshots ` ).
9
+ - Added internal scripts for automated test in virtual environments with both PyQt5 and
10
+ PySide2.
9
11
10
12
### Version 0.8.1 ###
11
13
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
set UNATTENDED = 1
3
- call build_doc .bat
4
- call build_dist .bat
3
+ call %~dp0 build_doc .bat
4
+ call %~dp0 build_dist .bat
5
5
@ echo :
6
6
@ echo ==============================================================================
7
7
choice /t 5 /c yn /cs /d n /m " Do you want to upload packages to PyPI (y/n)?"
@@ -10,6 +10,7 @@ if errorlevel 1 goto :yes
10
10
:yes
11
11
@ echo ==============================================================================
12
12
@ echo :
13
+ cd %~dp0 ..
13
14
twine upload dist/*
14
15
GOTO :continue
15
16
:no
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ cd %~dp0 ..\
3
+ if exist MANIFEST ( del /q MANIFEST )
4
+ if exist build ( rmdir /s /q build )
5
+ if exist dist ( rmdir /s /q dist )
6
+ call %~dp0 func SetPythonPath
7
+ call %~dp0 func UseWinPython
8
+ python setup.py sdist bdist_wheel --universal
9
+ python setup.py build sdist
10
+ call %~dp0 func EndOfScript
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ call %~dp0 func SetPythonPath
3
+ call %~dp0 func UseWinPython
4
+ 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%
5
+ cd %~dp0 ..\
6
+ sphinx-build -b htmlhelp doc build\doc
7
+ hhc build\doc\PythonQwt.hhp
8
+ copy /y build\doc\PythonQwt.chm doc\_downloads
9
+ 7z a doc\_downloads\PythonQwt.chm.zip doc\_downloads\PythonQwt.chm
10
+ move /y doc\PythonQwt.chm .
11
+ sphinx-build -b html doc build\doc
12
+ call %~dp0 func EndOfScript
Original file line number Diff line number Diff line change
1
+ REM Utilities for deployment, test and build scripts
2
+ @ echo off
3
+ call :%*
4
+ goto Exit
5
+
6
+ :SetPythonPath
7
+ set PYTHONPATH = %~dp0 ..
8
+ goto :eof
9
+
10
+ :UseWinPython
11
+ if defined WINPYDIRBASE (
12
+ call %WINPYDIRBASE% \scripts\env.bat
13
+ call :ShowTitle " Using WinPython from %WINPYDIRBASE% "
14
+ )
15
+ goto :eof
16
+
17
+ :ShowTitle
18
+ @ echo :
19
+ @ echo ========= %~1 =========
20
+ @ echo :
21
+ goto :eof
22
+
23
+ :EndOfScript
24
+ @ echo :
25
+ @ echo **********************************************************************************
26
+ @ echo :
27
+ if not defined UNATTENDED (
28
+ @ echo End of script
29
+ pause
30
+ )
31
+ goto :eof
32
+
33
+ :Exit
34
+ exit /b
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ setlocal
3
+ call %~dp0 func SetPythonPath
4
+ call %~dp0 func UseWinPython
5
+ python -m qwt.tests.__init__
6
+ call %~dp0 func EndOfScript
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ setlocal
3
+ set UNATTENDED = 1
4
+ call %~dp0 build_dist
5
+ set PYTHONPATH =
6
+ call %~dp0 func UseWinPython
7
+ call :TestEnv PyQt5
8
+ call :TestEnv PySide2
9
+ set UNATTENDED =
10
+ call %~dp0 func EndOfScript
11
+ exit /B %ERRORLEVEL%
12
+
13
+ :TestEnv
14
+ call %~dp0 func ShowTitle " Testing in %~1 -based Python virtual environment"
15
+ set VENVPATH = cd %~dp0 ..\build\testenv
16
+ python -m venv %VENVPATH%
17
+ call %VENVPATH% \Scripts\activate
18
+ pip install %~1
19
+ for %%f IN (" %~dp0 ..\dist\PythonQwt-*.whl" ) DO ( pip install %%f )
20
+ call %VENVPATH% \Scripts\PythonQwt-tests-py3 --mode unattended
21
+ call %VENVPATH% \Scripts\deactivate
22
+ exit /B 0
Original file line number Diff line number Diff line change 1
1
@ echo off
2
-
3
2
setlocal
4
- set PYTHONPATH = %cd%
3
+ call %~dp0 func SetPythonPath
4
+ cd %~dp0 ..\
5
5
6
6
if not defined WINPYDIRBASE ( goto :no )
7
-
8
7
choice /t 5 /c yn /cs /d n /m " Do you want to run tests only from %WINPYDIRBASE% (y/n)?"
9
8
if errorlevel 2 goto :no
10
-
11
9
:yes
12
10
call %WINPYDIRBASE% \scripts\env.bat
13
11
python qwt/tests/__init__.py --mode unattended
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ setlocal
3
+ call %~dp0 func SetPythonPath
4
+ call %~dp0 func UseWinPython
5
+ cd %~dp0 ..\
6
+ python qwt/tests/__init__.py --mode screenshots
7
+ call %~dp0 func EndOfScript
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments