pyside2.git
4 years agopy3.10-prep: Fix parser.py for changed typing module
Christian Tismer [Sat, 8 May 2021 14:06:23 +0000 (16:06 +0200)]
py3.10-prep: Fix parser.py for changed typing module

The typing module has subtle changes that are not even
documented: Typing types now have a __name__ attribute.
That confused the parser of the pyi generator because
suddenly stingizing

    Callable[..., Optional[str]]

resulted in

    Callable[..., Optional]

because of special rules that return the generic name
of a typing type, which was very unexpected. Finding this bug
took a lot of debugging of the recursive `_resolve_type`
function.

(cherry picked from commit 2530cb3f165ac02b8f7132e3f5ab4f7f6896dbd9)

Gbp-Pq: Name py3.10-prep-Fix-parser.py-for-changed-typing-module.patch

4 years agopy3.10-prep: reset the type cache after feature switching
Christian Tismer [Sat, 8 May 2021 14:06:23 +0000 (16:06 +0200)]
py3.10-prep: reset the type cache after feature switching

When using feature switching in Python 3.10, there were
funny effects where switched and un-switched versions appeared
to co-exist.

It turned out that we were hit by function caching that
is now implemented for the LOAD_ATTR opcode.

It was not known that caching would happen at all for
PySide classes because we don't use Py_TPFLAGS_VALID_VERSION_TAG.
But actually, this flag is used internally by Python to do some
optimizations, and we just have to notify the interpreter of
type changes by PyType_Modified().

(cherry picked from commit 3a2b7c6f88bba04d8b7ddb571163d23c15c36a4f)

Gbp-Pq: Name py3.10-prep-reset-the-type-cache-after-feature-switching.patch

4 years agoqApp: fix flag handling in Python 3.8+ and a Python 3.9 issue
Christian Tismer [Wed, 23 Dec 2020 11:28:16 +0000 (13:28 +0200)]
qApp: fix flag handling in Python 3.8+ and a Python 3.9 issue

This is an old problem that was solved for Python 2.7.
From Python 3.8 on, the behavior is the same with Python 3.

The fix finally was to extend a Python 2.7 patch to Python 3
as well. See the Jira issue for details.

This patch includes also a small patch that was mentioned as
necessary for Python 3.9: Python issue 40217. I have seen no
effect of this change yet but applied the patch, anyway.

Origin: https://codereview.qt-project.org/c/pyside/pyside-setup/+/328046

Gbp-Pq: Name qApp-fix-flag-handling.patch

4 years agoPass --reuse-build only to commands that use DistUtilsCommandMixin
Dmitry Shachnev [Wed, 16 Dec 2020 17:26:18 +0000 (20:26 +0300)]
Pass --reuse-build only to commands that use DistUtilsCommandMixin

This is a concatenation of two upstream commits:
- https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=ed0571df854a232e
- https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=3f00c2adad2e38b0

Gbp-Pq: Name fix-reuse-build.patch

4 years 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

4 years 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

4 years agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Tue, 16 Nov 2021 09:16:14 +0000 (09:16 +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

4 years agopyside2 (5.15.2-2) unstable; urgency=medium
Dmitry Shachnev [Tue, 16 Nov 2021 09:16:14 +0000 (09:16 +0000)]
pyside2 (5.15.2-2) unstable; urgency=medium

  * Backport upstream patches for Python 3.10 support (closes: #999369).
  * Backport upstream patch to adapt for LLVM 12.01.
  * Run build-time tests with all supported Python versions.
    - Add a patch to make the tests find the matching build directory.

[dgit import unpatched pyside2 5.15.2-2]

4 years agoImport pyside2_5.15.2-2.debian.tar.xz
Dmitry Shachnev [Tue, 16 Nov 2021 09:16:14 +0000 (09:16 +0000)]
Import pyside2_5.15.2-2.debian.tar.xz

[dgit import tarball pyside2 5.15.2-2 pyside2_5.15.2-2.debian.tar.xz]

4 years agoImport pyside2_5.15.2.orig.tar.gz
Kurt Kremitzki [Sat, 19 Dec 2020 20:26:09 +0000 (20:26 +0000)]
Import pyside2_5.15.2.orig.tar.gz

[dgit import orig pyside2_5.15.2.orig.tar.gz]