pyside2.git
10 months agoMerge version 5.15.16-1+rpi1 and 5.15.16-3.1 to produce 5.15.16-3.1+rpi1 trixie-staging archive/raspbian/5.15.16-3.1+rpi1 raspbian/5.15.16-3.1+rpi1
Raspbian automatic forward porter [Sat, 8 Feb 2025 00:05:15 +0000 (00:05 +0000)]
Merge version 5.15.16-1+rpi1 and 5.15.16-3.1 to produce 5.15.16-3.1+rpi1

10 months agoMerge pyside2 (5.15.16-3.1) import into refs/heads/workingbranch
Graham Inggs [Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)]
Merge pyside2 (5.15.16-3.1) import into refs/heads/workingbranch

10 months agoUse public version of PyLong_AsInt for Python >= 3.13
Dmitry Shachnev [Sat, 4 Jan 2025 18:20:12 +0000 (21:20 +0300)]
Use public version of PyLong_AsInt for Python >= 3.13

Forwarded: no

Gbp-Pq: Name Use-public-version-of-PyLong_AsInt-for-Python-3.13.patch

10 months agoFix condition to allow 3.13 for wheel creation
Cristián Maureira-Fredes [Thu, 19 Sep 2024 07:25:05 +0000 (09:25 +0200)]
Fix condition to allow 3.13 for wheel creation

Task-number: PYSIDE-2751
Pick-to: 6.8
Change-Id: Iaf6e914bf798371faf5066f4a2d70fe3e2c124e5
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit a86135803fe51e5702444f8b7dcb2a4dccd3a209)

Gbp-Pq: Name Fix-condition-to-allow-3.13-for-wheel-creation.patch

10 months agoDo the transition to Python 3.13
Christian Tismer [Fri, 7 Jun 2024 12:57:14 +0000 (14:57 +0200)]
Do the transition to Python 3.13

Task-number: PYSIDE-2751
Change-Id: I37b447148787e2923a58c091a5c8ac808d579bc0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit ad18260e583a30505e42b04fd242c52ff36f735c)

Gbp-Pq: Name Do-the-transition-to-Python-3.13.patch

10 months agoshiboken2/clang: Write scope resolution for all parameters of native wrappers
Friedemann Kleint [Thu, 27 Apr 2023 10:18:39 +0000 (12:18 +0200)]
shiboken2/clang: Write scope resolution for all parameters of native wrappers

Make sure types are correct for cases like:

- QtDBusHelper::QDBusReply::QDBusReply(::QDBusReply<void>)
- Qt3DInput*Event constructors taking the equivalent QtGui classes
  (Qt3DInput::QMouseEvent(::QMouseEvent *);

[ChangeLog][shiboken6] Support for parameters/function return
types with scope resolution has been improved.

Fixes: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Id29758fceb88188f4cd834fbd5a7cc0ab511fb1a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit dd863857436bbeeba4c0a1077f5ad16653296277)

Gbp-Pq: Name shiboken2-clang-Write-scope-resolution-for-all-parameters.patch

10 months agoshiboken2/clang: Suppress class scope look up for parameters with scope resolution
Friedemann Kleint [Thu, 27 Apr 2023 11:00:37 +0000 (13:00 +0200)]
shiboken2/clang: Suppress class scope look up for parameters with scope resolution

Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
Gbp-Pq: Name shiboken2-clang-Suppress-class-scope-look-up-for-paramete.patch

10 months agoshiboken2/clang: Record scope resolution of arguments/function return
Friedemann Kleint [Thu, 27 Apr 2023 10:44:10 +0000 (12:44 +0200)]
shiboken2/clang: Record scope resolution of arguments/function return

Add a flag indicating whether a type was specified with a leading "::"
(scope resolution). Such parameters previously caused the function to
rejected due to the "::TypeName" not being found. The type resolution
added for clang 16 strips these qualifiers though, so, the information
needs to be stored.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 075d8ad4660f05e6d2583ff1c05e9987ad624bfe)

Gbp-Pq: Name shiboken2-clang-Record-scope-resolution-of-arguments-func.patch

10 months agoshiboken2/clang: Fix build with clang 16
Friedemann Kleint [Tue, 25 Apr 2023 12:01:45 +0000 (14:01 +0200)]
shiboken2/clang: Fix build with clang 16

clang 16 returns more elaborated types instead of fully qualified type
names. Qualify elaborated types when retrieving the type name.

[ChangeLog][shiboken6] Support for libclang version 16 has been added.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Ibd428280180967f11d82a72159e744c016afc927
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 44ef1859214c66861a251d4a0faf5c38dc050850)

Gbp-Pq: Name shiboken2-clang-Fix-build-with-clang-16.patch

10 months agoshiboken2/clang: Remove typedef expansion
Friedemann Kleint [Thu, 20 Apr 2023 09:16:15 +0000 (11:16 +0200)]
shiboken2/clang: Remove typedef expansion

The functionality will be re-added by a subsequent change
expanding elaborated types.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I3245c6dccba7de0ed1ce0e7820e1edb4567ca3c2
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 24742dca014109bd3c2a9775fc15ca306ab22c9c)

Gbp-Pq: Name shiboken2-clang-Remove-typedef-expansion.patch

10 months agoshiboken2/clang: Fix and simplify resolveType() helper
Friedemann Kleint [Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)]
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch

10 months agoshiboken2/clang: Fix clashes between type name and enumeration values
Friedemann Kleint [Tue, 25 Apr 2023 13:30:30 +0000 (15:30 +0200)]
shiboken2/clang: Fix clashes between type name and enumeration values

Remove all constant and enum value type entries found in the type lookup
unless it is looking for template arguments; where it may be a
non-type template argument.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: If0609ce0d0223f551ed6dee1d1e0ea3ef49d6917
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit e22f717153a5e9855531f45c0bf82ff2461a3f7e)

Gbp-Pq: Name shiboken2-clang-Fix-clashes-between-type-name-and-enumera.patch

