aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add shibokenmodule dependency for all _pyi modulesŁukasz Patron2024-06-191-0/+4
| | | | | | | | | | | | | | When building on Fedora rawhide, we sometimes end up running generate_pyi.py script while shibokenmodule is still being built, resulting in the following error message: ImportError: (...)/Shiboken.cpython-313-x86_64-linux-gnu.so: file too short Pick-to: 6.7 Change-Id: I500679bf12e4ba5a820db6c7971f8cdb0012b965 Reviewed-by: Christian Tismer <[email protected]> Reviewed-by: Łukasz Patron <[email protected]>
* QtAsyncio: Clarify usage of singleShot w/o contextAdrian Herrmann2024-06-181-1/+4
| | | | | | | | | | | The singleShot overload that accepts a context argument was used inside the do() method of the QAsyncioExecutorWrapper class, but this usage was unnecessary and adds confusion. Task-number: PYSIDE-769 Change-Id: Idcdd99eda6ae3bfd11ec50b9a42ff15ade005cc9 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Christian Tismer <[email protected]>
* Qt Designer plugin: Remove Python version checkFriedemann Kleint2024-06-181-16/+22
| | | | | | | | | | Pre 3.8 is no longer supported. Move the code into a static helper for macOS only. This also fixes analyzer warnings about ignoring return codes. Pick-to: 6.7 Change-Id: Idd1a53729152f132958f94d288c13ac4399b6c78 Reviewed-by: Shyamnath Premnadh <[email protected]>
* libshiboken: Use enumeration instead of macros for type constantsFriedemann Kleint2024-06-181-20/+22
| | | | | | | | Fixes a static analysis warning about using macros and makes it consistent with the generated code. Change-Id: Ia5ea094e4e41a622d409f25c69492682d08f1c52 Reviewed-by: Christian Tismer <[email protected]>
* libshiboken: Fix some static analysis warningsFriedemann Kleint2024-06-1817-99/+88
| | | | | | | | | | | | - Initialize variables - Use auto * - Use range-based for - Move '#include "sbktypefactory.h"' from basewrapper.h to shiboken.h (for use by the generated code) - Fix some int types (Py_ssize_t/size_t) to avoid lossy conversions Change-Id: I7cc8b33850afcd07cc8f9a115e56a77cbacd58b0 Reviewed-by: Christian Tismer <[email protected]>
* Fix some documentation warnings and broken linksFriedemann Kleint2024-06-173-11/+12
| | | | | | Pick-to: 6.7 Change-Id: I5fbc1be390c7d24ef7f204721cd060e5d61c88e0 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* minimalsurfacegraph example: Add missing pyproject fileFriedemann Kleint2024-06-171-0/+3
| | | | | | Pick-to: 6.7 Change-Id: If870ad3e34721da6c7f3d618b1b36378ec4bc754 Reviewed-by: Adrian Herrmann <[email protected]>
* Nuitka Deployment Doc - remove non-relevant sectionShyamnath Premnadh2024-06-171-13/+0
| | | | | | | | | - Not relevant with the latest Nuitka version that we use with pyside6-deploy Pick-to: 6.7 6.5 6.2 Change-Id: Id3e9cc5bcad678cb00a1b6049c740c5e321fbdde Reviewed-by: Friedemann Kleint <[email protected]>
* Deployment Docs: Add instructions to generate a bug reportShyamnath Premnadh2024-06-172-2/+26
| | | | | | | | | | - Additionally, remove some comments from default.spec that are not relevant anymore. Pick-to: 6.7 Task-number: PYSIDE-1612 Change-Id: Iea2fed95507b6e649285e409cf8678287bf15a56 Reviewed-by: Friedemann Kleint <[email protected]>
* Desktop Deployment: Fix errorShyamnath Premnadh2024-06-171-7/+8
| | | | | | | | | | | | | | | In the scenario where 'pyside6-deploy --init' is used on the first run and for the consequent invocations, only running just 'pyside6-deploy' without any additional options, the deployment should have worked. This currently had a bug where it overrides the main Python entrypoint file with the default option of 'main.py'. This issue is caused due to the order of 'if' loop in the changed function. Pick-to: 6.7 Task-number: PYSIDE-1612 Change-Id: I605c4b9ff2035e85c0b5f73049a3ecc84d0fd80c Reviewed-by: Friedemann Kleint <[email protected]>
* Android Deployment: Enable pyside6-android-deploy in macOSShyamnath Premnadh2024-06-146-9/+17
| | | | | | | | | | - enable the tool for macOS - add dependency .xml to the Android wheels Pick-to: 6.7 Task-number: PYSIDE-2766 Change-Id: I77495466b8a9cc3565c640beac202d533ee1d2a6 Reviewed-by: Friedemann Kleint <[email protected]>
* Desktop deployment: fix --modeShyamnath Premnadh2024-06-131-1/+1
| | | | | | | | | | Amends 32e353e9d91f45c23dcb07b0798237c79795cf0a Pick-to: 6.7 Task-number: PYSIDE-1612 Task-number: PYSIDE-2622 Change-Id: If14d53e5547d2f91d6cdad6a3460a50b375cdd9f Reviewed-by: Friedemann Kleint <[email protected]>
* shiboken6: Fix an ASAN leak in traverseFunction()Friedemann Kleint2024-06-123-74/+69
| | | | | | | | | | Return a shared ptr to function from AbstractMetaBuilderPrivate::traverseFunction(), avoiding leaks when a function is not used. Pick-to: 6.7 Change-Id: I2fd215a25301fa6773f589bb3f085cf4c1febdd7 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Do the transition to Python 3.13, GIL-partChristian Tismer2024-06-124-19/+53
| | | | | | | | | | | | | * opcodes have changed numbers. That made "import *" etc. fail. * PUSH_NULL is sometimes inserted before a call. * enum_test needed an overhaul due to opcode changes. Python 3.13 works fine. Supporting --disable-gil is a different issue. Task-number: PYSIDE-2751 Change-Id: I37b447148787e2923a58c091a5c8ac808d579bc0 Reviewed-by: Friedemann Kleint <[email protected]>
* Desktop Deployment: Update Nuitka to 2.3.2Shyamnath Premnadh2024-06-113-3/+6
| | | | | | | | | | - Full support for Python 3.12 - Experiemental support for Python 3.13 Pick-to: 6.7 Task-number: PYSIDE-1612 Change-Id: Ib4699351ec4105de756b4ac16cd7b3a49054a614 Reviewed-by: Friedemann Kleint <[email protected]>
* Shiboken: Fix a potential refcounting bug in Lazy InitChristian Tismer2024-06-101-2/+3
| | | | | | | | | | | | Keeping a reference to the original import function is needed in case someone else modifies import, too. Thanks to Tony Roberts for this finding. Change-Id: I6c362698e86e57b1a27cdd9367a89705e944825f Fixes: PYSIDE-2780 Pick-to: 6.7 Reviewed-by: Friedemann Kleint <[email protected]>
* Desktop Deployment: Enable Nuitka --standalone modeShyamnath Premnadh2024-06-107-13/+78
| | | | | | | | | | | | | - enables the standalone mode of Nuitka for pyside6-deploy - the mode can be set either through the command line or the config file - adapt tests - update documentation Pick-to: 6.7 Fixes: PYSIDE-2622 Task-number: PYSIDE-1612 Change-Id: I5a10c857d3e79174d2643139eb2e4f7b5e10d955 Reviewed-by: Friedemann Kleint <[email protected]>
* Fix non-unity buildFriedemann Kleint2024-06-103-0/+3
| | | | | | | | | | | | Amends c7c7dc9ba6da83f26d2ecda33a9af58d3f8f5f20, 11afd18d34c17a345315d226b6124dc1fd31d12c and 28d04cae204881392ddc0826a570d05ba82c5ee0. Pick-to: 6.7 Task-number: PYSIDE-2404 Task-number: PYSIDE-2768 Change-Id: I7caed5c4bddfaa594dfb692d5e087e0c88208e3e Reviewed-by: Christian Tismer <[email protected]>
* Lazy Load: Fix smart pointers with converters to smart pointers to pointee baseFriedemann Kleint2024-06-073-21/+5
| | | | | | | | | | | | | Smart pointers for which additional conversions to smart pointers to base classes of the pointee were registered after the type creation caused a crash with the lazy loading since getConverter() returned 0. Move these functions into the wrapper source and register them from the type creation functions. Task-number: PYSIDE-2404 Change-Id: I5f151748018c9cd84487ca92dee9cf4a42f7e4a7 Reviewed-by: Christian Tismer <[email protected]>
* shiboken: Fix a warning crash that is present in Python 3.13Christian Tismer2024-06-071-0/+3
| | | | | | | | | | | | This problem is new shown in Python 3.13 although this was not correct before. We need to remove the error before issuing a warning. Task-number: PYSIDE-2751 Change-Id: Ie4572e043388ca3f87092ea886e935b583f871b4 Pick-to: 6.7 Reviewed-by: Friedemann Kleint <[email protected]>
* shiboken6: Refactor writing the init functions into the module sourceFriedemann Kleint2024-06-072-18/+25
| | | | | | | | Split writeInitFunc() into 2 functions for declaration/call. Task-number: PYSIDE-2404 Change-Id: I173782409dd8dae3ae8f9eea474198a8f600ce06 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Lazy Load: Disable lazy for PyPyFriedemann Kleint2024-06-071-2/+13
| | | | | | | | Pick-to: 6.7 Task-number: PYSIDE-535 Task-number: PYSIDE-2404 Change-Id: I6d05e73457de7d12213bf9b046359355fcb0a941 Reviewed-by: Christian Tismer <[email protected]>
* Lazy Load: Fix crash caused by global enumerations in samplebindingFriedemann Kleint2024-06-072-1/+2
| | | | | | | | | Ensure PyEnumModule is set. Pick-to: 6.7 Task-number: PYSIDE-2404 Change-Id: Ie7b127129eba583a02e3b2d33ae640cea84bfb59 Reviewed-by: Christian Tismer <[email protected]>
* shiboken6: Make it possible to create smart pointer names in the global ↵Friedemann Kleint2024-06-077-2/+48
| | | | | | | | | | | namespace Previously, named instances of smart pointers from the std namespace would always end up in namespace std, too. Make it possible to prefix the names by "::", indicating global namespace. Change-Id: I45d7d7defa156730ed80c4b21bcc3c515b5ece74 Reviewed-by: Shyamnath Premnadh <[email protected]>
* shiboken6: Do not write duplicated license commentFriedemann Kleint2024-06-071-3/+0
| | | | | | | | The license is already at the top of the header, no need to repeat it above the wrapper class declaration. Change-Id: I20fcfd57ca0afa635c2c4d4b6d37fd2e5caf4b85 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Disable Windows on Arm ci config for nowSimo Fält2024-06-061-0/+18
| | | | | Change-Id: Ic240149cd5edba8357222cfc0d9e911eeb50f304 Reviewed-by: Friedemann Kleint <[email protected]>
* Documentation: Move image resolving from QtXmlToSphinx to QtDocGeneratorFriedemann Kleint2024-06-069-37/+77
| | | | | | | | | | | | Move PySide6-related logic to the doc generator. Prepares for adapting to qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d. Task-number: QTBUG-119500 Task-number: PYSIDE-2620 Change-Id: I994bd3c159654e133d71ee7fac3725ffed47c52c Reviewed-by: Shyamnath Premnadh <[email protected]>
* Add changelog 6.7.2Friedemann Kleint2024-06-051-0/+50
| | | | | | Pick-to: 6.7 Change-Id: Ic3caa3c98248d45a91a188c1af0d9a0a07d402f9 Reviewed-by: Adrian Herrmann <[email protected]>
* Documentation generation: Sort classes with digits in the TOCFriedemann Kleint2024-06-051-2/+4
| | | | | | | | | | Manifests for classes like Q3DSurfaceWidget appearing in QtGraphsWidgets. Task-number: PYSIDE-2620 Pick-to: 6.7 Change-Id: I4c8bf6afb48a24a00ba3e8a5c5228a3d49302418 Reviewed-by: Adrian Herrmann <[email protected]>
* Examples: Update CMake instructionsFriedemann Kleint2024-06-043-17/+26
| | | | | | | | Remove -S and use -DCMAKE_C_COMPILER=cl.exe consistently. Pick-to: 6.7 Change-Id: I73a4e9aaf37bb082d8a4398113c8752caebf9358 Reviewed-by: Shyamnath Premnadh <[email protected]>
* pyi: Fix smart pointer signaturesFriedemann Kleint2024-06-045-22/+34
| | | | | | | | | | | | | | | | Use the smart pointer specialization name if one can be found. Move findSmartPointerInstantiation() from CppGenerator to ApiExtractorResult and add a CppGenerator::pythonSignature() wrapping around AbstractMetaType:::pythonSignature() (which does not know about instantiations). [ChangeLog][shiboken6] Signatures of smart pointer parameters have been fixed. Task-number: PYSIDE-2768 Pick-to: 6.7 Change-Id: I99c54067366dd98c2e23f94192ee220f05f14e23 Reviewed-by: Christian Tismer <[email protected]>
* shiboken6: Fix type names of smart pointers in namespaces in the cppApi arrayFriedemann Kleint2024-06-047-34/+14
| | | | | | | | | | | | | | | | | | | | | Set the correct parent entry on the smart pointer instantiation type entry. This allows for removing a special case in the source generator and namespaces will be correctly reflected. It is also the prerequisite for a follow-up change making it possible to use global namespaces for smart pointers in namespaces. Also remove the setting of the enclosing class and the associated flag InheritTemplateFlag::SetEnclosingClass from AbstractMetaBuilderPrivate::inheritTemplate(). Instead, always set the enclosing class in ApiExtractorPrivate::addInstantiatedSmartPointer() instead, depending on the type of the parent entry. Task-number: PYSIDE-2404 Task-number: PYSIDE-2768 Pick-to: 6.7 Change-Id: I921e255c2ceaeb9eaf84e5ac1c4953bcf7d09b57 Reviewed-by: Christian Tismer <[email protected]>
* Android Deployment: Build wheels with macOS hostShyamnath Premnadh2024-06-039-18/+79
| | | | | | | | | | | | - Additionally, also move setting Python_SOABI manually for Android to where FindPython CMake module is called. This also aids in naming the wheel correctly. Pick-to: 6.7 Task-number: PYSIDE-2766 Change-Id: I73c089d31e2ee629f3ed676965fca27d53882110 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Android: Download Android NDK and SDK from macOS hostShyamnath Premnadh2024-06-031-13/+54
| | | | | | | | | | | | | | | - For macOS, the Ndk is downloaded as .dmg image. This code downloads the .dmg image and mounts it to extract the NDK. - The SDK is downloaded as a .zip file. It is then extracted. - For the build-tools, version sometimes previously the latest version was downloaded which also included RC versions. The current code changes makes sure that RC versions are not downloaded. Pick-to: 6.7 Task-number: PYSIDE-2766 Change-Id: I1be39b1dff55bb1f2f4c3f4882908b429d37f4cd Reviewed-by: Adrian Herrmann <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix lazy loading of smart pointersFriedemann Kleint2024-06-032-2/+3
| | | | | | | | | | | | | The name of the specialized class is the main type name for them. Complements d62735b39214ed57e5f2b1c5f66a0e2263854b7b. Task-number: PYSIDE-2768 Task-number: PYSIDE-2404 Change-Id: I606af8580c61ee36f9e5238787dcbcafb8691758 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
* shiboken6: Add tests for a named smart pointer instanceFriedemann Kleint2024-06-032-1/+3
| | | | | | | | Task-number: PYSIDE-2404 Pick-to: 6.7 Change-Id: I547e564df85b61c7fad6c8c4e8f5604dc999f238 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
* shiboken6/compilersupport: Fix finding the clang include directory on ↵Friedemann Kleint2024-06-031-1/+10
| | | | | | | | | | | | manylinux_2_28_x86_64 llvm-config --libdir reports /usr/lib64 on manylinux_2_28_x86_64 whereas the includes are under /usr/lib/clang/../include. Fixes: PYSIDE-2769 Pick-to: 6.7 Change-Id: I217d6bf62bbd2e63258b91d64fb9c0fe5f1ff052 Reviewed-by: Shyamnath Premnadh <[email protected]>
* shiboken6/compilersupport: Use qCWarning() consistentlyFriedemann Kleint2024-06-031-8/+10
| | | | | | | Task-number: PYSIDE-2769 Pick-to: 6.7 Change-Id: I73fee8b893d8167ee3acd99ef39ae25f8d388de1 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Android Wheels: Use config.guess script to find host system nameShyamnath Premnadh2024-05-312-8/+22
| | | | | | | | | | | | | | | | - first of many patches to support macOS host for Qfp Android cross-compilation. - Use config.guess present in cpython repository to guess canonical name of the host system. This sets up build for hosts other than linux. - As a drive by, update the default api level to 26 to sync with Qt minimum version 6.7.0. Pick-to: 6.7 Task-number: PYSIDE-2766 Change-Id: Ifcf0921776e6a682d5724f439739ed098ccc6ef3 Reviewed-by: Adrian Herrmann <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Android Cross Compilation: Add INSTSONAMEShyamnath Premnadh2024-05-312-11/+5
| | | | | | | | | | | | | - Remove the use of patchelf to set the SONAME of the libpython shared library. This can be done during the build process of CPython for Android by setting the INSTSONAME variable in the Makefile. - In addition, remove the redundant parameters passed to make install. Pick-to: 6.7 Task-number: PYSIDE-1612 Change-Id: Ia18a1480a676abb89ed1afa3250f3745fffedbdd Reviewed-by: Friedemann Kleint <[email protected]>
* shiboken6: Add tests for std::shared_ptr<std::string>Friedemann Kleint2024-05-306-4/+36
| | | | | | | | | Exercise inner type names with namespaces. Pick-to: 6.7 Task-number: PYSIDE-2404 Change-Id: I9f0d4f165de6b09887922c251190e238ca9e4ca3 Reviewed-by: Adrian Herrmann <[email protected]>
* Lazy Init: Fix crash when setting an error messageFriedemann Kleint2024-05-301-2/+2
| | | | | | | | | Amends c828416efc0b88747cab85d941a149d91487466f. Task-number: PYSIDE-2404 Pick-to: 6.7 Change-Id: Iab9082751e40c16ccf6cd47bdefdde220febb301 Reviewed-by: Adrian Herrmann <[email protected]>
* QtAsyncio: Improve documentation (part 3)Adrian Herrmann2024-05-301-5/+14
| | | | | | | | | | Improve the inline documentation of QtAsyncio with more comprehensive comments. Pick-to: 6.7 Task-number: PYSIDE-769 Change-Id: Ia25bab88de3cb66178ced15fe3b2a4d35e9c09a0 Reviewed-by: Friedemann Kleint <[email protected]>
* libshiboken: Remove left-over declarations of lazy loading functionsFriedemann Kleint2024-05-291-12/+0
| | | | | | | Pick-to: 6.7 Task-number: PYSIDE-2404 Change-Id: I7e5838c6da45cf6ec24d3ef623ae6d34f04d9177 Reviewed-by: Adrian Herrmann <[email protected]>
* libshiboken: Fix warning about unused variable in release modeFriedemann Kleint2024-05-291-2/+1
| | | | | | | | Amends f34dcb84adf20e9f3428660636aa8d377d14fc3b. Pick-to: 6.7 Change-Id: I399ac7623b05e16d904199da621a969a20ccaf0a Reviewed-by: Adrian Herrmann <[email protected]>
* pyi: Fix checking errors on the property decoratorFriedemann Kleint2024-05-291-0/+1
| | | | | | | | | Add the __call__ operator. Fixes: PYSIDE-2767 Pick-to: 6.7 6.5 Change-Id: Ic73df2918fb8effaceeddbcb2c92f7ac7eb861c5 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Android Deployment: Use develop branch of p4aShyamnath Premnadh2024-05-281-0/+7
| | | | | | | | | | | | - Temporary requirement since my latest changes are not yet merged into the master branch of p4a. This will be remove once the changes are in the master branch of p4a. Pick-to: 6.7 Task-number: PYSIDE-1612 Change-Id: I0e992b053de727660f4090779ee395e7a85451e6 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
* Documentation: Update versions for Qt 6.8Friedemann Kleint2024-05-284-22/+34
| | | | | | Task-number: PYSIDE-2620 Change-Id: Iff5ac3c8281893adfa0ba3cbd64936fd7c4d6257 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Fix suppressed exceptions for 0-delay singleShotAdrian Herrmann2024-05-273-0/+40
| | | | | | | | | | | Fix an issue where exceptions were not shown when raised inside a slot called from a zero-delay singleshot timer, causing problems further down the line. Pick-to: 6.7 Fixes: PYSIDE-2745 Change-Id: Iab7696663e5dfa00d99d28ee21ac687fde4cf731 Reviewed-by: Friedemann Kleint <[email protected]>
* shiboken6: Disable Clang MSVC option for C++ 20Friedemann Kleint2024-05-275-8/+12
| | | | | Change-Id: If7dafe4e23727f822e26307bedbb46bfaf9c0655 Reviewed-by: Adrian Herrmann <[email protected]>