diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-03-03 13:48:48 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-03-06 15:02:31 +0100 |
commit | dda759c3e955b38a05749d506c2fc52f81324f0c (patch) | |
tree | b398f17fe264c619798c1228c37951b3b1e2d10a /scripts | |
parent | c461af77190e5d10e74c3da24659cbe711603740 (diff) | |
download | qtqa-dda759c3e955b38a05749d506c2fc52f81324f0c.tar.gz |
testwheel.py: Add an option for the examples directory
Needs to be specified when examples are removed from the wheels.
Pick-to: master
Task-number: PYSIDE-2247
Change-Id: Iabff560fcd2381aca1dfbb64895e8366ffdedf9d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/packagetesting/testwheel.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/packagetesting/testwheel.py b/scripts/packagetesting/testwheel.py index d7f225a..9aad708 100644 --- a/scripts/packagetesting/testwheel.py +++ b/scripts/packagetesting/testwheel.py @@ -269,9 +269,12 @@ if __name__ == "__main__": formatter_class=RawTextHelpFormatter) parser.add_argument('--no-pyinstaller', '-p', action='store_true', help='Skip pyinstaller test') + parser.add_argument("--examples", "-e", action="store", + help="Examples directory") options = parser.parse_args() do_pyinst = not options.no_pyinstaller + root_ex = Path(options.examples) if options.examples else None VERSION = get_pyside_version_from_import() if do_pyinst and sys.version_info[0] < 3: # Note: PyInstaller no longer supports Python 2 @@ -287,7 +290,8 @@ if __name__ == "__main__": else: root = p / 'PySide2' path_version = 2 - root_ex = root / 'examples' + if not root_ex: + root_ex = root / 'examples' break if VERSION[0] == 0: VERSION[0] == path_version |