10 months agoDo not change RPATH
Dmitry Shachnev [Thu, 25 Jan 2024 11:21:09 +0000 (14:21 +0300)]
Do not change RPATH

Forwarded: not-needed

Gbp-Pq: Name Do-not-change-RPATH.patch

10 months agoStop using imp module
Friedemann Kleint [Thu, 3 Sep 2020 09:14:55 +0000 (11:14 +0200)]
Stop using imp module

Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.

Gbp-Pq: Name Stop-using-imp-module.patch

10 months agoFinal details to enable 3.12 wheel compatibility
Cristián Maureira-Fredes [Tue, 10 Oct 2023 13:52:09 +0000 (15:52 +0200)]
Final details to enable 3.12 wheel compatibility

Change-Id: I0252c4e73e8c214ef8aa418ddf88bc452c0fdf53
Pick-to: 6.6
Task-number: PYSIDE-2230
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 6c7bb7b6e1008909e49bc04d2a48024309a784cc)

Gbp-Pq: Name Final-details-to-enable-3.12-wheel-compatibility.patch

10 months agoSupport running PySide on Python 3.12
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Support running PySide on Python 3.12

Builtin types no longer have tp_dict set. We need to
use PyType_GetDict, instead. This works without Limited API
at the moment.

With some great cheating, this works with Limited API, too.
We emulate PyType_GetDict by tp_dict if that is not 0.
Otherwise we create an empty dict.

Some small changes to Exception handling and longer
warm-up in leaking tests were found, too.

Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2230
Change-Id: I8a56de6208ec00979255b39b5784dfc9b4b92def
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 441ffbd4fc622e67acd81e9c1c6d3a0b0fbcacf0)

Gbp-Pq: Name Support-running-PySide-on-Python-3.12.patch

10 months agoPython 3.12: Fix the structure of class property
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Python 3.12: Fix the structure of class property

There is a PySide bug in Python 3.10 already: The structure for
classproperty derives from the property structure. This was extended
in Python 3.10, already, but the type generation check was made more
exhaustive in Python 3.12 and recognized that.

This change is only for making the compiler/C API happy.
In order to use the extension field, it is necessary to do a runtime
check because of the Limited API.

Task-number: PYSIDE-2230
Change-Id: I88dcaa11589ff41852f08fa2defa5200a0dd4eb6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit edfd9a5ad174a48f8d7da511dc6a1c69e931a418)

Gbp-Pq: Name Python-3.12-Fix-the-structure-of-class-property.patch

10 months agoPyEnum: make forgiving duplicates work with Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
PyEnum: make forgiving duplicates work with Python 3.11

There was a silent change in PyEnums that turns Enum attributes
into properties. This does not harm the Python interface but
needed some change in the duplication emulation.

Furthermore, new internal enums are created with an underscore name.

The meta class was changed from EnumMeta to EnumType.

[ChangeLog][shiboken6] The new Python Enums are now compatible with Python 3.11

Change-Id: I3b1ab63dc5eed15a75ebd0f42dddf4001f640c00
Pick-to: 6.3
Task-number: PYSIDE-1735
Fixes: PYSIDE-1960
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit da2cf031521815a9559ca784beadb70c7a2852d9)

Gbp-Pq: Name PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch

10 months agoShiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
Shiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11

b7df2f1c0 "Fix signal initializer.", 18. May 2010 at 00:55

There was a `PySequence_Check` in the evaluation of some signature
function parameter processing, which should have been `PyTuple_Check`.

Since the new PyEnums are also sequences, the new optimization in
Python 3.11 changed the parameter handling in a correct way and
replaced the argument tuple by a direct single argument of an enum
type. And that is also a sequence ...

There are probably still dormant issues like this in the codebase
which gives reason to submit a task that checks all Python interface
functions for correctness.

Change-Id: I45996a0458c3e60795d2eb802eb98f7dd3678d92
Pick-to: 6.3
Task-number: PYSIDE-1735
Task-number: PYSIDE-1987
Fixes: PYSIDE-1988
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 2720e01f21f3771cb755ef183b8160f691bdb575)

Gbp-Pq: Name Shiboken-Fix-the-oldest-shiboken-bug-ever.patch

10 months agoFind the build directory matching the current interpreter
Dmitry Shachnev [Sun, 14 Nov 2021 18:08:50 +0000 (21:08 +0300)]
Find the build directory matching the current interpreter

This is needed to allow us to run tests with all supported Python versions.
Without this patch, the latest build directory will be always picked, no
matter what the current interpreter is.

Gbp-Pq: Name test-with-current-interpreter.patch

10 months agoBlacklist failing tests
Sophie Brun [Fri, 22 Nov 2019 12:24:54 +0000 (13:24 +0100)]
Blacklist failing tests

Forwarded:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1146?filter=allopenissues

Gbp-Pq: Name blacklist-failing-tests.patch

10 months agoFix spelling errors
Sophie Brun [Tue, 5 Nov 2019 09:39:14 +0000 (10:39 +0100)]
Fix spelling errors

Last-Update: 2018-07-12

Gbp-Pq: Name fix-spelling-errors.patch

10 months agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)]
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls

Last-Updated: 2020-12-20

Gbp-Pq: Name update-sip-import.patch

10 months agopyside2 (5.15.16-3.1) unstable; urgency=medium
Graham Inggs [Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)]
pyside2 (5.15.16-3.1) unstable; urgency=medium

  * Non-maintainer upload
  * Also make the tests non-fatal on ppc64el, in order to
    unblock python3.13-default transition, see #1092890

[dgit import unpatched pyside2 5.15.16-3.1]

10 months agoImport pyside2_5.15.16-3.1.debian.tar.xz
Graham Inggs [Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)]
Import pyside2_5.15.16-3.1.debian.tar.xz

[dgit import tarball pyside2 5.15.16-3.1 pyside2_5.15.16-3.1.debian.tar.xz]

