Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16593

Re: Python 3.13 addition as a supported Python version started

From Colin Watson <cjwatson@debian.org>
Newsgroups linux.debian.maint.python, linux.debian.devel
Subject Re: Python 3.13 addition as a supported Python version started
Date 2024-12-20 04:30 +0100
Message-ID <JVBS9-11bR-1@gated-at.bofh.it> (permalink)
References <JIi0V-8BlE-3@gated-at.bofh.it> <JU8yR-hnbv-1@gated-at.bofh.it> <JUFl7-dJu-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Tue, Dec 17, 2024 at 12:53:42PM +0000, Julian Gilbey wrote:
> On Mon, Dec 16, 2024 at 01:58:14AM +0000, Colin Watson wrote:
> > [...]
> >  * spyder: #1088068/#1089054.
> 
> I'm struggling with this one; I've asked at
> https://github.com/spyder-ide/spyder/issues/23074
> for help, but nothing so far.  I've just pushed my current work to
> salsa (git@salsa.debian.org:science-team/spyder.git), and if anyone
> has time to look into this, I'd really appreciate it.

I poked around a bit in pdb.  I think the problem is that one plugin is
calling the icon machinery at class creation time, before a QApplication
or equivalent has been set up, so font loading doesn't happen.  Since
pytest goes through and loads all the Python files to look for tests,
this causes it problems.

This patch helps (borrowed from similar code in a different plugin);
feel free to send it upstream if you think it makes sense:

diff --git a/spyder/plugins/preferences/widgets/configdialog.py b/spyder/plugins/preferences/widgets/configdialog.py
index c3f6bb3..d822431 100644
--- a/spyder/plugins/preferences/widgets/configdialog.py
+++ b/spyder/plugins/preferences/widgets/configdialog.py
@@ -28,11 +28,11 @@ class ConfigDialog(SidebarDialog):
 
     # Constants
     TITLE = _("Preferences")
-    ICON = ima.icon('configure')
     MIN_WIDTH = 940 if MAC else (875 if WIN else 920)
     MIN_HEIGHT = 700 if MAC else (660 if WIN else 670)
 
     def __init__(self, parent=None):
+        self.ICON = ima.icon('configure')
         SidebarDialog.__init__(self, parent)
 
         # Attributes

With that, the tests are able to actually start up, although there are
some other failures.  It might be worth experimenting with whether
upgrading yapf to a more recent upstream version would help with the
rest?  And it's a rather slow set of tests so I didn't wait for them to
finish before sending this email.

-- 
Colin Watson (he/him)                              [cjwatson@debian.org]

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python 3.13 addition as a supported Python version started Matthias Klose <doko@debian.org> - 2024-11-13 10:50 +0100
  Re: Python 3.13 addition as a supported Python version started PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2024-11-13 11:30 +0100
    Re: Python 3.13 addition as a supported Python version started Matthias Klose <doko@debian.org> - 2024-11-13 11:50 +0100
      Re: Python 3.13 addition as a supported Python version started PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2024-11-13 12:10 +0100
        Re: Python 3.13 addition as a supported Python version started Andrey Rakhmatullin <wrar@debian.org> - 2024-11-13 12:20 +0100
    Re: Python 3.13 addition as a supported Python version started c.buhtz@posteo.jp - 2024-11-13 11:50 +0100
      Re: Python 3.13 addition as a supported Python version started buhtz@posteo.de - 2024-11-13 13:30 +0100
        Re: Python 3.13 addition as a supported Python version started Stefano Rivera <stefanor@debian.org> - 2024-11-13 15:50 +0100
    Re: Python 3.13 addition as a supported Python version started Stefano Rivera <stefanor@debian.org> - 2024-11-13 16:10 +0100
      Re: Python 3.13 addition as a supported Python version started Stefano Rivera <stefanor@debian.org> - 2024-11-13 16:10 +0100
  Re: Python 3.13 addition as a supported Python version started Colin Watson <cjwatson@debian.org> - 2024-12-16 03:00 +0100
    Re: Python 3.13 addition as a supported Python version started Julian Gilbey <julian@d-and-j.net> - 2024-12-17 14:00 +0100
      Re: Python 3.13 addition as a supported Python version started Colin Watson <cjwatson@debian.org> - 2024-12-20 04:30 +0100
        Re: Python 3.13 addition as a supported Python version started Julian Gilbey <julian@d-and-j.net> - 2024-12-20 10:50 +0100
    Re: Python 3.13 addition as a supported Python version started Colin Watson <cjwatson@debian.org> - 2024-12-20 04:40 +0100

csiph-web