Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-03 07:45:44 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-03 21:10:00 +0100
commita37a3703422cc79e8b9aaa80a653719aa8c1913c (patch)
tree8478c30e0349c00e1aa3e8212641d680deec6efd /testing
parent5d7daaafbb8943447be2e1abffca28f96ccc3895 (diff)
Raise Python version to 3.8
Fix some oversights of previous changes: - Bump limited API - Fix CMake files - Remove outdated version checks from Python code - Adapt some documentation Pick-to: 6.8 Task-number: PYSIDE-2943 Change-Id: Id8d9c4c6bb0629948de28beb3c4274991f84ff08 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'testing')
-rw-r--r--testing/wheel_tester.py39
1 files changed, 19 insertions, 20 deletions
diff --git a/testing/wheel_tester.py b/testing/wheel_tester.py
index ab2f14913..0f6fb04ff 100644
--- a/testing/wheel_tester.py
+++ b/testing/wheel_tester.py
@@ -350,26 +350,25 @@ def try_build_examples():
generate_build_cmake()
run_ninja()
- if sys.version_info[:2] >= (3, 7):
- log.info("Checking Python Interface Files in Python 3 with all features selected")
- with tempfile.TemporaryDirectory() as tmpdirname:
- src_path = Path(tmpdirname) / "pyi_test"
- pyi_script_dir = Path(setup_script_dir) / "sources" / "pyside6" / "PySide6" / "support"
- execute_script(
- pyi_script_dir / "generate_pyi.py",
- "all",
- "--outpath",
- src_path,
- "--feature",
- "snake_case",
- "true_property",
- )
- from PySide6 import __all__ as modules
-
- for modname in modules:
- # PYSIDE-1735: pyi files are no longer compatible with Python.
- # XXX Maybe add a test with Mypy here?
- pass # execute_script(src_path / f"{modname}.pyi")
+ log.info("Checking Python Interface Files in Python 3 with all features selected")
+ with tempfile.TemporaryDirectory() as tmpdirname:
+ src_path = Path(tmpdirname) / "pyi_test"
+ pyi_script_dir = Path(setup_script_dir) / "sources" / "pyside6" / "PySide6" / "support"
+ execute_script(
+ pyi_script_dir / "generate_pyi.py",
+ "all",
+ "--outpath",
+ src_path,
+ "--feature",
+ "snake_case",
+ "true_property",
+ )
+ from PySide6 import __all__ as modules
+
+ for modname in modules:
+ # PYSIDE-1735: pyi files are no longer compatible with Python.
+ # XXX Maybe add a test with Mypy here?
+ pass # execute_script(src_path / f"{modname}.pyi")
def run_wheel_tests(install_wheels, wheels_dir_name):