1
0

Compare commits

...

71 Commits

Author SHA256 Message Date
f554308e36 Accepting request 1248820 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1248820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=30
2025-02-28 16:38:14 +00:00
9573010936 - Replace python-3.13.1.patch by a patch proposed by upstream maintainers
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=69
2025-02-27 01:35:55 +00:00
4b7ed0c956 Accepting request 1239533 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1239533
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=29
2025-01-23 16:57:15 +00:00
cd34ff9c3d - Add patch python-3.13.1.patch to fix tests with Python 3.13.1
- Factory is not built on Python 3.10 anymore

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=67
2025-01-22 13:52:41 +00:00
23d557738b Revert r65: nothing in openSUSE seems to require symbol 'wxWidgets_API'
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=66
2024-12-01 10:56:19 +00:00
b001c36e5d - Provides: wxWidgets_API should have version number from the version of wxGTK3 used.
- Clean up the SPEC file with spec-cleaner.

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=65
2024-11-30 16:15:22 +00:00
95c0b74b4f Accepting request 1225318 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1225318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=28
2024-11-21 14:13:14 +00:00
d1d6fba381 - Disable python3 (=3.6) flavor for 15.X
* Upstream only supports Python 3.7+
  * Requires sip 6.8 which only supports Python 3.8+

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=63
2024-11-20 15:22:45 +00:00
b6b05a1bb9 Accepting request 1223619 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1223619
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=27
2024-11-12 18:20:02 +00:00
5bd36393be - Add CVE-2024-50602-no-crash-XML_ResumeParser.patch fixing a
crash in the vendored libexpat’s XML_ResumeParser function
  (bsc#1232590, CVE-2024-50602).

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=61
2024-11-12 10:03:18 +00:00
47aaf0661c Accepting request 1208550 from X11:wxWidgets
- Update to version 4.2.2:
  + Fix some Python 3.12 compatibility issues (segfault on exit) by upgrading sip & waf
  + Fix more float/int conversion issues in wx.lib classes
  + Add initialValue argument to wx.lib.DirBrowseButton
  + Fix wxImage.Clear()
  + Fix blurry text in AuiNotebook tab
  + Add support for frozen rows and columns to GridWithLabelRenderersMixin
  + demo: ShortcutEditor: Fix broken call GetMenuBar()
  + Add proper support for DataViewCheckIconTextRenderer
  + Build: Use new tarfile.extractall() filter for safer tarfile extraction
  + Fix typo in wx.lib.agw.persist_handlers
  + Fix 'str' to 'wxString' converstation, when emoji is inside string
  + Use unwrap before isbuiltin check
  + Preserve pane icons when loading a perspective in agw.aui
  + wx.agw.aui: don't uninitialize the AuiManager if the window close event is vetoed
  + Pure python AUI: Make behavior in all platforms more equal
  + wx.agw.aui. Do layout as the last step after all pane infos have recomputed their best sizes
  + Fix additional SyntaxWarnings with Python 3.12
  + Fix wx.lib.agw.ribbon.RibbonButtonBar DeleteButton function
  + UltimateListCtrl: Add support for ULC_AUTO_CHECK_PARENT
  + Remove dependency on distutils
  + Improve wx.lib.agw.FlatMenu memory usage
  + Support NumPy 2.0
  + Fix EditLabel on CustomTreeCtrl doesn't automatically select the entire text
  + Fix Widgets placed in the UltimateListControl are drawn in the wrong location
  + Fix wx.lib.agw.aui sometimes shows "ghost" docking guide
  + Fix Thumbnailctrl SetSelection raises exception if it tries to scroll
- Add python-six BuildRequires: needed for the test suite.
- Drop upstream merged patches:
  + 0001-Update-wxTextCtrl-OSX-overrides-since-they-re-now-do.patch
  + 0001-Handle-wxGLCanvas-CreateSurface-which-is-only-availa.patch
  + 0001-Support-building-with-Doxygen-1.9.7.patch
  + 0001-wxWidgets-Phoenix-integer-division.patch
  + 0003-Make-pip-usage-in-wxget-optional.patch
  + require-numpy.patch
  + drop-py2.patch
  + Phoenix-pr2580+2591+2592-numpy2.patch

OBS-URL: https://build.opensuse.org/request/show/1208550
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=26
2024-10-17 16:38:31 +00:00
856a9169d7 - Update to version 4.2.2
Unfortunatley still fails against new webkit on i586 (see Staging:G)

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=59
2024-10-04 13:05:19 +00:00
28c8e1af41 Accepting request 1197667 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1197667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=25
2024-08-30 11:25:57 +00:00
e0e3d220a2 Accepting request 1187948 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1187948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=24
2024-07-17 13:14:23 +00:00
2955e5c25f - prepare for python 3.13
* Added wrappers for the OSXEnableAutomaticQuoteSubstitution,
  * Many of the deprecated items in wxWidgets and wxPython are being or have
    been removed. Be sure to test your code in a recent 4.0.x release with
    warnings enabled so you can see which class, method or function calls
  * Bug fixes in wx.lib.calendar: key navigation across month boundaries is
  * Switch to using a wx.Overlay in the Widget Inspection Tool to highlight
  * Fixed issue in wx.lib.agw.customtreectrl where the label editor could
    widgets like wx.ListCtrl, wx.TreeCtrl and wx.dataview.DataViewCtrl.
  * The wx.WS_EX_VALIDATE_RECURSIVELY extended style flag is obsolete,
    as it is now the default (and only) behavior. The style flag has been added
    back into wxPython for compatibility, but with a zero value. You can just
  * Fix a sometimes crash when using a wx.Overlay by letting the wx.DCOverlay
  * Replaced the Vagrant VMs used for building wxPython for various Linux distros
  * Added the wx.svg package which contains code for parsing SVG
    (Scalable Vector Graphics) files, and also code for integrating with
    wxPython. It can rasterize the SVG to a wx.Bitmap of any size with no
    loss of quality, and it can also render the SVG directly to a
  * Fixed wx.GetApp() to use wxWidgets' global wxApp instance instead of
    maintaining its own pointer. This way, if the wxApp is created by C++
  * Added wx.adv.GenericAnimationCtrl so the generic version of the animation
    classes can be used even on the platforms that have a native version.
    Note that due to internal changes to support both types of animations,
    some API changes in how the Animation objects are created. See the
  * Added wrappers for the wx.grid.GridBlockCoords, wx.grid.GridBlocks, and
    wx.grid.GridBlockDiffResult classes, as well as associated new methods
    in the wx.grid.Grid class. These provide a new way to interact with blocks
    which should be a more efficient (time and memory) way to process large
  * Fixed issue when sys.prefix is not unicode (Python2) and when its contents

OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=55
2024-07-16 14:52:27 +00:00
1db51c6a2a Accepting request 1179823 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1179823
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=23
2024-06-11 16:27:00 +00:00
7b5ab36eac Accepting request 1178913 from home:mcalabkova:branches:X11:wxWidgets
- Add drop-py2.patch to get rid of the six dependency (it will die
  with Python 3.13)

OBS-URL: https://build.opensuse.org/request/show/1178913
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=53
2024-06-10 18:21:43 +00:00
ff702d0ccb Accepting request 1178778 from X11:wxWidgets
- Add wxwidgets-3.2.5.patch to resolve wxPython FTBFS (forwarded request 1176820 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/1178778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=22
2024-06-06 10:31:08 +00:00
694792d0fd Accepting request 1176820 from home:jengelh:branches:X11:wxWidgets
- Add wxwidgets-3.2.5.patch to resolve wxPython FTBFS

OBS-URL: https://build.opensuse.org/request/show/1176820
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=51
2024-06-05 15:08:45 +00:00
1bff958f0b Accepting request 1150777 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1150777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=21
2024-02-27 21:43:52 +00:00
d965af1b18 Accepting request 1150470 from home:dimstar:Factory
- Use newly supported shrink{} on OBS to exclude python flavors
  when all python versions are skipped.

OBS-URL: https://build.opensuse.org/request/show/1150470
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=49
2024-02-26 09:36:05 +00:00
7cf39611fe Accepting request 1139670 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1139670
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=20
2024-01-21 22:07:43 +00:00
c5aed123df Accepting request 1137308 from home:bnavigator:branches:devel:languages:python
- Update buildset:
  * Tumbleweed: Prepare python312, drop python38
  * 15.X: Prepare for "SLE15 Python module pythons" (The repository
    does not have all the requirements yet to build)
- Add 0001-wxWidgets-Phoenix-integer-division.patch
  * Required for Python 3.12
  * gh#wxWidgets/Phoenix#2508
- Update requirements:
  * This version requires Pillow again.
  * Require numpy for all flavors: Add require-numpy.patch
  * Upstream goes back and forth, see
    https://github.com/wxWidgets/Phoenix/commits/master/requirements/install.txt
- Repack the source: Remove stray wxWidgets-4.1.0 tree

OBS-URL: https://build.opensuse.org/request/show/1137308
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=47
2024-01-18 10:10:05 +00:00
1ec08ac40f Accepting request 1138996 from home:dimstar:Factory
- Enable python312 as valid multibuild flavor.

OBS-URL: https://build.opensuse.org/request/show/1138996
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=46
2024-01-17 23:53:20 +00:00
6adaad09e4 Accepting request 1135463 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1135463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=19
2023-12-28 21:54:20 +00:00
e96b2617c7 Accepting request 1135226 from home:alarrosa:branches:X11:wxWidgets
- Add patch from upstream to fix building the package with
  doxygen >=1.9.7 (gh#wxWidgets/Phoenix#2497):
  * 0001-Support-building-with-Doxygen-1.9.7.patch

OBS-URL: https://build.opensuse.org/request/show/1135226
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=44
2023-12-28 10:18:39 +00:00
56faf98414 Accepting request 1132958 from home:jengelh:branches:X11:wxWidgets
untested, but at least it builds

- Add 0001-Update-wxTextCtrl-OSX-overrides-since-they-re-now-do.patch
  0001-Handle-wxGLCanvas-CreateSurface-which-is-only-availa.patch
  to fix build failures with wx 3.2.4.

OBS-URL: https://build.opensuse.org/request/show/1132958
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=43
2023-12-26 13:17:53 +00:00
27680c1653 Accepting request 1111568 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1111568
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=18
2023-09-17 17:28:54 +00:00
ec8117108b Accepting request 1110537 from home:StefanBruens:branches:X11:wxWidgets
- Update to release 4.2.1
  * No changelog provided
- Drop upstream patches:
  * 0001-pypubsub-Replace-deprecated-inspect.getargspec.patch
  * 0001-Fix-overflow-check-for-wxUIntPtr-type.patch
  * 0001-Only-import-attrdict-where-needed.patch
  * ba0d8cfcec3d3b0112d1c54991853e6003f2fbf6.patch

OBS-URL: https://build.opensuse.org/request/show/1110537
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=41
2023-09-15 13:12:24 +00:00
10069f05c2 Accepting request 1063155 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1063155
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=17
2023-02-05 18:20:14 +00:00
6e6d043c2c Accepting request 1061720 from home:dirkmueller:Factory
- add ba0d8cfcec3d3b0112d1c54991853e6003f2fbf6.patch to resolve
  python 3.11 build failure
- add 0001-pypubsub-Replace-deprecated-inspect.getargspec.patch
  to fix another python 3.11 build failure

OBS-URL: https://build.opensuse.org/request/show/1061720
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=39
2023-02-04 10:58:10 +00:00
4672a21933 Accepting request 1061419 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1061419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=16
2023-01-28 18:59:55 +00:00
8f8fd9cff5 Accepting request 1061161 from home:pgajdos
- add repack script to sources in spec file

OBS-URL: https://build.opensuse.org/request/show/1061161
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=37
2023-01-26 20:49:26 +00:00
31143cb62e Accepting request 1060645 from home:pgajdos
- add repack script, do not include packaging/ dir in sources
  [gh#wxWidgets/Phoenix#2105], [bsc#670523]

OBS-URL: https://build.opensuse.org/request/show/1060645
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=36
2023-01-24 13:51:13 +00:00
a83a5a8b5e Accepting request 1056221 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/1056221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=15
2023-01-06 16:04:44 +00:00
8d78255baa Accepting request 1046129 from home:dirkmueller:Factory
- Add python-pytest-forked as test dependency
  * The pytest parameter --forked is provided by python-pytest-forked
    which is no longer a transitive build requirement of
    python-pytest-xdist
  * gh#pytest-dev/pytest-xdist#468, gh#pytest-dev/pytest-xdist#821

OBS-URL: https://build.opensuse.org/request/show/1046129
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=34
2023-01-05 14:36:58 +00:00
854eb87f77 Accepting request 995040 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/995040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=14
2022-08-17 16:16:32 +00:00
5620729dc5 Accepting request 994913 from home:StefanBruens:branches:electronics
Update to 4.2.0

Enable unit tests
Keep compat with Leap 15.x/Python 3.6

OBS-URL: https://build.opensuse.org/request/show/994913
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=32
2022-08-14 14:40:17 +00:00
c9e16d2bc3 Accepting request 944035 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/944035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=13
2022-01-05 14:44:31 +00:00
c2d36a9a66 Accepting request 944031 from home:bnavigator:branches:X11:wxWidgets
- Reduce complexity by not rewriting subpackages at all.
  Multibuild flavors now must be a superset of all existing
  python3 flavors.

- The difference of a single whitespace character is significant

OBS-URL: https://build.opensuse.org/request/show/944031
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=31
2022-01-05 12:58:20 +00:00
6c22f2ec19 Accepting request 943795 from home:bnavigator:branches:X11:wxWidgets
- Appease factory-auto bot about package src name

OBS-URL: https://build.opensuse.org/request/show/943795
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=30
2022-01-04 18:01:55 +00:00
ff0538714f Accepting request 943732 from home:mcepl:branches:X11:wxWidgets
- Add additional patches fixing the situation with Python 3.10
  compatibility:
  - 2039-bunch-py310-fixes.patch (from gh#wxWidgets/Phoenix#2039)
  - additional-310-fixes.patch (from various commits on master)
- Split out the TW python3 flavors into multibuild using the
  python_subpackage_only mechanism: Multiple python3 flavors
  sequentially require too much space and time in one build.

OBS-URL: https://build.opensuse.org/request/show/943732
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=29
2022-01-04 11:27:04 +00:00
8c0a8ddc2f Accepting request 914057 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/914057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=12
2021-08-27 19:43:16 +00:00
c038434ed6 Accepting request 899795 from home:1Antoine1:branches:X11:wxWidgets
- Bump required wxWidgets version to 3.1.5.

OBS-URL: https://build.opensuse.org/request/show/899795
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=28
2021-08-24 15:59:46 +00:00
b1d47d43b5 Accepting request 899524 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/899524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=11
2021-06-16 18:33:19 +00:00
2933b35bc7 Accepting request 898558 from home:1Antoine1:branches:X11:wxWidgets
- Update to version 4.1.1:
  * wxWidgets is now validating the flags passed when adding items
    to a sizer, to ensure that they are the correct flags for the
    type of the sizer. If the given flags do not make sense, for
    example using horizontal alignment flags in a horizontal box
    sizer, then a wxAssertionError error is raised.
  * Fixed missing binder for wxEVT_STC_AUTOCOMP_SELECTION_CHANGE.
    (PR#1613).
  * DataViewModel.HasValue can be overridden and will inform the
    DataViewCtrl whether or not an item and column has data. If
    HasValue returns False, then GetValue for that item/col will
    not be called. This allows a distinction between a truly empty
    cell, and one that has a value even if it is an empty string.
    (PR#1600)
  * Added flag that allows blocking of item dragging in the
    UltimateListControl class. (PR#1620)
  * Add the column index to notification events in
    UltimateListControl (PR#1630).
  * Added orientation parameter to UltimateListControl.GetScrollPos.
    (PR#1632)
  * wx.lib.agw.aui.AuiNotebook RemovePage() now hides the removed
    page, so it needs to be shown again if it is reused in another
    place. (PR#1668)
  * Fixed issue that could modify bytes objects under Python.
    (PR#1680)
  * Added wx.lib.agw.aui.EVT_AUI_PANE_CLOSE event which is sent when
    a AUI (the agw version) Pane has been closed (after it has been
    closed, not when it is about to be closed, which is when
    EVT_AUI_PANE_CLOSE is sent.) (PR#1628)
  * Exposed the wx.DC methods GetGraphicsContext and

OBS-URL: https://build.opensuse.org/request/show/898558
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=26
2021-06-11 17:11:39 +00:00
3592cbe56a Add changes.
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=25
2021-06-11 01:44:44 +00:00
c4b80131f0 Accepting request 887957 from home:wicked:qubes-build
It seems since starting to build for three Python interpreters, 10G of disk space is not enough and there has been build failures due to it. Statistics show about 11600MB used. Bumping constraint to 15G.

OBS-URL: https://build.opensuse.org/request/show/887957
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=24
2021-06-11 01:03:08 +00:00
51489fd8be Accepting request 888846 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/888846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=10
2021-04-29 20:44:38 +00:00
e5ac9cab0e Accepting request 882252 from home:StevenK:branches:X11:wxWidgets
- Don't build using Python 3.6 for test package, when that gets reenabled.
- Since build.py install helpfully installs every built shared object
  under site-package directories, remove those not for that version of
  Python. (bsc#1182822)
- Correct python uninstall alternatives to list all of them, not just one.

OBS-URL: https://build.opensuse.org/request/show/882252
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=22
2021-04-27 15:27:37 +00:00
55bf174f8c Accepting request 838865 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/838865
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=9
2020-10-02 15:16:31 +00:00
aa43418f2b Accepting request 838864 from home:StefanBruens:branches:X11:wxWidgets
- Use system wxWidgets (wxGTK3) instead of bundling
- Cleanup test dependencies and check section (tests still disabled
  due to too many failures)

OBS-URL: https://build.opensuse.org/request/show/838864
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=20
2020-09-30 23:41:16 +00:00
b778ae565a Accepting request 824391 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/824391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=8
2020-08-06 15:32:14 +00:00
66f31faeb6 Accepting request 818645 from home:StefanBruens:branches:X11:wxWidgets
- Wrap all relevant build dependencies when building with system
  wxWidgets library.
- Add patches to allow building with STL variant of wxGTK:
  * 0001-Fix-conversion-of-variant-list-members.patch
  * use_stl_build.patch
  * 0001-Fix-wxUIActionSimulator-Text-parameter-documentation.patch
  * 0003-Use-explicit-wxString-c_str-conversion-for-sipFindTy.patch

OBS-URL: https://build.opensuse.org/request/show/818645
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=18
2020-08-04 22:44:38 +00:00
0f52606181 Accepting request 816646 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/816646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=7
2020-06-26 19:44:02 +00:00
8b4cc7c6e5 Accepting request 810311 from home:StefanBruens:branches:X11:wxWidgets
- Add explicit libXtst build dependency, required for Leap 15.1
  (already implicit on Leap 15.2 and TW).

OBS-URL: https://build.opensuse.org/request/show/810311
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=16
2020-06-23 17:11:54 +00:00
b42827617a Accepting request 807828 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/807828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=6
2020-06-03 18:29:51 +00:00
4d5b51398c Accepting request 807357 from home:Guillaume_G:branches:X11:wxWidgets
- Update to 4.1.0:
  * Add a sample for wx.Font.AddPrivateFont to the demo.
  * Added wrappers for the OSXEnableAutomaticQuoteSubstitution, 
    OSXEnableAutomaticDashSubstitution, and OSXDisableAllSmartSubstitutions
    methods in wx.TextCtrl. Also added OSXEnableAutomaticTabbing in wx.App.
  * Added wx.ColourDialogEvent, wx.DCTextBgColourChanger, wx.DCTextBgModeChanger,
    wx.grid.GridCellDateRenderer, wx.grid.GridCellDateEditor, wx.SystemAppearance, etc.
  * Many of the deprecated items in wxWidgets and wxPython are being or have 
    been removed. Be sure to test your code in a recent 4.0.x release with 
    warnings enabled so you can see which class, method or function calls 
    you need to change.
  * Bug fixes in wx.lib.calendar: key navigation across month boundaries is 
    now possible; key navigation now sets the date and fires the EVT_CALENDAR event;
    setter APIs now set the date correctly .
  * Switch to using a wx.Overlay in the Widget Inspection Tool to highlight 
    widgets when running on a GTK3 port.
  * Fixed issue in wx.lib.agw.customtreectrl where the label editor could 
    remain stuck forever .
  * Grafted on a EnableSystemTheme method to the classes which support it.
    This can be used to disable the default system theme on Windows for native
    widgets like wx.ListCtrl, wx.TreeCtrl and wx.dataview.DataViewCtrl. 
    It has no effect on the other platforms.
  * The wx.WS_EX_VALIDATE_RECURSIVELY extended style flag is obsolete, 
    as it is now the default (and only) behavior. The style flag has been added 
    back into wxPython for compatibility, but with a zero value. You can just 
    stop using it in your code with no change in behavior. 
  * Fix a sometimes crash when using a wx.Overlay by letting the wx.DCOverlay 
    hold a reference to the DC, to ensure that the DCOverlay is destroyed first. PR#1301
  * Replaced the Vagrant VMs used for building wxPython for various Linux distros 
    with Docker images.
  * Add some missing methods in wx.adv.BitmapComboBox 
  * Added the wx.svg package which contains code for parsing SVG 
    (Scalable Vector Graphics) files, and also code for integrating with 
    wxPython. It can rasterize the SVG to a wx.Bitmap of any size with no 
    loss of quality, and it can also render the SVG directly to a 
    wx.GraphicsContext using the GC's drawing primitives. PR#1323
  * Ported the embedding sample from Classic, which shows how to use wxPython
    from a C++ wxWidgets application that embeds Python. PR#1353
  * Fixed wx.GetApp() to use wxWidgets' global wxApp instance instead of 
    maintaining its own pointer. This way, if the wxApp is created by C++ 
    code wxPython will still be able to get access to it. 
  * Added wrappers for the wx.ActivityIndicator class.
  * Added wrappers for the wx.CollapsibleHeaderCtrl class.
  * Fixed issues in PlotCanvas around displaying and using scrollbars. 
  * Added wx.msw.CHMHelpController, and also a wx.HelpController factory function
    that creates an instance of the best Help Controller for the platform. 
  * Added wx.adv.GenericAnimationCtrl so the generic version of the animation 
    classes can be used even on the platforms that have a native version. 
    Note that due to internal changes to support both types of animations, 
    some API changes in how the Animation objects are created. See the 
    AnimationCtrl.py sample in the demo for the various usage patterns 
  * Added wrappers for the wx.grid.GridBlockCoords, wx.grid.GridBlocks, and 
    wx.grid.GridBlockDiffResult classes, as well as associated new methods 
    in the wx.grid.Grid class. These provide a new way to interact with blocks 
    of selected cells, including an iterator interface in wx.grid.GridBlocks
    which should be a more efficient (time and memory) way to process large 
    groups of selections.
- Disable Python2

OBS-URL: https://build.opensuse.org/request/show/807357
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=14
2020-05-20 18:37:51 +00:00
39da025e3b Accepting request 781058 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/781058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=5
2020-03-05 22:17:31 +00:00
1bd8e4b725 Accepting request 780944 from home:scarabeus_iv:branches:X11:wxWidgets
- Update to 4.0.7.post2:
  * Bugfix to switch to AVFoundation instead of QTKit
- Fix building with new glut (pc file changed)

OBS-URL: https://build.opensuse.org/request/show/780944
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=12
2020-03-02 23:59:08 +00:00
e9a89f6abb Accepting request 750190 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/750190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=4
2019-11-25 10:23:03 +00:00
Todd R
a422bd545e Accepting request 747467 from home:StevenK:branches:X11:wxWidgets
- Update to 4.0.7.post1
  * This post-release just fixes a problem with the numpy dependency constraint
    for Python 2.7. ()
  * Bug fixes in wx.lib.calendar: key navigation across month boundaries is
    now possible; key navigation now sets the date and fires the EVT_CALENDAR
    event; setter APIs now set the date correctly ().
  * Switch to using a wx.Overlay in the Widget Inspection Tool to highlight
    widgets when running on a GTK3 port.
  * Fixed issue in wx.lib.agw.customtreectrl where label editor could remain
    stuck forever ().
  * Fix a sometimes crash when using a wx.Overlay by letting the wx.DCOverlay
    hold a reference to the DC, to ensure that the DCOverlay is destroyed
    first. (PR#1301)
  * Ported the embedding sample from Classic, which shows how to use wxPython
    from a C++ wxWidgets application that embeds Python. (PR )
  * Fixed wx.GetApp() to use wxWidgets' global wxApp instance instead of
    maintaining its own pointer. This way, if the wxApp is created by C++ code
    wxPython will still be able to get access to it. ()
  * Several other PRs have been backported from the master branch (which will
    become wxPython 4.1.0), the full list can be seen here:
    https://github.com/wxWidgets/Phoenix/pull/1357
  * Fixed a probably rare, but fatal bug on OSX when calling certain overloaded
    virtual methods with implementations in Python.
  * Fixed char pointers in generated stub code to have a valid pointer value.
  * Reverted the change that loads up install_requires from the contents of
    requirements.txt. Split the requirements.txt file into one for install and
    one for development.
  * Added missing HtmlWindow.ScrollToAnchor method, and also a couple methods
    in HtmlCell too. ()
  * Added missing setters for the wheel-related properties in wx.MouseEvent.

OBS-URL: https://build.opensuse.org/request/show/747467
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=10
2019-11-21 21:29:01 +00:00
Stephan Kulow
cceb18ff26 Accepting request 672553 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/672553
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=3
2019-02-08 11:15:22 +00:00
Todd R
50e5a438c0 Accepting request 672552 from home:TheBlackCat:branches:X11:wxWidgets
- Update to 4.0.4
  * Fixed an issue where wx.lib.intctrl would erroneously attempt to use long
    on Python3. ()
  * Include the MSVC runtime DLLs for Python 3.7 builds too.
  * Clear LIBPATH_PYEXT and LIB_PYEXT for linux builds too. ()
  * Added a dependency on the Pillow package since it's used in some wx.lib.agw
    modules. (PR )
  * Add flag to hide page in wx.lib.agw.aui.notebook. ()
  * Switch wx.lib.plot to issue deprecation warnings with PlotPendingDeprecation
    so it doesn't have to enable all warnings to get them to be shown by default.
    ()
  * Added a Python 3.7 builder on Fedora 28. ()
  * Fix the object ownership transfer for wx.Menu.Insert() ()
  * Added wx.Treebook.GetTreeCtrl, wx.Listbook.GetListView and
    wx.Choicebook.GetChoiceCtrl. ()
  * Removed the wx.BookCtrlBase.RemovePage workaround as it was causing problems
    and doesn't seem to be necessary any more. The existing wxWidgets assertions
    are catching the out of range error just fine, however if wxWidgets was built
    without the debug helpers turned on then it could still cause a crash. ()
  * Reverted the changes which removed the content of the wx.lib.pubsub package
    and encouraged users to switch to the real PyPubSub package instead. Removing
    it caused more issues than were expected so it has been restored and the code
    updated to PyPubSub v3.3.0. Version 4.0.0 is available upstream, but it is not
    compatible with Python 2.7. Now, wx.lib.pubsub is actually deprecated instead
    of just trying to pass control over to the upstream PyPubSub library. ()
  * Improve calltip stability in pyshell. ()
  * Fix TypeError in wx.lib.throbber. ()
  * Fix missing parameter tool_id in
    wx.lib.agw.ribbon.toolbar.RibbonToolBar.AddToggleTool. ()
  * Add a step to wx.Config.ReadInt to attempt converting from long to int
    under python2. ()
  * Add virtual behavior for wx.RichTextCtrl and wx.TextCtrl's Copy/Cut/Paste methods
    and their Can* counterparts. ()
  * Fix IO type in wx.lib.agw.thumbnailctrl  ()
  * Fix type error that would occur using pycolourchooser. ()
  * Optimize line drawing in HyperTreeList. ()
  * Add wrapper for wx.StaticBox.GetBordersForSizer and use it in the demo to do
    platform-specific layout of the items in the StaticBox. ()
  * Update wx.Point, wx.RealPoint, and wx.Size to use floating
    point arithmetic when conducting scalar multiplication ()
  * Fix load/save bugs in PySlices (PR#978)
  * Replace deprecated PIL.Image.tostring (PR#1005)
  * Fix rendering and mouse sensitivity in UltimateListCtrl when adding HyperText
    items. ()
  * Added a parameter to lib.agw.CustomTreeCtrl.SetItemWindow(), to allow
    positioning the Window (a small image) on the left of text in a
    CustomTreeItem. (#PR886).
  * Declared DeleteAllPages in the notebook subclasses, so the proper C++
    implementation will be called. ()
  * Removed wx.lib.floatbar, which has been deprecated forever and probably
    hasn't been working in nearly as long. ()
  * Updated SIP to version 4.19.13.
  * Fix an issue in wx.lib.agw.aui.AuiManager where the orientation of
    an AuiToolBar would not be updated when calling LoadPerspective. ()
  * Fixed a bug in wx.FileSystemHandler.OpenFile where the object ownership was
    not being transferred correctly, causing a crash after a premature object
    deletion. ()
  * Fixed wx.ListCtrl.Append when wx.LC_SORT style is used, so appending items out
    of order does not lose the data for the remaining columns. ()
  * Add wx.Accessible, it's Windows-only, will raise a NotImplementedError
    exception on the other platforms. ()
  * Added the ability to generate stub classes for use when optional wxWidgets
    features are not part of the build. So far, stubs are available for
    wx.Accessible, wx.FileSystemWatcher, wx.glcanvas, wx.media and wx.html2.
  * Moved the wxpy_api.h file into the wx package at wx/include/wxPython so it
    will be included in the wheel file. ()
  * Fixed how string data is added to a virtual file-like object in
    wx.MemoryFSHandler. All strings are now added to the file as utf-8 encoded data,
    in both Python2 and Python3, and will be read from the virtual file the same
    way. If you need to use some other encoding for some reason you can first
    convert the text to a bytesarray or other buffer protocol compatible object and
    then create the virtual file from that data. ()
  * Performance update for wx.lib.agw.customtreectrl ()
  * Ensure that colours set in wx.lib.agw.customtreectrl.TreeItemAttr are
    instances of wx.Colour. ()
  * Fix drawing of ticks in wx.lib.agw.speedmeter when there are negative bounds
    values. ()
  * wxWidgets for Mac includes the wxJoystick class now, also update the demo.
    ()
  * Fix wx.html.HtmlPrintout to not be seen as an abstract class, so it can be
    instantiated. ()
  * Fix wx.aui.AuiNotbook.SetArtProvider to properly transfer ownership of the art
    object from Python to C++. This possible double-deletion and related crashing
    problems. ()
  * Fixed the wrappers for wx.html.HtmlWindow.OnOpeningURL to properly handle the
    redirect output parameter. () This is a backwards-incompatible change,
    please see the Migration Guide for details.
  * TabNavigatorWindow works similarly to other programs now. It's resizable and
    draggable so if user has tons of files with long names, it isn't an irritation
    anymore plastered right in the middle of the screen and can't be worked with
    easily and ESC now cancels the popup with a proper returnId. ()
  * Added missing methods in wx.ListBox, SetItemForegroundColour,
    SetItemBackgroundColour and SetItemFont. ()
  * Backported a fix in wxWidgets that avoids crashing in hhctrl.ocx when using
    context sensitive help in 64-bit builds on Windows. ()
- Update to 4.0.3
  * Fixed a linking problem on macOS. The new waf added an explicit link to the
    Python shared library which meant that it would try to load it at runtime,
    even if a different Python (such as Anaconda, EDM or Homebrew) was used to
    import wxPython. This, of course, caused runtime errors. ()
  * Sort pages by dock_pos when added to automatic (agw.aui) notebook. ()
  * Fix a bug in py.introspect.getTokens. ()
  * Added Vagrant configuration for Fedora-28. Removed Fedora-23 ()
  * Added wrappers for the wx.WindowIDRef class and added the wx.NewIdRef
    function. These will make it possible to create reserved Window IDs using the
    same mechanism which is used when passing wx.ID_ANY to a widget constructor.
    The object returned by wx.NewIdRef will automatically convert to an int when
    passing it to a window constructor, and can also be used as the source in a
    Bind(). ()
  * Fixed issue when sys.prefix is not unicode (Python2) and when its contents 
    are not translatable to utf-8.
- Update to 4.0.2
  * Fixed wx.html2.EVT_WEBVIEW_NAVIGATING event not being sent on some versions
    of Linux. ()
  * wx.Sizers can now be used as an iterator to iterate over the items within
    the sizer. ()
  * Fix Python3 division in ThumbnailCtrl. ()
  * Fix leaking image list in CheckListCtrlMixin ()
  * All items marked as deprecated in the wxWidgets interface (documentation)
    files will now throw a DeprecationWarning when used from wxPython. Many of
    these items are disappearing in 4.1 so it's important to ensure they are
    deprecated at runtime too instead of just in the docs. ()
  * Ensure that the attribute list given to the GLCanvas constructor is
    zero-terminated like it was in Classic. ()
  * Updated to the wxWidgets 3.0.4 release version.
  * Added the wxWidgets version number to the tail end of the string returned by
    wx.version().
  * Bind EVT_WINDOW_DESTROY event only to the tree windows in CustomTreeCtrl,
    since otherwise it would be caught when child windows are destroyed too,
    which causes problems in this case. ()
  * Fixed a problem where wx.TreeCtrl.OnCompareItems was not being called in
    derived classes on Windows. This was due to an optimization that wasn't
    compatible with how the classes are wrapped. ()
  * Added wrappers for wx.ClassInfo and exposed wx.Object.GetClassInfo. This
    class is part of wxWidgets' internal type information system and although
    it is not very useful for Python applications it is useful for debugging
    some internal wxPython issues.
  * Removed the wx.lib.pubsub package, and replaced it with code that imports
    the standalone PyPubSub in order remain compatible with older code that
    still uses wx.lib.pubsub. (, )
  * Fixed bug in wx.lib.intctrl ()
  * Fixed subclassing of wx.TextCompleter and wx.TextCompleterSimple ()
  * Fixes for Python3 compatibility in PyCrust. ()
  * Fix wxGet to be able to use pip v10. ()
  * Change winid parameter in wx.ScrolledWindow to id, for consistency. ()
  * Ensure that the page exists in book controls GetPage and RemovePage methods.
    At least one of the wx ports do not do this. ()
  * Added missing wx.NumberEntryDialog
  * Change wx.TextCompleterSimple.GetCompletions to send the list of strings
    as a return value, rather than a parameter that gets filled. ()
  * Enabled the wx.GraphicsContext.Create(metaFileDC) wrapper ()
  * Metafile support is also available on OSX, so wx.msw.Metafile and
    wx.msw.MetafileDC have been moved to the core wx module. So they can now be
    accessed as wx.Metafile and wx.MetafileDC.
  * Updated the waf tool used by the build to version 2.0.7. This fixes problems
    with building for Python 3.7.
  * Fixed alignment in buttons on MSW which have had foreground or background
    colors set. ()
  * Fix for unexpected assertion inside wx.aui.AuiMDIChildFrame.Close.
  * Fix a bug in setting AuiDockingGuide size. ()
  * Remove unnecessary AUI notebook updating, and use wx.BufferedDC in Repaint()
    to mitigate flicker. (wx.lib.agw.aui). (, )
  * Fixed crashing bug when using client data with items in
    wx.dataview.DataViewTreeCtrl. ()
  * Detach wx.Control in AuiToolbar from current sizer before attach to a new
    one. ()
  * Fixed a problem in wx.lib.mixins.listctrl.TextEditMixin where the height of
    the editor widget could be set to zero. (See discussion in )
  * Fix a bug in calculating whether a tool fits into the AuiToolBar. ()
  * Override SetForegroundColour and SetBackgroundColour in MaskedEditMixin ()
  * Add an explicit wx.GraphicsContext.Create overload for wx.AutoBufferedPaintDC. ()
  * Return original AGW window style in AuiToolBar.GetAGWWindowStyleFlag. ()
  * Fix a bug in group management on wx.lib.masked.numctrl; the previous code used
    truediv ('/') to calculate _groupSpace, but in python 3.x this leads to a float
    result, instead of an integer as was expected. Using floordiv ('//') instead
    to solve the problem. ()
  * Hide the window when the tool does not fit into AuiToolBar. ()
  * Fixed the virtual dispatch code for the PGEditor.GetValueFromControl method
    to properly pass the parameters to the Python implementation, and also fixed
    how the return value is handled. ()
  * Fixed all implementations of the PGProperty.StringToValue and IntToValue
    methods to treat the value parameter as a return value. ()
  * Add missing wx.adv.EVT_CALENDAR_WEEK_CLICKED ()
  * Fixed the stock labels to conform to Windows design guidelines. ()
  * Always reset floating size and style when floating a toolbar in agw.aui. ()

OBS-URL: https://build.opensuse.org/request/show/672552
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=8
2019-02-07 18:44:46 +00:00
Todd R
7c91c2e532 Accepting request 666998 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Add _constraints to avoid 'no space left' error

OBS-URL: https://build.opensuse.org/request/show/666998
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=7
2019-02-01 19:44:56 +00:00
fbc8ef86b9 Accepting request 616404 from X11:wxWidgets
OBS-URL: https://build.opensuse.org/request/show/616404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=2
2018-06-19 09:57:28 +00:00
Todd R
091834ce21 Accepting request 616403 from home:TheBlackCat:branches:X11:wxWidgets
- Add fix_no_return_in_nonvoid.patch
  Fix lack of return in non-void function issue in generated sip
  bindings.

OBS-URL: https://build.opensuse.org/request/show/616403
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=5
2018-06-13 03:44:24 +00:00
Todd R
95b4a26c15 Accepting request 614297 from home:czerw:branches:X11:wxWidgets
- Move "wx/*.so" libraries to main package, remove devel package (boo#1095747) 
- Add rpmlintrc file to filter devel-file-in-non-devel-package
- Apply spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/614297
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=4
2018-06-07 15:13:53 +00:00
55e39ba0bd Accepting request 610374 from X11:wxWidgets
Python3-compatible "phoenix" version of wxPython

OBS-URL: https://build.opensuse.org/request/show/610374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wxPython?expand=0&rev=1
2018-05-29 08:30:22 +00:00
Todd R
ca4501c3e0 Accepting request 610231 from home:jengelh:branches:X11:wxWidgets
- Trim filler wording from description.

OBS-URL: https://build.opensuse.org/request/show/610231
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=2
2018-05-18 14:09:54 +00:00
2d097db282 Accepting request 610092 from home:TheBlackCat:branches:X11:wxWidgets
Initial version of the wxPython "phoenix" package.  It is highly backwards-incompatible with the old 3.x version, so I have renamed it to "python-wxPython" to both comply with python package naming conventions and to allow the two to co-exist (although not be co-installed).  I have also ported it to use the new python singlespec macros so one package can build both python2 and python3 rpms.

OBS-URL: https://build.opensuse.org/request/show/610092
OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=1
2018-05-18 07:23:48 +00:00
17 changed files with 182 additions and 6309 deletions

@ -1,33 +0,0 @@
From 371101db7a010d679d214fde617dae9de02008d9 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Fri, 14 Jul 2023 13:23:03 -0400
Subject: [PATCH] Handle wxGLCanvas::CreateSurface which is only available on
EGL
---
etg/_glcanvas.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/etg/_glcanvas.py b/etg/_glcanvas.py
index 52992ed8..2e578645 100644
--- a/etg/_glcanvas.py
+++ b/etg/_glcanvas.py
@@ -125,6 +125,15 @@ def run():
sipRes = wxGLCanvas::IsDisplaySupported(attribPtr);
""")
+ c.find('CreateSurface').setCppCode("""\
+ #if wxUSE_GLCANVAS_EGL
+ return self->CreateSurface();
+ #else
+ wxPyRaiseNotImplemented();
+ return false;
+ #endif
+ """)
+
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)
--
2.43.0

@ -1,48 +0,0 @@
From 6a049ccc0ad96f25c3f7d8540b218ffe8921d8c5 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Tue, 5 Dec 2023 23:42:21 -0500
Subject: [PATCH] Support building with Doxygen 1.9.7
Doxygen 1.9.7 made some changes whereby some method definitions are now
defined in separate XML files, with a "refid" that links to them. In
order to support this, we need to follow these "refids" to pick up the
method definition from the separate group XML files.
---
etgtools/extractors.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/etgtools/extractors.py b/etgtools/extractors.py
index 8c992cb14..5ae1361f9 100644
--- a/etgtools/extractors.py
+++ b/etgtools/extractors.py
@@ -62,6 +62,8 @@ def extract(self, element):
# class. Should be overridden in derived classes to get what each one
# needs in addition to the base.
self.name = element.find(self.nameTag).text
+ if self.name is None:
+ self.name = ''
if '::' in self.name:
loc = self.name.rfind('::')
self.name = self.name[loc+2:]
@@ -1574,12 +1576,21 @@ def addElement(self, element):
extractingMsg(kind, element)
for node in element.findall('sectiondef/memberdef'):
self.addElement(node)
+ for node in element.findall('sectiondef/member'):
+ node = self.resolveRefid(node)
+ self.addElement(node)
else:
raise ExtractorError('Unknown module item kind: %s' % kind)
return item
+ def resolveRefid(self, node):
+ from etgtools import XMLSRC
+ refid = node.get('refid')
+ fname = os.path.join(XMLSRC, refid.rsplit('_', 1)[0]) + '.xml'
+ root = et.parse(fname).getroot()
+ return root.find(".//memberdef[@id='{}']".format(refid))
def addCppFunction(self, type, name, argsString, body, doc=None, **kw):

@ -1,73 +0,0 @@
From 7a198b8cae9a81cec4d25a0c6c5cc65ad8822bb2 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Mon, 20 Nov 2023 22:12:58 -0500
Subject: [PATCH] Update wxTextCtrl OSX overrides since they're now documented
---
etg/textctrl.py | 48 +++++++++++++++++++++---------------------------
1 file changed, 21 insertions(+), 27 deletions(-)
diff --git a/etg/textctrl.py b/etg/textctrl.py
index af631a53..690d68c4 100644
--- a/etg/textctrl.py
+++ b/etg/textctrl.py
@@ -114,35 +114,29 @@ def parseAndTweakModule():
# OSX methods for controlling native features
- c.addCppMethod('void', 'OSXEnableAutomaticQuoteSubstitution', '(bool enable)',
- doc="Mac-only method for turning on/off automatic quote substitutions.",
- body="""\
- #ifdef __WXMAC__
- self->OSXEnableAutomaticQuoteSubstitution(enable);
- #else
- wxPyRaiseNotImplemented();
- #endif
- """)
+ c.find('OSXEnableAutomaticQuoteSubstitution').setCppCode("""\
+ #ifdef __WXMAC__
+ self->OSXEnableAutomaticQuoteSubstitution(enable);
+ #else
+ wxPyRaiseNotImplemented();
+ #endif
+ """)
- c.addCppMethod('void', 'OSXEnableAutomaticDashSubstitution', '(bool enable)',
- doc="Mac-only method for turning on/off automatic dash substitutions.",
- body="""\
- #ifdef __WXMAC__
- self->OSXEnableAutomaticDashSubstitution(enable);
- #else
- wxPyRaiseNotImplemented();
- #endif
- """)
+ c.find('OSXEnableAutomaticDashSubstitution').setCppCode("""\
+ #ifdef __WXMAC__
+ self->OSXEnableAutomaticDashSubstitution(enable);
+ #else
+ wxPyRaiseNotImplemented();
+ #endif
+ """)
- c.addCppMethod('void', 'OSXDisableAllSmartSubstitutions', '()',
- doc="Mac-only method to disable all automatic text substitutions.",
- body="""\
- #ifdef __WXMAC__
- self->OSXDisableAllSmartSubstitutions();
- #else
- wxPyRaiseNotImplemented();
- #endif
- """)
+ c.find('OSXDisableAllSmartSubstitutions').setCppCode("""\
+ #ifdef __WXMAC__
+ self->OSXDisableAllSmartSubstitutions();
+ #else
+ wxPyRaiseNotImplemented();
+ #endif
+ """)
# TODO: add support for wxTextProofOptions (only supported on MSW/GTK3)
# so will need stubs on other platforms.
--
2.43.0

@ -1,25 +0,0 @@
From 3b042c863f4092f802a877a972fd6eb284451a78 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Sat, 6 Jan 2024 21:58:29 +0100
Subject: [PATCH] integer division for randint
Python 3.12 does not accept floats for random.randint() anymore
---
unittests/test_dcDrawLists.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unittests/test_dcDrawLists.py b/unittests/test_dcDrawLists.py
index 9e35e5eaf..6696a79a0 100644
--- a/unittests/test_dcDrawLists.py
+++ b/unittests/test_dcDrawLists.py
@@ -63,8 +63,8 @@ def makeRandomRectangles():
rects = []
for i in range(num):
- W = random.randint(10, w/2)
- H = random.randint(10, h/2)
+ W = random.randint(10, w//2)
+ H = random.randint(10, h//2)
x = random.randint(0, w - W)
y = random.randint(0, h - H)
rects.append( (x, y, W, H) )

@ -1,49 +0,0 @@
From 00ba66a86f65abb24402427d66bf50e8da477321 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Tue, 28 Jun 2022 18:16:34 +0200
Subject: [PATCH 3/4] Make pip usage in wxget optional
As the code states, using pip to download is abusing it, and as it is
just a fallback in case neither wget nor urllib works.
---
wx/tools/wxget.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/wx/tools/wxget.py b/wx/tools/wxget.py
index c83ced7a..75eb0f47 100644
--- a/wx/tools/wxget.py
+++ b/wx/tools/wxget.py
@@ -33,7 +33,6 @@ import os
import wx
import subprocess
import ssl
-import pip
if sys.version_info >= (3,):
from urllib.error import (HTTPError, URLError)
@@ -44,6 +43,11 @@ else:
from urllib2 import (HTTPError, URLError)
import urlparse
+try:
+ import pip
+except ImportError as e:
+ pip = None
+
def get_docs_demo_url(demo=False):
""" Get the URL for the docs or demo."""
if demo:
@@ -196,8 +200,8 @@ def download_file(url, dest=None, force=False, trusted=False):
success = download_wget(url, filename, trusted) # Try wget
if not success:
success = download_urllib(url, filename) # Try urllib
- if not success:
- success = download_pip(url, filename, force, trusted) # Try urllib
+ if not success and pip not None:
+ success = download_pip(url, filename, force, trusted) # Try pip
if not success:
split_url = url.split('/')
msg = '\n'.join([
--
2.36.1

@ -16,10 +16,10 @@ C standard, it could even be a double).
unittests/test_wxdatetime.py | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/etg/defs.py b/etg/defs.py
index 4445cf93..ceb9e2ef 100644
--- a/etg/defs.py
+++ b/etg/defs.py
Index: wxPython-4.2.2/etg/defs.py
===================================================================
--- wxPython-4.2.2.orig/etg/defs.py
+++ wxPython-4.2.2/etg/defs.py
@@ -73,7 +73,7 @@ def run():
td = module.find('wxUIntPtr')
module.insertItemAfter(td, etgtools.TypedefDef(type='wchar_t', name='wxUChar'))
@ -27,13 +27,13 @@ index 4445cf93..ceb9e2ef 100644
- module.insertItemAfter(td, etgtools.TypedefDef(type='wxInt64', name='time_t'))
+ module.insertItemAfter(td, etgtools.TypedefDef(type='long', name='time_t'))
module.insertItemAfter(td, etgtools.TypedefDef(type='long long', name='wxFileOffset'))
module.insertItemAfter(td, etgtools.TypedefDef(type='SIP_SSIZE_T', name='ssize_t'))
module.insertItemAfter(td, etgtools.TypedefDef(type='Py_ssize_t', name='ssize_t'))
module.insertItemAfter(td, etgtools.TypedefDef(type='unsigned char', name='byte', pyInt=True))
diff --git a/unittests/test_wxdatetime.py b/unittests/test_wxdatetime.py
index 62e7d141..2f620045 100644
--- a/unittests/test_wxdatetime.py
+++ b/unittests/test_wxdatetime.py
@@ -25,9 +25,15 @@ class datetime_Tests(wtc.WidgetTestCase):
Index: wxPython-4.2.2/unittests/test_wxdatetime.py
===================================================================
--- wxPython-4.2.2.orig/unittests/test_wxdatetime.py
+++ wxPython-4.2.2/unittests/test_wxdatetime.py
@@ -25,9 +25,15 @@ class datetime_Tests(wtc.WidgetTestCase)
def test_datetime2(self):
d1 = wx.DateTime.FromHMS(8, 15, 45, 123)
d2 = wx.DateTime.FromJDN(12345.67)
@ -50,6 +50,3 @@ index 62e7d141..2f620045 100644
def test_datetime3(self):
d1 = wx.DateTime.Today()
d2 = wx.DateTime.Now()
--
2.36.1

@ -0,0 +1,59 @@
---
ext/wxWidgets/src/expat/expat/lib/expat.h | 4 +++-
ext/wxWidgets/src/expat/expat/lib/xmlparse.c | 11 ++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
--- a/ext/wxWidgets/src/expat/expat/lib/expat.h
+++ b/ext/wxWidgets/src/expat/expat/lib/expat.h
@@ -127,7 +127,9 @@ enum XML_Error {
/* Added in 2.3.0. */
XML_ERROR_NO_BUFFER,
/* Added in 2.4.0. */
- XML_ERROR_AMPLIFICATION_LIMIT_BREACH
+ XML_ERROR_AMPLIFICATION_LIMIT_BREACH,
+ /* Added in 2.6.4. */
+ XML_ERROR_NOT_STARTED,
};
enum XML_Content_Type {
--- a/ext/wxWidgets/src/expat/expat/lib/xmlparse.c
+++ b/ext/wxWidgets/src/expat/expat/lib/xmlparse.c
@@ -2207,6 +2207,9 @@ XML_StopParser(XML_Parser parser, XML_Bo
if (parser == NULL)
return XML_STATUS_ERROR;
switch (parser->m_parsingStatus.parsing) {
+ case XML_INITIALIZED:
+ parser->m_errorCode = XML_ERROR_NOT_STARTED;
+ return XML_STATUS_ERROR;
case XML_SUSPENDED:
if (resumable) {
parser->m_errorCode = XML_ERROR_SUSPENDED;
@@ -2217,7 +2220,7 @@ XML_StopParser(XML_Parser parser, XML_Bo
case XML_FINISHED:
parser->m_errorCode = XML_ERROR_FINISHED;
return XML_STATUS_ERROR;
- default:
+ case XML_PARSING:
if (resumable) {
#ifdef XML_DTD
if (parser->m_isParamEntity) {
@@ -2228,6 +2231,9 @@ XML_StopParser(XML_Parser parser, XML_Bo
parser->m_parsingStatus.parsing = XML_SUSPENDED;
} else
parser->m_parsingStatus.parsing = XML_FINISHED;
+ break;
+ default:
+ assert(0);
}
return XML_STATUS_OK;
}
@@ -2493,6 +2499,9 @@ XML_ErrorString(enum XML_Error code) {
return XML_L(
"limit on input amplification factor (from DTD and entities) breached");
}
+ /* Added in 2.6.4. */
+ case XML_ERROR_NOT_STARTED:
+ return XML_L("parser not started");
return NULL;
}

@ -1,382 +0,0 @@
From fa9050f865855392e8fa2bc95d53ade24d06e049 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Randy=20D=C3=B6ring?=
<30527984+radoering@users.noreply.github.com>
Date: Fri, 19 Jul 2024 18:00:02 +0200
Subject: [PATCH 1/2] Fix NumPy 2.0 deprecations via running `ruff check
--select NPY201 --fix --exclude
docs/sphinx/rest_substitutions/snippets/python/converted`
See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-0-migration-guide
---
demo/FloatCanvas.py | 14 +++++++-------
samples/floatcanvas/MovingElements.py | 2 +-
samples/floatcanvas/MovingTriangle.py | 4 ++--
samples/floatcanvas/PolyEditor.py | 2 +-
samples/floatcanvas/ProcessDiagram.py | 2 +-
samples/floatcanvas/TextBox.py | 10 +++++-----
samples/floatcanvas/Tree.py | 2 +-
wx/lib/floatcanvas/FloatCanvas.py | 4 ++--
wx/lib/plot/examples/demo.py | 2 +-
wx/lib/plot/plotcanvas.py | 2 +-
10 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/demo/FloatCanvas.py b/demo/FloatCanvas.py
index 48d971cf3..f797340de 100644
--- a/demo/FloatCanvas.py
+++ b/demo/FloatCanvas.py
@@ -720,7 +720,7 @@ def TestHitTest(self, event=None):
x += dx
color = "SEA GREEN"
- Points = N.array(( (x, y), (x, y+2.*h/3), (x+w, y+h), (x+w, y+h/2.), (x + 2.*w/3, y+h/2.), (x + 2.*w/3,y) ), N.float_)
+ Points = N.array(( (x, y), (x, y+2.*h/3), (x+w, y+h), (x+w, y+h/2.), (x + 2.*w/3, y+h/2.), (x + 2.*w/3,y) ), N.float64)
R = Canvas.AddPolygon(Points, LineWidth = 2, FillColor = color)
R.Name = color + " Polygon"
R.Bind(FloatCanvas.EVT_FC_RIGHT_DOWN, self.RectGotHitRight)
@@ -729,7 +729,7 @@ def TestHitTest(self, event=None):
x += dx
color = "Red"
- Points = N.array(( (x, y), (x, y+2.*h/3), (x+w, y+h), (x+w, y+h/2.), (x + 2.*w/3, y+h/2.), (x + 2.*w/3,y) ), N.float_)
+ Points = N.array(( (x, y), (x, y+2.*h/3), (x+w, y+h), (x+w, y+h/2.), (x + 2.*w/3, y+h/2.), (x + 2.*w/3,y) ), N.float64)
R = Canvas.AddPointSet(Points, Diameter = 4, Color = color)
R.Name = "PointSet"
R.Bind(FloatCanvas.EVT_FC_LEFT_DOWN, self.PointSetGotHit)
@@ -1139,7 +1139,7 @@ def TestScaledTextBox(self, event= None):
Family = wx.FONTFAMILY_ROMAN,
Alignment = "right"
)
- Point = N.array((100, -20), N.float_)
+ Point = N.array((100, -20), N.float64)
Box = Canvas.AddScaledTextBox("Here is even more auto wrapped text. This time the line spacing is set to 0.8. \n\nThe Padding is set to 0.",
Point,
Size = 3,
@@ -1153,7 +1153,7 @@ def TestScaledTextBox(self, event= None):
)
Canvas.AddPoint(Point, "Red", 2)
- Point = N.array((0, -40), N.float_)
+ Point = N.array((0, -40), N.float64)
# Point = N.array((0, 0), N.float_)
for Position in ["tl", "bl", "tr", "br"]:
# for Position in ["br"]:
@@ -1172,7 +1172,7 @@ def TestScaledTextBox(self, event= None):
)
Canvas.AddPoint(Point, "Red", 4)
- Point = N.array((-20, 60), N.float_)
+ Point = N.array((-20, 60), N.float64)
Box = Canvas.AddScaledTextBox("Here is some\ncentered\ntext",
Point,
Size = 4,
@@ -1188,7 +1188,7 @@ def TestScaledTextBox(self, event= None):
LineSpacing = 0.8
)
- Point = N.array((-20, 20), N.float_)
+ Point = N.array((-20, 20), N.float64)
Box = Canvas.AddScaledTextBox("Here is some\nright aligned\ntext",
Point,
Size = 4,
@@ -1203,7 +1203,7 @@ def TestScaledTextBox(self, event= None):
LineSpacing = 0.8
)
- Point = N.array((100, -60), N.float_)
+ Point = N.array((100, -60), N.float64)
Box = Canvas.AddScaledTextBox("Here is some auto wrapped text. This time it is centered, rather than right aligned.\n\nThe Padding is set to 2.",
Point,
Size = 3,
diff --git a/samples/floatcanvas/MovingElements.py b/samples/floatcanvas/MovingElements.py
index 40db28585..75229c07d 100644
--- a/samples/floatcanvas/MovingElements.py
+++ b/samples/floatcanvas/MovingElements.py
@@ -160,7 +160,7 @@ def CompPoints(self, XY, L):
Points = N.array(((0, c),
( L/2.0, -c/2.0),
(-L/2.0, -c/2.0)),
- N.float_)
+ N.float64)
Points += XY
return Points
diff --git a/samples/floatcanvas/MovingTriangle.py b/samples/floatcanvas/MovingTriangle.py
index f3277f212..822662467 100644
--- a/samples/floatcanvas/MovingTriangle.py
+++ b/samples/floatcanvas/MovingTriangle.py
@@ -64,7 +64,7 @@ def CompPoints(self, XY, L):
Points = N.array(((0, c),
( L/2.0, -c/2.0),
(-L/2.0, -c/2.0)),
- N.float_)
+ N.float64)
Points += XY
return Points
@@ -104,7 +104,7 @@ def __init__(self,parent, id,title,position,size):
Points = N.array(((0,0),
(1,0),
(0.5, 1)),
- N.float_)
+ N.float64)
data = (( (0,0), 1),
( (3,3), 2),
diff --git a/samples/floatcanvas/PolyEditor.py b/samples/floatcanvas/PolyEditor.py
index 55b1af429..270daa835 100644
--- a/samples/floatcanvas/PolyEditor.py
+++ b/samples/floatcanvas/PolyEditor.py
@@ -112,7 +112,7 @@ def OnMove(self, event):
dc.SetPen(wx.Pen('WHITE', 2, wx.SHORT_DASH))
dc.SetLogicalFunction(wx.XOR)
if self.SelectedPointNeighbors is None:
- self.SelectedPointNeighbors = N.zeros((3,2), N.float_)
+ self.SelectedPointNeighbors = N.zeros((3,2), N.float64)
#fixme: This feels very inelegant!
if Index == 0:
self.SelectedPointNeighbors[0] = self.SelectedPoly.Points[-1]
diff --git a/samples/floatcanvas/ProcessDiagram.py b/samples/floatcanvas/ProcessDiagram.py
index cf8609055..f67f89550 100644
--- a/samples/floatcanvas/ProcessDiagram.py
+++ b/samples/floatcanvas/ProcessDiagram.py
@@ -212,7 +212,7 @@ def CompPoints(self, XY, L):
Points = N.array(((0, c),
( L/2.0, -c/2.0),
(-L/2.0, -c/2.0)),
- N.float_)
+ N.float64)
Points += XY
return Points
diff --git a/samples/floatcanvas/TextBox.py b/samples/floatcanvas/TextBox.py
index 5badeb1d0..29db917c9 100644
--- a/samples/floatcanvas/TextBox.py
+++ b/samples/floatcanvas/TextBox.py
@@ -188,7 +188,7 @@ def __init__(self,parent, id,title,position,size):
Family = wx.ROMAN,
Alignment = "right"
)
- Point = N.array((100, -20), N.float_)
+ Point = N.array((100, -20), N.float64)
Box = Canvas.AddScaledTextBox("Here is even more auto wrapped text. This time the line spacing is set to 0.8. \n\nThe Padding is set to 0.",
Point,
Size = 3,
@@ -202,7 +202,7 @@ def __init__(self,parent, id,title,position,size):
)
Canvas.AddPoint(Point, "Red", 2)
- Point = N.array((0, -40), N.float_)
+ Point = N.array((0, -40), N.float64)
# Point = N.array((0, 0), N.float_)
for Position in ["tl", "bl", "tr", "br"]:
# for Position in ["br"]:
@@ -221,7 +221,7 @@ def __init__(self,parent, id,title,position,size):
)
Canvas.AddPoint(Point, "Red", 4)
- Point = N.array((-20, 60), N.float_)
+ Point = N.array((-20, 60), N.float64)
Box = Canvas.AddScaledTextBox("Here is some\ncentered\ntext",
Point,
Size = 4,
@@ -237,7 +237,7 @@ def __init__(self,parent, id,title,position,size):
LineSpacing = 0.8
)
- Point = N.array((-20, 20), N.float_)
+ Point = N.array((-20, 20), N.float64)
Box = Canvas.AddScaledTextBox("Here is some\nright aligned\ntext",
Point,
Size = 4,
@@ -252,7 +252,7 @@ def __init__(self,parent, id,title,position,size):
LineSpacing = 0.8
)
- Point = N.array((100, -60), N.float_)
+ Point = N.array((100, -60), N.float64)
Box = Canvas.AddScaledTextBox("Here is some auto wrapped text. This time it is centered, rather than right aligned.\n\nThe Padding is set to 2.",
Point,
Size = 3,
diff --git a/samples/floatcanvas/Tree.py b/samples/floatcanvas/Tree.py
index 7757651f5..4c75ac6af 100644
--- a/samples/floatcanvas/Tree.py
+++ b/samples/floatcanvas/Tree.py
@@ -204,7 +204,7 @@ def CompPoints(self, XY, L):
Points = N.array(((0, c),
( L/2.0, -c/2.0),
(-L/2.0, -c/2.0)),
- N.float_)
+ N.float64)
Points += XY
return Points
diff --git a/wx/lib/floatcanvas/FloatCanvas.py b/wx/lib/floatcanvas/FloatCanvas.py
index a0c316cd3..7e0d5a4b3 100644
--- a/wx/lib/floatcanvas/FloatCanvas.py
+++ b/wx/lib/floatcanvas/FloatCanvas.py
@@ -601,7 +601,7 @@ def Draw(self, Force=False):
"""
- if N.sometrue(self.PanelSize <= 2 ):
+ if any(self.PanelSize <= 2 ):
# it's possible for this to get called before being properly initialized.
return
if self.Debug: start = clock()
@@ -779,7 +779,7 @@ def ZoomToBB(self, NewBB=None, DrawFlag=True):
BoundingBox = self.BoundingBox
if (BoundingBox is not None) and (not BoundingBox.IsNull()):
self.ViewPortCenter = N.array(((BoundingBox[0,0]+BoundingBox[1,0])/2,
- (BoundingBox[0,1]+BoundingBox[1,1])/2 ),N.float_)
+ (BoundingBox[0,1]+BoundingBox[1,1])/2 ),N.float64)
self.MapProjectionVector = self.ProjectionFun(self.ViewPortCenter)
# Compute the new Scale
BoundingBox = BoundingBox*self.MapProjectionVector # this does need to make a copy!
diff --git a/wx/lib/plot/examples/demo.py b/wx/lib/plot/examples/demo.py
index 74312b772..ce1767b19 100644
--- a/wx/lib/plot/examples/demo.py
+++ b/wx/lib/plot/examples/demo.py
@@ -231,7 +231,7 @@ def _draw8Objects():
"""
Box plot
"""
- data1 = np.array([np.NaN, 337, 607, 583, 512, 531, 558, 381, 621, 574,
+ data1 = np.array([np.nan, 337, 607, 583, 512, 531, 558, 381, 621, 574,
538, 577, 679, 415, 454, 417, 635, 319, 350, 183,
863, 337, 607, 583, 512, 531, 558, 381, 621, 574,
538, 577, 679, 415, 454, 417, 635, 319, 350, 97])
diff --git a/wx/lib/plot/plotcanvas.py b/wx/lib/plot/plotcanvas.py
index 0e1e8a0e2..34ef5f02b 100644
--- a/wx/lib/plot/plotcanvas.py
+++ b/wx/lib/plot/plotcanvas.py
@@ -2044,7 +2044,7 @@ def UpdatePointLabel(self, mDataDict):
"""
if self.last_PointLabel is not None:
# compare pointXY
- if np.sometrue(
+ if any(
mDataDict["pointXY"] != self.last_PointLabel["pointXY"]):
# closest changed
self._drawPointLabel(self.last_PointLabel) # erase old
From 4e09cda937140d3c41b39830c55a272943f36aea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Randy=20D=C3=B6ring?=
<30527984+radoering@users.noreply.github.com>
Date: Sat, 20 Jul 2024 07:46:26 +0200
Subject: [PATCH 2/2] Use `numpy.any` instead of `any` because the latter does
not work for multidimensional arrays.
---
wx/lib/floatcanvas/FloatCanvas.py | 2 +-
wx/lib/plot/plotcanvas.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/wx/lib/floatcanvas/FloatCanvas.py b/wx/lib/floatcanvas/FloatCanvas.py
index 7e0d5a4b3..ebdd689fb 100644
--- a/wx/lib/floatcanvas/FloatCanvas.py
+++ b/wx/lib/floatcanvas/FloatCanvas.py
@@ -601,7 +601,7 @@ def Draw(self, Force=False):
"""
- if any(self.PanelSize <= 2 ):
+ if N.any(self.PanelSize <= 2 ):
# it's possible for this to get called before being properly initialized.
return
if self.Debug: start = clock()
diff --git a/wx/lib/plot/plotcanvas.py b/wx/lib/plot/plotcanvas.py
index 34ef5f02b..b9f65d8db 100644
--- a/wx/lib/plot/plotcanvas.py
+++ b/wx/lib/plot/plotcanvas.py
@@ -2044,7 +2044,7 @@ def UpdatePointLabel(self, mDataDict):
"""
if self.last_PointLabel is not None:
# compare pointXY
- if any(
+ if np.any(
mDataDict["pointXY"] != self.last_PointLabel["pointXY"]):
# closest changed
self._drawPointLabel(self.last_PointLabel) # erase old
From 3871204fd00e821c0ab3a67ec48afde6155b5222 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Thu, 29 Aug 2024 15:05:41 +1000
Subject: [PATCH] Replace N.alltrue() with N.all()
Building on the excellent work in f7d1d818, replace the two uses of
N.alltrue() with N.all(), since the former has been removed in numpy
2.0.
---
unittests/test_lib_floatcanvas_bbox.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unittests/test_lib_floatcanvas_bbox.py b/unittests/test_lib_floatcanvas_bbox.py
index 42ced9c83..11d159534 100644
--- a/unittests/test_lib_floatcanvas_bbox.py
+++ b/unittests/test_lib_floatcanvas_bbox.py
@@ -460,7 +460,7 @@ class testNullBBox(wtc.WidgetTestCase):
B3 = BBox( ( (1.0, 2.0), (5.0, 10.0) ) )
def testValues(self):
- self.assertTrue( N.alltrue(N.isnan(self.B1)) )
+ self.assertTrue( N.all(N.isnan(self.B1)) )
def testIsNull(self):
self.assertTrue( self.B1.IsNull )
@@ -496,7 +496,7 @@ class testInfBBox(wtc.WidgetTestCase):
NB = NullBBox()
def testValues(self):
- self.assertTrue( N.alltrue(N.isinf(self.B1)) )
+ self.assertTrue( N.all(N.isinf(self.B1)) )
# def testIsNull(self):
# self.assertTrue( self.B1.IsNull )
From ad8135462c7d140590e28fc37f9e6cbc263e5b0c Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Thu, 29 Aug 2024 12:27:09 +0200
Subject: [PATCH] replace old numpy types no longer valid in numpy 2
---
unittests/test_lib_floatcanvas_bbox.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/unittests/test_lib_floatcanvas_bbox.py b/unittests/test_lib_floatcanvas_bbox.py
index 42ced9c83..35630a452 100644
--- a/unittests/test_lib_floatcanvas_bbox.py
+++ b/unittests/test_lib_floatcanvas_bbox.py
@@ -30,7 +30,7 @@ def testShape3(self):
self.assertRaises(ValueError, BBox, (0,0,5,6,7) )
def testArrayConstruction(self):
- A = N.array(((4,5),(10,12)), N.float_)
+ A = N.array(((4,5),(10,12)), N.float64)
B = BBox(A)
self.assertTrue(isinstance(B, BBox))
@@ -79,7 +79,7 @@ def testPassArray(self):
def testPassArray2(self):
# same data type -- should be a view
- A = N.array( (((0,0),(5,5))), N.float_ )
+ A = N.array( (((0,0),(5,5))), N.float64 )
C = asBBox(A)
A[0,0] = -10
self.assertTrue(C[0,0] == A[0,0])
@@ -341,7 +341,7 @@ def testCreate(self):
Pts = N.array( ((5,2),
(3,4),
(1,6),
- ), N.float_ )
+ ), N.float64 )
B = fromPoints(Pts)
#B = BBox( ( (1.0, 2.0), (5.0, 10.0) ) )
self.assertTrue(B[0,0] == 1.0 and
@@ -362,7 +362,7 @@ def testCreateInts(self):
)
def testSinglePoint(self):
- Pts = N.array( (5,2), N.float_ )
+ Pts = N.array( (5,2), N.float64 )
B = fromPoints(Pts)
self.assertTrue(B[0,0] == 5.0 and
B[0,1] == 2.0 and

@ -1,6 +1,4 @@
<multibuild>
<package>python3</package>
<package>python310</package>
<package>python311</package>
<package>python312</package>
<package>python313</package>

File diff suppressed because it is too large Load Diff

27
python-3.13.1.patch Normal file

@ -0,0 +1,27 @@
From 2adbeaa7854342a27aab828c128f2111a99c4cf0 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Thu, 23 Jan 2025 21:46:20 -0500
Subject: [PATCH] Implement __iter__ for wxList iterator classes
This fixes being able to use these classes in for loops, for example.
Specifically it fixes the cmdproc tests with Python 3.13.1.
---
etgtools/tweaker_tools.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/etgtools/tweaker_tools.py b/etgtools/tweaker_tools.py
index b1ae6e7fc..9238a130c 100644
--- a/etgtools/tweaker_tools.py
+++ b/etgtools/tweaker_tools.py
@@ -1055,6 +1055,11 @@ class {ListClass}_iterator {{
if (PyErr_Occurred())
return NULL;
%End
+
+ PyObject* __iter__();
+ %MethodCode
+ return PyObject_SelfIter(sipSelf);
+ %End
}};
class {ListClass}

@ -1,3 +1,69 @@
-------------------------------------------------------------------
Fri Jan 24 13:23:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Replace python-3.13.1.patch by a patch proposed by upstream maintainers
-------------------------------------------------------------------
Mon Jan 20 17:58:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add patch python-3.13.1.patch to fix tests with Python 3.13.1
- Factory is not built on Python 3.10 anymore
-------------------------------------------------------------------
Sun Nov 17 13:31:39 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Disable python3 (=3.6) flavor for 15.X
* Upstream only supports Python 3.7+
* Requires sip 6.8 which only supports Python 3.8+
-------------------------------------------------------------------
Thu Nov 7 17:09:23 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Add CVE-2024-50602-no-crash-XML_ResumeParser.patch fixing a
crash in the vendored libexpats XML_ResumeParser function
(bsc#1232590, CVE-2024-50602).
-------------------------------------------------------------------
Fri Oct 4 11:02:43 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 4.2.2:
+ Fix some Python 3.12 compatibility issues (segfault on exit) by upgrading sip & waf
+ Fix more float/int conversion issues in wx.lib classes
+ Add initialValue argument to wx.lib.DirBrowseButton
+ Fix wxImage.Clear()
+ Fix blurry text in AuiNotebook tab
+ Add support for frozen rows and columns to GridWithLabelRenderersMixin
+ demo: ShortcutEditor: Fix broken call GetMenuBar()
+ Add proper support for DataViewCheckIconTextRenderer
+ Build: Use new tarfile.extractall() filter for safer tarfile extraction
+ Fix typo in wx.lib.agw.persist_handlers
+ Fix 'str' to 'wxString' converstation, when emoji is inside string
+ Use unwrap before isbuiltin check
+ Preserve pane icons when loading a perspective in agw.aui
+ wx.agw.aui: don't uninitialize the AuiManager if the window close event is vetoed
+ Pure python AUI: Make behavior in all platforms more equal
+ wx.agw.aui. Do layout as the last step after all pane infos have recomputed their best sizes
+ Fix additional SyntaxWarnings with Python 3.12
+ Fix wx.lib.agw.ribbon.RibbonButtonBar DeleteButton function
+ UltimateListCtrl: Add support for ULC_AUTO_CHECK_PARENT
+ Remove dependency on distutils
+ Improve wx.lib.agw.FlatMenu memory usage
+ Support NumPy 2.0
+ Fix EditLabel on CustomTreeCtrl doesn't automatically select the entire text
+ Fix Widgets placed in the UltimateListControl are drawn in the wrong location
+ Fix wx.lib.agw.aui sometimes shows "ghost" docking guide
+ Fix Thumbnailctrl SetSelection raises exception if it tries to scroll
- Add python-six BuildRequires: needed for the test suite.
- Drop upstream merged patches:
+ 0001-Update-wxTextCtrl-OSX-overrides-since-they-re-now-do.patch
+ 0001-Handle-wxGLCanvas-CreateSurface-which-is-only-availa.patch
+ 0001-Support-building-with-Doxygen-1.9.7.patch
+ 0001-wxWidgets-Phoenix-integer-division.patch
+ 0003-Make-pip-usage-in-wxget-optional.patch
+ require-numpy.patch
+ drop-py2.patch
+ Phoenix-pr2580+2591+2592-numpy2.patch
-------------------------------------------------------------------
Thu Aug 29 13:57:46 UTC 2024 - Ben Greiner <code@bnavigator.de>

@ -1,7 +1,7 @@
#
# spec file for package python-wxPython
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,9 +19,8 @@
%define X_display ":98"
%bcond_without test
%bcond_without syswx
# We rebuild the ETG and SIP files for two reasons:
# We rebuild the ETG and SIP files for:
# - Fixing a bug in the ETG time_t typedef (see patch)
# - Compatibility with SIP 6.5.x, for Leap 15.x
%bcond_without rebuild_sip
%if %{with syswx}
@ -59,18 +58,12 @@ ExclusiveArch: donotbuild
%endif
%else
# SLE/Leap
%if "%flavor" == "python3"
# python3 is the old 3.6
%define pythons python3
%define python3_provides %{nil}
%else
%{?sle15_python_module_pythons}
%if "%flavor" != "%pythons"
# sle15_python_module_pythons defines the flavor, otherwise don't build
%define pythons %{nil}
%endif
%endif
%endif
%if "%{shrink:%pythons}" == ""
ExclusiveArch: donotbuild
%define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version}
@ -85,7 +78,7 @@ ExclusiveArch: donotbuild
%endif
Name: %{pprefix}-wxPython
Version: 4.2.1
Version: 4.2.2
Release: 0
Summary: The "Phoenix" variant of the wxWidgets Python bindings
License: GPL-2.0-or-later
@ -95,29 +88,20 @@ URL: https://github.com/wxWidgets/Phoenix
Source0: wxPython-%{version}.tar.gz
Source1: python-wxPython-rpmlintrc
Source2: repack
Patch1: 0001-Update-wxTextCtrl-OSX-overrides-since-they-re-now-do.patch
Patch2: 0001-Handle-wxGLCanvas-CreateSurface-which-is-only-availa.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2497
Patch3: 0001-Support-building-with-Doxygen-1.9.7.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2508
Patch4: 0001-wxWidgets-Phoenix-integer-division.patch
# PATCH-FIX-OPENSUSE
Patch12: use_stl_build.patch
# PATCH-FIX-UPSTREAM - https://github.com/wxWidgets/Phoenix/pull/2232
Patch13: 0003-Make-pip-usage-in-wxget-optional.patch
# PATCH-FIX-OPENSUSE
Patch14: 0004-Fix-time_t-ETG-typedef-extend-DateTime.FromTimeT-tes.patch
# PATCH-FIX-UPSTREAM CVE-2024-50602-no-crash-XML_ResumeParser.patch bsc#1232590 mcepl@suse.com
# prevent crashing of vendored libexpat in XML_ResumeParser
Patch15: CVE-2024-50602-no-crash-XML_ResumeParser.patch
# PATCH-FIX-OPENSUSE - Test fixes/additions:
Patch112: 0001-Check-HSV-values-in-image-test.patch
# PATCH-FIX-OPENSUSE - Numpy for Python 3.12 is a thing
Patch113: require-numpy.patch
Patch114: wxwidgets-3.2.5.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2540
Patch115: drop-py2.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2580 + 2591 + 2592
Patch116: Phoenix-pr2580+2591+2592-numpy2.patch
# PATCH-FIX-UPSTREAM https://github.com/wxWidgets/Phoenix/pull/2680 Implement __iter__ for wxList iterator classes
Patch115: https://github.com/wxWidgets/Phoenix/commit/2adbeaa7854342a27aab828c128f2111a99c4cf0.patch#/python-3.13.1.patch
# TODO: Replace deprecated setup.py calls in build.py with PEP517 without building wxWidgets into the wheel
BuildRequires: %{python_module base}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler
@ -125,7 +109,7 @@ BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
%if %{with syswx}
BuildRequires: %{python_module sip6-devel >= 6.5.1}
BuildRequires: %{python_module sip6-devel >= 6.8.3}
BuildRequires: waf
BuildRequires: wxGTK3-devel >= 3.2.0
BuildRequires: wxWidgets-3_2-doc-xml >= 3.2.0
@ -166,6 +150,7 @@ BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest-forked}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
BuildRequires: Mesa-dri
# Need at least one font installed
BuildRequires: google-opensans-fonts

@ -1,11 +0,0 @@
Revert https://github.com/wxWidgets/Phoenix/commit/b1c55639dfb73db3a11307c9de888540cec512df
--- a/requirements/install.txt 2023-06-07 01:31:16.000000000 +0000
+++ b/requirements/install.txt 2024-01-06 22:08:26.485981672 +0000
@@ -1,5 +1,4 @@
# Runtime dependencies needed when using wxPython Phoenix
-numpy < 1.17 ; python_version <= '2.7'
-numpy ; python_version >= '3.0' and python_version < '3.12'
+numpy
pillow
six

BIN
wxPython-4.2.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
wxPython-4.2.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

@ -4,11 +4,13 @@ Generated by:
git diff 5622abb73deaa26dc2f6dc4cd8b4b2050396b49a..78938da1218483024b3a7acf55b5fb5513882916 etg/
diff --git etg/window.py etg/window.py
index c388df76..0c035f14 100644
---
etg/window.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
--- a/etg/window.py
+++ a/etg/window.py
@@ -251,6 +251,23 @@ def run():
+++ b/etg/window.py
@@ -268,6 +268,23 @@ def run():
return NULL;
#endif
""")