PyEnum: make forgiving duplicates work with Python 3.11
authorChristian Tismer <tismer@stackless.com>
Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 16 Jul 2023 14:49:14 +0000 (15:49 +0100)
commitd060c1bd8c7e62f0c819ed15c82475b353b3df02
tree041bdf28f236538ecd735d48f66e0e1c8e705f6d
parentf01aded30d31561393f3ec7085f46d8746c9808a
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
build_scripts/config.py
sources/pyside2/tests/QtCore/qenum_test.py
sources/shiboken2/libshiboken/pep384impl.h
sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py