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, 8 Jan 2023 20:06:53 +0000 (20:06 +0000)
commit18df36c1d8aea27c17ca6aec384fe891672430c1
treec472c04bca79b7d9605cbaeda24117eb4ed443be
parentfa25f008c2db809c423cb48745d98d85f6a61d64
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