12 months agoMerge version 5.15.14-1+rpi1 and 5.15.16-1 to produce 5.15.16-1+rpi1 archive/raspbian/5.15.16-1+rpi1 raspbian/5.15.16-1+rpi1
Raspbian automatic forward porter [Tue, 10 Dec 2024 23:58:57 +0000 (23:58 +0000)]
Merge version 5.15.14-1+rpi1 and 5.15.16-1 to produce 5.15.16-1+rpi1

13 months agoMerge pyside2 (5.15.16-1) import into refs/heads/workingbranch
Dmitry Shachnev [Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)]
Merge pyside2 (5.15.16-1) import into refs/heads/workingbranch

13 months agoImport pyside2_5.15.16.orig.tar.xz
Dmitry Shachnev [Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)]
Import pyside2_5.15.16.orig.tar.xz

[dgit import orig pyside2_5.15.16.orig.tar.xz]

13 months agoModify sendCommand signatures to use 0 as default value
Dmitry Shachnev [Sat, 3 Feb 2024 21:29:00 +0000 (00:29 +0300)]
Modify sendCommand signatures to use 0 as default value

The original default value was QNodeCommand::CommandId(), and shiboken
copies it verbatim from the header file, however it does not work because
we do not generate "using namespace Qt3DCore;".

0 is the same as QNodeCommand::CommandId().

Gbp-Pq: Name Modify-sendCommand-signatures.patch

13 months agoshiboken2/clang: Write scope resolution for all parameters of native wrappers
Friedemann Kleint [Thu, 27 Apr 2023 10:18:39 +0000 (12:18 +0200)]
shiboken2/clang: Write scope resolution for all parameters of native wrappers

Make sure types are correct for cases like:

- QtDBusHelper::QDBusReply::QDBusReply(::QDBusReply<void>)
- Qt3DInput*Event constructors taking the equivalent QtGui classes
  (Qt3DInput::QMouseEvent(::QMouseEvent *);

[ChangeLog][shiboken6] Support for parameters/function return
types with scope resolution has been improved.

Fixes: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Id29758fceb88188f4cd834fbd5a7cc0ab511fb1a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit dd863857436bbeeba4c0a1077f5ad16653296277)

Gbp-Pq: Name shiboken2-clang-Write-scope-resolution-for-all-parameters.patch

13 months agoshiboken2/clang: Suppress class scope look up for parameters with scope resolution
Friedemann Kleint [Thu, 27 Apr 2023 11:00:37 +0000 (13:00 +0200)]
shiboken2/clang: Suppress class scope look up for parameters with scope resolution

Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
Gbp-Pq: Name shiboken2-clang-Suppress-class-scope-look-up-for-paramete.patch

13 months agoshiboken2/clang: Record scope resolution of arguments/function return
Friedemann Kleint [Thu, 27 Apr 2023 10:44:10 +0000 (12:44 +0200)]
shiboken2/clang: Record scope resolution of arguments/function return

Add a flag indicating whether a type was specified with a leading "::"
(scope resolution). Such parameters previously caused the function to
rejected due to the "::TypeName" not being found. The type resolution
added for clang 16 strips these qualifiers though, so, the information
needs to be stored.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 075d8ad4660f05e6d2583ff1c05e9987ad624bfe)

Gbp-Pq: Name shiboken2-clang-Record-scope-resolution-of-arguments-func.patch

13 months agoshiboken2/clang: Fix build with clang 16
Friedemann Kleint [Tue, 25 Apr 2023 12:01:45 +0000 (14:01 +0200)]
shiboken2/clang: Fix build with clang 16

clang 16 returns more elaborated types instead of fully qualified type
names. Qualify elaborated types when retrieving the type name.

[ChangeLog][shiboken6] Support for libclang version 16 has been added.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Ibd428280180967f11d82a72159e744c016afc927
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 44ef1859214c66861a251d4a0faf5c38dc050850)

Gbp-Pq: Name shiboken2-clang-Fix-build-with-clang-16.patch

13 months agoshiboken2/clang: Remove typedef expansion
Friedemann Kleint [Thu, 20 Apr 2023 09:16:15 +0000 (11:16 +0200)]
shiboken2/clang: Remove typedef expansion

The functionality will be re-added by a subsequent change
expanding elaborated types.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I3245c6dccba7de0ed1ce0e7820e1edb4567ca3c2
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 24742dca014109bd3c2a9775fc15ca306ab22c9c)

Gbp-Pq: Name shiboken2-clang-Remove-typedef-expansion.patch

13 months agoshiboken2/clang: Fix and simplify resolveType() helper
Friedemann Kleint [Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)]
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch

13 months agoshiboken2/clang: Fix clashes between type name and enumeration values
Friedemann Kleint [Tue, 25 Apr 2023 13:30:30 +0000 (15:30 +0200)]
shiboken2/clang: Fix clashes between type name and enumeration values

Remove all constant and enum value type entries found in the type lookup
unless it is looking for template arguments; where it may be a
non-type template argument.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: If0609ce0d0223f551ed6dee1d1e0ea3ef49d6917
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit e22f717153a5e9855531f45c0bf82ff2461a3f7e)

Gbp-Pq: Name shiboken2-clang-Fix-clashes-between-type-name-and-enumera.patch

13 months agoDo not change RPATH
Dmitry Shachnev [Thu, 25 Jan 2024 11:21:09 +0000 (14:21 +0300)]
Do not change RPATH

Forwarded: not-needed

Gbp-Pq: Name Do-not-change-RPATH.patch

13 months agoStop using imp module
Friedemann Kleint [Thu, 3 Sep 2020 09:14:55 +0000 (11:14 +0200)]
Stop using imp module

Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.

Gbp-Pq: Name Stop-using-imp-module.patch

13 months agoFinal details to enable 3.12 wheel compatibility
Cristián Maureira-Fredes [Tue, 10 Oct 2023 13:52:09 +0000 (15:52 +0200)]
Final details to enable 3.12 wheel compatibility

