Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Update plugin to Spyder 6 #417

Merged
merged 6 commits into from
May 1, 2023
Merged

Conversation

jitseniesen
Copy link
Member

@jitseniesen jitseniesen commented Apr 25, 2023

This was quite simple, the main change is to adapt to the Switcher plugin.

Fixes #278.

@jitseniesen jitseniesen added this to the v0.5 milestone Apr 25, 2023
@jitseniesen jitseniesen self-assigned this Apr 25, 2023
@ccordoba12
Copy link
Member

ccordoba12 commented Apr 25, 2023

The idea with the new Switcher plugin is that other plugins can depend on it in the same way that they depend on the MainMenu or Toolbar plugins.

So, you need to add the Switcher to the OPTIONAL list of plugins and declare methods decorated with on_plugin_available and on_plugin_teardown for it

@jitseniesen
Copy link
Member Author

Thanks. I have this information in my brain somewhere, but it did not come out when I wrote the PR. Oops!

@ccordoba12
Copy link
Member

No problem. I figured you missed that one because the new Switcher plugin has the same API as the old Switcher widget. Plus, we left a reference to self.main.switcher to run our tests more easily.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now, thanks @jitseniesen!

In particular, disconnect signals and kill the server if it is still starting up.
This may avoid errors in the CI testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Spyder's dev branch in CI
2 participants