Control: tags 759075 + patch I've rebuilt pyenchant with the attached patch and tested it using:
python /usr/lib/python2.7/dist-packages/enchant/checker/wxSpellCheckerDialog.py The dialog appears to look and function correctly to me. I'm happy to NMU these changes, just let me know. Cheers, Olly
diff -Nru pyenchant-1.6.6/debian/changelog pyenchant-1.6.6/debian/changelog --- pyenchant-1.6.6/debian/changelog 2014-06-16 18:40:53.000000000 -0300 +++ pyenchant-1.6.6/debian/changelog 2014-09-14 01:15:24.000000000 -0300 @@ -1,3 +1,12 @@ +pyenchant (1.6.6-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Update for wxPython 3.0 (Closes: #759075): + - New patch: wxpython3.0.patch + * Drop alternative dependency on long gone python-wxgtk2.6. (Closes: #645894) + + -- Olly Betts <o...@survex.com> Sun, 14 Sep 2014 04:14:23 +0000 + pyenchant (1.6.6-1) unstable; urgency=medium [ Jakub Wilk ] diff -Nru pyenchant-1.6.6/debian/control pyenchant-1.6.6/debian/control --- pyenchant-1.6.6/debian/control 2014-06-16 18:40:34.000000000 -0300 +++ pyenchant-1.6.6/debian/control 2014-09-14 01:13:50.000000000 -0300 @@ -16,7 +16,7 @@ Package: python-enchant Architecture: all Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} -Suggests: python-gobject, python-gtk2, python-wxgtk2.6 | python-wxgtk2.8 +Suggests: python-gobject, python-gtk2, python-wxgtk3.0 Description: spellchecking library for Python PyEnchant consists of Python bindings to the Enchant spellchecking library and some wrapper classes. It includes all the functionality diff -Nru pyenchant-1.6.6/debian/patches/series pyenchant-1.6.6/debian/patches/series --- pyenchant-1.6.6/debian/patches/series 1969-12-31 21:00:00.000000000 -0300 +++ pyenchant-1.6.6/debian/patches/series 2014-09-14 00:59:47.000000000 -0300 @@ -0,0 +1 @@ +wxpython3.0.patch diff -Nru pyenchant-1.6.6/debian/patches/wxpython3.0.patch pyenchant-1.6.6/debian/patches/wxpython3.0.patch --- pyenchant-1.6.6/debian/patches/wxpython3.0.patch 1969-12-31 21:00:00.000000000 -0300 +++ pyenchant-1.6.6/debian/patches/wxpython3.0.patch 2014-09-14 01:00:18.000000000 -0300 @@ -0,0 +1,28 @@ +Description: Update for wxPython 3.0 + These changes should remain compatible with wxPython 2.8. +Bug-Debian: https://bugs.debian.org/759075 +Forwarded: no +Last-Update: 2014-09-14 + +--- pyenchant-1.6.6.orig/enchant/checker/wxSpellCheckerDialog.py ++++ pyenchant-1.6.6/enchant/checker/wxSpellCheckerDialog.py +@@ -256,7 +256,7 @@ def _test(): + from enchant.checker import SpellChecker + text = "This is sme text with a fw speling errors in it. Here are a fw more to tst it ut." + printf(["BEFORE:", text]) +- app = wx.PySimpleApp() ++ app = wx.App(False) + dlg = TestDialog() + chkr = SpellChecker("en_US",text) + dlg.SetSpellChecker(chkr) +--- pyenchant-1.6.6.orig/tools/wx_example.py ++++ pyenchant-1.6.6/tools/wx_example.py +@@ -10,7 +10,7 @@ text = "this is some smple text with a f + print "[INITIAL TEXT:]", text + + # Need to have an App before any windows will be shown +-app = wx.PySimpleApp() ++app = wx.App(False) + + # Construct the dialog, and the SpellChecker it is to use + dlg = wxSpellCheckerDialog(None)