Change-Id: I0252c4e73e8c214ef8aa418ddf88bc452c0fdf53
Pick-to: 6.6
Task-number: PYSIDE-2230
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 6c7bb7b6e1008909e49bc04d2a48024309a784cc)

Gbp-Pq: Name Final-details-to-enable-3.12-wheel-compatibility.patch

13 months agoSupport running PySide on Python 3.12
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Support running PySide on Python 3.12

Builtin types no longer have tp_dict set. We need to
use PyType_GetDict, instead. This works without Limited API
at the moment.

With some great cheating, this works with Limited API, too.
We emulate PyType_GetDict by tp_dict if that is not 0.
Otherwise we create an empty dict.

Some small changes to Exception handling and longer
warm-up in leaking tests were found, too.

Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2230
Change-Id: I8a56de6208ec00979255b39b5784dfc9b4b92def
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 441ffbd4fc622e67acd81e9c1c6d3a0b0fbcacf0)

Gbp-Pq: Name Support-running-PySide-on-Python-3.12.patch

13 months agoPython 3.12: Fix the structure of class property
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Python 3.12: Fix the structure of class property

There is a PySide bug in Python 3.10 already: The structure for
classproperty derives from the property structure. This was extended
in Python 3.10, already, but the type generation check was made more
exhaustive in Python 3.12 and recognized that.

This change is only for making the compiler/C API happy.
In order to use the extension field, it is necessary to do a runtime
check because of the Limited API.

Task-number: PYSIDE-2230
Change-Id: I88dcaa11589ff41852f08fa2defa5200a0dd4eb6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit edfd9a5ad174a48f8d7da511dc6a1c69e931a418)

Gbp-Pq: Name Python-3.12-Fix-the-structure-of-class-property.patch

13 months agoPyEnum: make forgiving duplicates work with Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
PyEnum: make forgiving duplicates work with Python 3.11

There was a silent change in PyEnums that turns Enum attributes
into properties. This does not harm the Python interface but
needed some change in the duplication emulation.

Furthermore, new internal enums are created with an underscore name.

The meta class was changed from EnumMeta to EnumType.

[ChangeLog][shiboken6] The new Python Enums are now compatible with Python 3.11

Change-Id: I3b1ab63dc5eed15a75ebd0f42dddf4001f640c00
Pick-to: 6.3
Task-number: PYSIDE-1735
Fixes: PYSIDE-1960
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit da2cf031521815a9559ca784beadb70c7a2852d9)

Gbp-Pq: Name PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch

13 months agoShiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
Shiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11

b7df2f1c0 "Fix signal initializer.", 18. May 2010 at 00:55

There was a `PySequence_Check` in the evaluation of some signature
function parameter processing, which should have been `PyTuple_Check`.

Since the new PyEnums are also sequences, the new optimization in
Python 3.11 changed the parameter handling in a correct way and
replaced the argument tuple by a direct single argument of an enum
type. And that is also a sequence ...

There are probably still dormant issues like this in the codebase
which gives reason to submit a task that checks all Python interface
functions for correctness.

Change-Id: I45996a0458c3e60795d2eb802eb98f7dd3678d92
Pick-to: 6.3
Task-number: PYSIDE-1735
Task-number: PYSIDE-1987
Fixes: PYSIDE-1988
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 2720e01f21f3771cb755ef183b8160f691bdb575)

Gbp-Pq: Name Shiboken-Fix-the-oldest-shiboken-bug-ever.patch

13 months agoFind the build directory matching the current interpreter
Dmitry Shachnev [Sun, 14 Nov 2021 18:08:50 +0000 (21:08 +0300)]
Find the build directory matching the current interpreter

This is needed to allow us to run tests with all supported Python versions.
Without this patch, the latest build directory will be always picked, no
matter what the current interpreter is.

Gbp-Pq: Name test-with-current-interpreter.patch

13 months agoBlacklist failing tests
Sophie Brun [Fri, 22 Nov 2019 12:24:54 +0000 (13:24 +0100)]
Blacklist failing tests

Forwarded:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1146?filter=allopenissues

Gbp-Pq: Name blacklist-failing-tests.patch

13 months agoFix spelling errors
Sophie Brun [Tue, 5 Nov 2019 09:39:14 +0000 (10:39 +0100)]
Fix spelling errors

Last-Update: 2018-07-12

Gbp-Pq: Name fix-spelling-errors.patch

13 months agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)]
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls

Last-Updated: 2020-12-20

Gbp-Pq: Name update-sip-import.patch

13 months agopyside2 (5.15.16-1) unstable; urgency=medium
Dmitry Shachnev [Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)]
pyside2 (5.15.16-1) unstable; urgency=medium

  * Team upload.
  * New upstream release.
  * Drop Fix-tests-sample_privatector-sample_privatedtor-failing-w.patch,
    included in the new release.

[dgit import unpatched pyside2 5.15.16-1]

13 months agoImport pyside2_5.15.16-1.debian.tar.xz
Dmitry Shachnev [Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)]
Import pyside2_5.15.16-1.debian.tar.xz

[dgit import tarball pyside2 5.15.16-1 pyside2_5.15.16-1.debian.tar.xz]

16 months agoManual merge of version 5.15.11-1+rpi1 and 5.15.14-1 to produce 5.15.14-1+rpi1 archive/raspbian/5.15.14-1+rpi1 raspbian/5.15.14-1+rpi1
Peter Michael Green [Tue, 30 Jul 2024 00:04:54 +0000 (00:04 +0000)]
Manual merge of version 5.15.11-1+rpi1 and 5.15.14-1 to produce 5.15.14-1+rpi1

17 months agoMerge pyside2 (5.15.14-1) import into refs/heads/workingbranch
Dmitry Shachnev [Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)]
Merge pyside2 (5.15.14-1) import into refs/heads/workingbranch

17 months agoModify sendCommand signatures to use 0 as default value
Dmitry Shachnev [Sat, 3 Feb 2024 21:29:00 +0000 (00:29 +0300)]
Modify sendCommand signatures to use 0 as default value

