-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4792b8
commit adbad47
Showing
15 changed files
with
534 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "gettext - Scan", | ||
"type": "shell", | ||
"command": "cmd", | ||
"args": [ | ||
"/c", | ||
"gettext.bat", | ||
"rescan", | ||
], | ||
"options": { | ||
"cwd": "scripts", | ||
"env": { | ||
"UNATTENDED": "1", | ||
"PYTHONUTF8": "1", | ||
"PYTHON": "${env:PPSTACK_PYTHONEXE}", | ||
} | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
} | ||
}, | ||
{ | ||
"label": "gettext - Compile", | ||
"type": "shell", | ||
"command": "cmd", | ||
"args": [ | ||
"/c", | ||
"gettext.bat", | ||
"compile", | ||
], | ||
"options": { | ||
"cwd": "scripts", | ||
"env": { | ||
"UNATTENDED": "1", | ||
"PYTHON": "${env:PPSTACK_PYTHONEXE}", | ||
} | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
} | ||
}, | ||
{ | ||
"label": "Run Pylint", | ||
"type": "shell", | ||
"command": "cmd", | ||
"args": [ | ||
"/c", | ||
"run_pylint.bat", | ||
// "--disable=R0801,C0103,C0114,C0115,C0116,W0612,W0613", | ||
"--disable=fixme,C,R,W", | ||
], | ||
"options": { | ||
"cwd": "scripts", | ||
"env": { | ||
"UNATTENDED": "1", | ||
"PYTHON": "${env:PPSTACK_PYTHONEXE}", | ||
} | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "dedicated", | ||
"showReuseMessage": true, | ||
"clear": true | ||
} | ||
}, | ||
{ | ||
"label": "Clean Up", | ||
"type": "shell", | ||
"command": "cmd", | ||
"args": [ | ||
"/c", | ||
"clean_up.bat" | ||
], | ||
"options": { | ||
"cwd": "scripts", | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
} | ||
}, | ||
{ | ||
"label": "Build documentation", | ||
"type": "shell", | ||
"command": "cmd", | ||
"options": { | ||
"cwd": "scripts", | ||
"env": { | ||
"PYTHON": "${env:PPSTACK_PYTHONEXE}", | ||
"UNATTENDED": "1", | ||
} | ||
}, | ||
"args": [ | ||
"/c", | ||
"build_doc.bat" | ||
], | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": true | ||
} | ||
}, | ||
{ | ||
"label": "Build all wheels", | ||
"type": "shell", | ||
"command": "cmd", | ||
"options": { | ||
"cwd": "scripts", | ||
"env": { | ||
"PYTHON": "${env:PPSTACK_PYTHONEXE}", | ||
"UNATTENDED": "1", | ||
} | ||
}, | ||
"args": [ | ||
"/c", | ||
"build_wheels.bat" | ||
], | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": true | ||
}, | ||
"dependsOrder": "sequence", | ||
"dependsOn": [ | ||
"Clean Up", | ||
] | ||
} | ||
] | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,18 @@ | ||
@echo off | ||
REM This script was copied from PythonQwt project | ||
REM ====================================================== | ||
REM Package build script | ||
REM ====================================================== | ||
REM Licensed under the terms of the MIT License | ||
REM Copyright (c) 2020 Pierre Raybaut | ||
REM (see PythonQwt LICENSE file for more details) | ||
REM ====================================================== | ||
call %~dp0utils GetScriptPath SCRIPTPATH | ||
call %FUNC% GetLibName LIBNAME | ||
call %FUNC% GetModName MODNAME | ||
call %FUNC% SetPythonPath | ||
call %FUNC% UsePython | ||
if exist MANIFEST ( del /q MANIFEST ) | ||
%PYTHON% -m build | ||
rmdir /s /q %LIBNAME%.egg-info | ||
call %FUNC% 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,20 @@ | ||
@echo off | ||
REM This script was copied from PythonQwt project | ||
REM ====================================================== | ||
REM Documentation build script | ||
REM ====================================================== | ||
REM Licensed under the terms of the MIT License | ||
REM Copyright (c) 2020 Pierre Raybaut | ||
REM (see PythonQwt LICENSE file for more details) | ||
REM ====================================================== | ||
setlocal | ||
call %~dp0utils GetScriptPath SCRIPTPATH | ||
call %FUNC% GetLibName LIBNAME | ||
call %FUNC% GetModName MODNAME | ||
call %FUNC% SetPythonPath | ||
call %FUNC% UsePython | ||
cd %SCRIPTPATH%\.. | ||
%PYTHON% doc\update_requirements.py | ||
sphinx-build -b html doc build\doc | ||
start build\doc\index.html | ||
call %FUNC% 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,36 @@ | ||
@echo off | ||
REM This script was copied from PythonQwt project | ||
REM ====================================================== | ||
REM Package build script | ||
REM ====================================================== | ||
REM Licensed under the terms of the MIT License | ||
REM Copyright (c) 2020 Pierre Raybaut | ||
REM (see PythonQwt LICENSE file for more details) | ||
REM ====================================================== | ||
setlocal enabledelayedexpansion | ||
call %~dp0utils GetScriptPath SCRIPTPATH | ||
call %FUNC% GetModName MODNAME | ||
call %FUNC% SetPythonPath | ||
|
||
if exist MANIFEST ( del /q MANIFEST ) | ||
:: Iterate over all directories in the grandparent directory | ||
:: (WinPython base directories) | ||
call %FUNC% GetPythonExeGrandParentDir DIR0 | ||
for /D %%d in ("%DIR0%*") do ( | ||
:: Get the directory name without the path | ||
for %%n in (%%d) do set "DIRNAME=%%~nxn" | ||
|
||
:: Check if the directory ends with "-PyQt6" or "-PySide6" | ||
if not "!DIRNAME:~-6!"=="-PyQt6" ( | ||
if not "!DIRNAME:~-8!"=="-PySide6" ( | ||
set WINPYDIRBASE=%%d | ||
call !WINPYDIRBASE!\scripts\env.bat | ||
echo ****************************************************************************** | ||
echo Building %MODNAME% from "%%d" | ||
echo ****************************************************************************** | ||
python setup.py build_ext --inplace | ||
echo ---- | ||
) | ||
) | ||
) | ||
call %FUNC% EndOfScript |
Oops, something went wrong.