The original default value was QNodeCommand::CommandId(), and shiboken
copies it verbatim from the header file, however it does not work because
we do not generate "using namespace Qt3DCore;".

0 is the same as QNodeCommand::CommandId().

Gbp-Pq: Name Modify-sendCommand-signatures.patch

17 months agoshiboken2/clang: Write scope resolution for all parameters of native wrappers
Friedemann Kleint [Thu, 27 Apr 2023 10:18:39 +0000 (12:18 +0200)]
shiboken2/clang: Write scope resolution for all parameters of native wrappers

Make sure types are correct for cases like:

- QtDBusHelper::QDBusReply::QDBusReply(::QDBusReply<void>)
- Qt3DInput*Event constructors taking the equivalent QtGui classes
  (Qt3DInput::QMouseEvent(::QMouseEvent *);

[ChangeLog][shiboken6] Support for parameters/function return
types with scope resolution has been improved.

Fixes: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Id29758fceb88188f4cd834fbd5a7cc0ab511fb1a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit dd863857436bbeeba4c0a1077f5ad16653296277)

Gbp-Pq: Name shiboken2-clang-Write-scope-resolution-for-all-parameters.patch

17 months agoshiboken2/clang: Suppress class scope look up for parameters with scope resolution
Friedemann Kleint [Thu, 27 Apr 2023 11:00:37 +0000 (13:00 +0200)]
shiboken2/clang: Suppress class scope look up for parameters with scope resolution

Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
Gbp-Pq: Name shiboken2-clang-Suppress-class-scope-look-up-for-paramete.patch

17 months agoshiboken2/clang: Record scope resolution of arguments/function return
Friedemann Kleint [Thu, 27 Apr 2023 10:44:10 +0000 (12:44 +0200)]
shiboken2/clang: Record scope resolution of arguments/function return

Add a flag indicating whether a type was specified with a leading "::"
(scope resolution). Such parameters previously caused the function to
rejected due to the "::TypeName" not being found. The type resolution
added for clang 16 strips these qualifiers though, so, the information
needs to be stored.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 075d8ad4660f05e6d2583ff1c05e9987ad624bfe)

Gbp-Pq: Name shiboken2-clang-Record-scope-resolution-of-arguments-func.patch

17 months agoshiboken2/clang: Fix build with clang 16
Friedemann Kleint [Tue, 25 Apr 2023 12:01:45 +0000 (14:01 +0200)]
shiboken2/clang: Fix build with clang 16

clang 16 returns more elaborated types instead of fully qualified type
names. Qualify elaborated types when retrieving the type name.

[ChangeLog][shiboken6] Support for libclang version 16 has been added.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Ibd428280180967f11d82a72159e744c016afc927
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 44ef1859214c66861a251d4a0faf5c38dc050850)

Gbp-Pq: Name shiboken2-clang-Fix-build-with-clang-16.patch

17 months agoshiboken2/clang: Remove typedef expansion
Friedemann Kleint [Thu, 20 Apr 2023 09:16:15 +0000 (11:16 +0200)]
shiboken2/clang: Remove typedef expansion

The functionality will be re-added by a subsequent change
expanding elaborated types.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I3245c6dccba7de0ed1ce0e7820e1edb4567ca3c2
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 24742dca014109bd3c2a9775fc15ca306ab22c9c)

Gbp-Pq: Name shiboken2-clang-Remove-typedef-expansion.patch

17 months agoshiboken2/clang: Fix and simplify resolveType() helper
Friedemann Kleint [Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)]
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch

17 months agoshiboken2/clang: Fix clashes between type name and enumeration values
Friedemann Kleint [Tue, 25 Apr 2023 13:30:30 +0000 (15:30 +0200)]
shiboken2/clang: Fix clashes between type name and enumeration values

Remove all constant and enum value type entries found in the type lookup
unless it is looking for template arguments; where it may be a
non-type template argument.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: If0609ce0d0223f551ed6dee1d1e0ea3ef49d6917
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit e22f717153a5e9855531f45c0bf82ff2461a3f7e)

Gbp-Pq: Name shiboken2-clang-Fix-clashes-between-type-name-and-enumera.patch

17 months agoDo not change RPATH
Dmitry Shachnev [Thu, 25 Jan 2024 11:21:09 +0000 (14:21 +0300)]
Do not change RPATH

Forwarded: not-needed

Gbp-Pq: Name Do-not-change-RPATH.patch

17 months agoStop using imp module
Friedemann Kleint [Thu, 3 Sep 2020 09:14:55 +0000 (11:14 +0200)]
Stop using imp module

Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.

Gbp-Pq: Name Stop-using-imp-module.patch

17 months agoFinal details to enable 3.12 wheel compatibility
Cristián Maureira-Fredes [Tue, 10 Oct 2023 13:52:09 +0000 (15:52 +0200)]
Final details to enable 3.12 wheel compatibility

Change-Id: I0252c4e73e8c214ef8aa418ddf88bc452c0fdf53
Pick-to: 6.6
Task-number: PYSIDE-2230
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 6c7bb7b6e1008909e49bc04d2a48024309a784cc)

Gbp-Pq: Name Final-details-to-enable-3.12-wheel-compatibility.patch

17 months agoSupport running PySide on Python 3.12
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Support running PySide on Python 3.12

Builtin types no longer have tp_dict set. We need to
use PyType_GetDict, instead. This works without Limited API
at the moment.

With some great cheating, this works with Limited API, too.
We emulate PyType_GetDict by tp_dict if that is not 0.
Otherwise we create an empty dict.

Some small changes to Exception handling and longer
warm-up in leaking tests were found, too.

Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2230
Change-Id: I8a56de6208ec00979255b39b5784dfc9b4b92def
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 441ffbd4fc622e67acd81e9c1c6d3a0b0fbcacf0)

Gbp-Pq: Name Support-running-PySide-on-Python-3.12.patch

17 months agoPython 3.12: Fix the structure of class property
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Python 3.12: Fix the structure of class property

There is a PySide bug in Python 3.10 already: The structure for
classproperty derives from the property structure. This was extended
in Python 3.10, already, but the type generation check was made more
exhaustive in Python 3.12 and recognized that.

This change is only for making the compiler/C API happy.
In order to use the extension field, it is necessary to do a runtime
check because of the Limited API.

Task-number: PYSIDE-2230
Change-Id: I88dcaa11589ff41852f08fa2defa5200a0dd4eb6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit edfd9a5ad174a48f8d7da511dc6a1c69e931a418)

Gbp-Pq: Name Python-3.12-Fix-the-structure-of-class-property.patch

17 months agoFix tests sample_privatector sample_privatedtor failing with Python 3.11.5
Friedemann Kleint [Mon, 18 Sep 2023 11:39:17 +0000 (13:39 +0200)]
Fix tests sample_privatector sample_privatedtor failing with Python 3.11.5

Remove special characters from the format string as they cause:
ValueError PyUnicode_FromFormatV() expects an ASCII-encoded format string, got a non-ASCII byte: 0xc2

Fixes: PYSIDE-2465
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I506efcb44168fdc979a1d16bf33d5d5d14525e2e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit e726ec6450553d268413ab10ed68889a1c1f4fa6)

Gbp-Pq: Name Fix-tests-sample_privatector-sample_privatedtor-failing-w.patch

17 months agoPyEnum: make forgiving duplicates work with Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
PyEnum: make forgiving duplicates work with Python 3.11

There was a silent change in PyEnums that turns Enum attributes
into properties. This does not harm the Python interface but
needed some change in the duplication emulation.

Furthermore, new internal enums are created with an underscore name.

The meta class was changed from EnumMeta to EnumType.

[ChangeLog][shiboken6] The new Python Enums are now compatible with Python 3.11

Change-Id: I3b1ab63dc5eed15a75ebd0f42dddf4001f640c00
Pick-to: 6.3
Task-number: PYSIDE-1735
Fixes: PYSIDE-1960
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit da2cf031521815a9559ca784beadb70c7a2852d9)

Gbp-Pq: Name PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch

17 months agoShiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
Shiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11

b7df2f1c0 "Fix signal initializer.", 18. May 2010 at 00:55

There was a `PySequence_Check` in the evaluation of some signature
function parameter processing, which should have been `PyTuple_Check`.

Since the new PyEnums are also sequences, the new optimization in
Python 3.11 changed the parameter handling in a correct way and
replaced the argument tuple by a direct single argument of an enum
type. And that is also a sequence ...

There are probably still dormant issues like this in the codebase
which gives reason to submit a task that checks all Python interface
functions for correctness.

Change-Id: I45996a0458c3e60795d2eb802eb98f7dd3678d92
Pick-to: 6.3
Task-number: PYSIDE-1735
Task-number: PYSIDE-1987
Fixes: PYSIDE-1988
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 2720e01f21f3771cb755ef183b8160f691bdb575)

Gbp-Pq: Name Shiboken-Fix-the-oldest-shiboken-bug-ever.patch

17 months agoFind the build directory matching the current interpreter
Dmitry Shachnev [Sun, 14 Nov 2021 18:08:50 +0000 (21:08 +0300)]
Find the build directory matching the current interpreter

This is needed to allow us to run tests with all supported Python versions.
Without this patch, the latest build directory will be always picked, no
matter what the current interpreter is.

Gbp-Pq: Name test-with-current-interpreter.patch

17 months agoBlacklist failing tests
Sophie Brun [Fri, 22 Nov 2019 12:24:54 +0000 (13:24 +0100)]
Blacklist failing tests

Forwarded:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1146?filter=allopenissues

Gbp-Pq: Name blacklist-failing-tests.patch

17 months agoFix spelling errors
Sophie Brun [Tue, 5 Nov 2019 09:39:14 +0000 (10:39 +0100)]
Fix spelling errors

Last-Update: 2018-07-12

Gbp-Pq: Name fix-spelling-errors.patch

17 months agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)]
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls

Last-Updated: 2020-12-20

Gbp-Pq: Name update-sip-import.patch

17 months agopyside2 (5.15.14-1) unstable; urgency=medium
Dmitry Shachnev [Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)]
pyside2 (5.15.14-1) unstable; urgency=medium

  * Team upload.
  * New upstream release.
  * Drop patches, included in the new release:
    - shiboken2-Fix-build-with-clang-16.patch
    - shiboken2-Fail-template-test-instead-of-crashing.patch
  * Refresh and rebase other patches.

[dgit import unpatched pyside2 5.15.14-1]

17 months agoImport pyside2_5.15.14.orig.tar.xz
Dmitry Shachnev [Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)]
Import pyside2_5.15.14.orig.tar.xz

[dgit import orig pyside2_5.15.14.orig.tar.xz]

17 months agoImport pyside2_5.15.14-1.debian.tar.xz
Dmitry Shachnev [Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)]
Import pyside2_5.15.14-1.debian.tar.xz

[dgit import tarball pyside2 5.15.14-1 pyside2_5.15.14-1.debian.tar.xz]

20 months agoMerge pyside2 (5.15.13-1) import into refs/heads/workingbranch
Dmitry Shachnev [Sun, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)]
Merge pyside2 (5.15.13-1) import into refs/heads/workingbranch

20 months agoModify sendCommand signatures to use 0 as default value
Dmitry Shachnev [Sat, 3 Feb 2024 21:29:00 +0000 (00:29 +0300)]
Modify sendCommand signatures to use 0 as default value

The original default value was QNodeCommand::CommandId(), and shiboken
copies it verbatim from the header file, however it does not work because
we do not generate "using namespace Qt3DCore;".

0 is the same as QNodeCommand::CommandId().

Gbp-Pq: Name Modify-sendCommand-signatures.patch

20 months agoshiboken2/clang: Write scope resolution for all parameters of native wrappers
Friedemann Kleint [Thu, 27 Apr 2023 10:18:39 +0000 (12:18 +0200)]
shiboken2/clang: Write scope resolution for all parameters of native wrappers

Make sure types are correct for cases like:

- QtDBusHelper::QDBusReply::QDBusReply(::QDBusReply<void>)
- Qt3DInput*Event constructors taking the equivalent QtGui classes
  (Qt3DInput::QMouseEvent(::QMouseEvent *);

[ChangeLog][shiboken6] Support for parameters/function return
types with scope resolution has been improved.

Fixes: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Id29758fceb88188f4cd834fbd5a7cc0ab511fb1a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit dd863857436bbeeba4c0a1077f5ad16653296277)

Gbp-Pq: Name shiboken2-clang-Write-scope-resolution-for-all-parameters.patch

20 months agoshiboken2/clang: Suppress class scope look up for parameters with scope resolution
Friedemann Kleint [Thu, 27 Apr 2023 11:00:37 +0000 (13:00 +0200)]
shiboken2/clang: Suppress class scope look up for parameters with scope resolution

Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
Gbp-Pq: Name shiboken2-clang-Suppress-class-scope-look-up-for-paramete.patch

20 months agoshiboken2/clang: Record scope resolution of arguments/function return
Friedemann Kleint [Thu, 27 Apr 2023 10:44:10 +0000 (12:44 +0200)]
shiboken2/clang: Record scope resolution of arguments/function return

Add a flag indicating whether a type was specified with a leading "::"
(scope resolution). Such parameters previously caused the function to
rejected due to the "::TypeName" not being found. The type resolution
added for clang 16 strips these qualifiers though, so, the information
needs to be stored.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 075d8ad4660f05e6d2583ff1c05e9987ad624bfe)

Gbp-Pq: Name shiboken2-clang-Record-scope-resolution-of-arguments-func.patch

20 months agoshiboken2/clang: Fix build with clang 16
Friedemann Kleint [Tue, 25 Apr 2023 12:01:45 +0000 (14:01 +0200)]
shiboken2/clang: Fix build with clang 16

clang 16 returns more elaborated types instead of fully qualified type
names. Qualify elaborated types when retrieving the type name.

[ChangeLog][shiboken6] Support for libclang version 16 has been added.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: Ibd428280180967f11d82a72159e744c016afc927
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 44ef1859214c66861a251d4a0faf5c38dc050850)

Gbp-Pq: Name shiboken2-clang-Fix-build-with-clang-16.patch

20 months agoshiboken2/clang: Remove typedef expansion
Friedemann Kleint [Thu, 20 Apr 2023 09:16:15 +0000 (11:16 +0200)]
shiboken2/clang: Remove typedef expansion

The functionality will be re-added by a subsequent change
expanding elaborated types.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I3245c6dccba7de0ed1ce0e7820e1edb4567ca3c2
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 24742dca014109bd3c2a9775fc15ca306ab22c9c)

Gbp-Pq: Name shiboken2-clang-Remove-typedef-expansion.patch

20 months agoshiboken2/clang: Fix and simplify resolveType() helper
Friedemann Kleint [Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)]
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch

20 months agoshiboken2/clang: Fix clashes between type name and enumeration values
Friedemann Kleint [Tue, 25 Apr 2023 13:30:30 +0000 (15:30 +0200)]
shiboken2/clang: Fix clashes between type name and enumeration values

Remove all constant and enum value type entries found in the type lookup
unless it is looking for template arguments; where it may be a
non-type template argument.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: If0609ce0d0223f551ed6dee1d1e0ea3ef49d6917
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit e22f717153a5e9855531f45c0bf82ff2461a3f7e)

Gbp-Pq: Name shiboken2-clang-Fix-clashes-between-type-name-and-enumera.patch

20 months agoshiboken2: Fail template test instead of crashing
Friedemann Kleint [Tue, 11 Apr 2023 12:57:49 +0000 (14:57 +0200)]
shiboken2: Fail template test instead of crashing

The class is not found by Clang 16.

Pick-to: 6.5 6.2 5.15
Task-number: PYSIDE-2288
Change-Id: If7c7a29417d083645ddf2e9fd206a09e47401833
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Gbp-Pq: Name shiboken2-Fail-template-test-instead-of-crashing.patch

20 months agoshiboken2: Fix build with clang 16
Friedemann Kleint [Tue, 11 Apr 2023 12:38:01 +0000 (14:38 +0200)]
shiboken2: Fix build with clang 16

getCursorSpelling() reports a name for unnamed enums.

Pick-to: 6.5 6.2 5.15
Task-number: PYSIDE-2288
Change-Id: Iaeb6409c8825dc0fb2720b450fb14e64bbf5d303
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit e20e1ea0f5f9f9a0fe1c309a60cb5297f1276efc)

Gbp-Pq: Name shiboken2-Fix-build-with-clang-16.patch

20 months agoDo not change RPATH
Dmitry Shachnev [Thu, 25 Jan 2024 11:21:09 +0000 (14:21 +0300)]
Do not change RPATH

Forwarded: not-needed

Gbp-Pq: Name Do-not-change-RPATH.patch

20 months agoStop using imp module
Friedemann Kleint [Thu, 3 Sep 2020 09:14:55 +0000 (11:14 +0200)]
Stop using imp module

Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.

Gbp-Pq: Name Stop-using-imp-module.patch

20 months agoFinal details to enable 3.12 wheel compatibility
Cristián Maureira-Fredes [Tue, 10 Oct 2023 13:52:09 +0000 (15:52 +0200)]
Final details to enable 3.12 wheel compatibility

Change-Id: I0252c4e73e8c214ef8aa418ddf88bc452c0fdf53
Pick-to: 6.6
Task-number: PYSIDE-2230
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 6c7bb7b6e1008909e49bc04d2a48024309a784cc)

Gbp-Pq: Name Final-details-to-enable-3.12-wheel-compatibility.patch

20 months agoSupport running PySide on Python 3.12
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Support running PySide on Python 3.12

Builtin types no longer have tp_dict set. We need to
use PyType_GetDict, instead. This works without Limited API
at the moment.

With some great cheating, this works with Limited API, too.
We emulate PyType_GetDict by tp_dict if that is not 0.
Otherwise we create an empty dict.

Some small changes to Exception handling and longer
warm-up in leaking tests were found, too.

Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2230
Change-Id: I8a56de6208ec00979255b39b5784dfc9b4b92def
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 441ffbd4fc622e67acd81e9c1c6d3a0b0fbcacf0)

Gbp-Pq: Name Support-running-PySide-on-Python-3.12.patch

20 months agoPython 3.12: Fix the structure of class property
Christian Tismer [Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)]
Python 3.12: Fix the structure of class property

There is a PySide bug in Python 3.10 already: The structure for
classproperty derives from the property structure. This was extended
in Python 3.10, already, but the type generation check was made more
exhaustive in Python 3.12 and recognized that.

This change is only for making the compiler/C API happy.
In order to use the extension field, it is necessary to do a runtime
check because of the Limited API.

Task-number: PYSIDE-2230
Change-Id: I88dcaa11589ff41852f08fa2defa5200a0dd4eb6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit edfd9a5ad174a48f8d7da511dc6a1c69e931a418)

Gbp-Pq: Name Python-3.12-Fix-the-structure-of-class-property.patch

20 months agoFix tests sample_privatector sample_privatedtor failing with Python 3.11.5
Friedemann Kleint [Mon, 18 Sep 2023 11:39:17 +0000 (13:39 +0200)]
Fix tests sample_privatector sample_privatedtor failing with Python 3.11.5

Remove special characters from the format string as they cause:
ValueError PyUnicode_FromFormatV() expects an ASCII-encoded format string, got a non-ASCII byte: 0xc2

Fixes: PYSIDE-2465
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I506efcb44168fdc979a1d16bf33d5d5d14525e2e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit e726ec6450553d268413ab10ed68889a1c1f4fa6)

Gbp-Pq: Name Fix-tests-sample_privatector-sample_privatedtor-failing-w.patch

20 months agoPyEnum: make forgiving duplicates work with Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
PyEnum: make forgiving duplicates work with Python 3.11

There was a silent change in PyEnums that turns Enum attributes
into properties. This does not harm the Python interface but
needed some change in the duplication emulation.

Furthermore, new internal enums are created with an underscore name.

The meta class was changed from EnumMeta to EnumType.

[ChangeLog][shiboken6] The new Python Enums are now compatible with Python 3.11

Change-Id: I3b1ab63dc5eed15a75ebd0f42dddf4001f640c00
Pick-to: 6.3
Task-number: PYSIDE-1735
Fixes: PYSIDE-1960
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit da2cf031521815a9559ca784beadb70c7a2852d9)

Gbp-Pq: Name PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch

20 months agoShiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
Shiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11

b7df2f1c0 "Fix signal initializer.", 18. May 2010 at 00:55

There was a `PySequence_Check` in the evaluation of some signature
function parameter processing, which should have been `PyTuple_Check`.

Since the new PyEnums are also sequences, the new optimization in
Python 3.11 changed the parameter handling in a correct way and
replaced the argument tuple by a direct single argument of an enum
type. And that is also a sequence ...

There are probably still dormant issues like this in the codebase
which gives reason to submit a task that checks all Python interface
functions for correctness.

Change-Id: I45996a0458c3e60795d2eb802eb98f7dd3678d92
Pick-to: 6.3
Task-number: PYSIDE-1735
Task-number: PYSIDE-1987
Fixes: PYSIDE-1988
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 2720e01f21f3771cb755ef183b8160f691bdb575)

Gbp-Pq: Name Shiboken-Fix-the-oldest-shiboken-bug-ever.patch

20 months agoFind the build directory matching the current interpreter
Dmitry Shachnev [Sun, 14 Nov 2021 18:08:50 +0000 (21:08 +0300)]
Find the build directory matching the current interpreter

This is needed to allow us to run tests with all supported Python versions.
Without this patch, the latest build directory will be always picked, no
matter what the current interpreter is.

Gbp-Pq: Name test-with-current-interpreter.patch

20 months agoBlacklist failing tests
Sophie Brun [Fri, 22 Nov 2019 12:24:54 +0000 (13:24 +0100)]
Blacklist failing tests

Forwarded:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1146?filter=allopenissues

Gbp-Pq: Name blacklist-failing-tests.patch

20 months agoFix spelling errors
Sophie Brun [Tue, 5 Nov 2019 09:39:14 +0000 (10:39 +0100)]
Fix spelling errors

Last-Update: 2018-07-12

Gbp-Pq: Name fix-spelling-errors.patch

20 months agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Sun, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)]
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls

Last-Updated: 2020-12-20

Gbp-Pq: Name update-sip-import.patch

20 months agopyside2 (5.15.13-1) unstable; urgency=medium
Dmitry Shachnev [Sun, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)]
pyside2 (5.15.13-1) unstable; urgency=medium

  * Team upload.
  * Acknowledge NMU, thanks Steve Langasek!
  * New upstream release.
  * Rebase patches for the new release.
  * Blacklist smart_pointer test (closes: #1068078).
  * Bump Standards-Version to 4.7.0, no changes needed.

[dgit import unpatched pyside2 5.15.13-1]

20 months agoImport pyside2_5.15.13.orig.tar.xz
Dmitry Shachnev [Sun, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)]
Import pyside2_5.15.13.orig.tar.xz

[dgit import orig pyside2_5.15.13.orig.tar.xz]

20 months agoImport pyside2_5.15.13-1.debian.tar.xz
Dmitry Shachnev [Sun, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)]
Import pyside2_5.15.13-1.debian.tar.xz

[dgit import tarball pyside2 5.15.13-1 pyside2_5.15.13-1.debian.tar.xz]