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

Re-export CorePlugin in envisage.api #332

Merged
merged 2 commits into from
Oct 21, 2020
Merged

Conversation

aaronayres35
Copy link
Contributor

fixes #308

The issue was originally framed as a question, but this PR assumes that re-exporting CorePlugin via envisage.api is the correct solution. (Maybe instead it should be moved to envisage/plugins/core/core_plugin.py and be placed in an envisage.plugins.core.api module? but since it is core that probably is not the right approach and I think including it in envisage.api, as is done in this PR, makes more sense.

This PR simply re-exports CorePlugin in envisage.api, adjusts core_plugin.py to not import from envisage.api to avoid circular imports, and has tests/examples import CorePlugin from the api now instead.

Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

@aaronayres35 aaronayres35 merged commit 50bdb1e into master Oct 21, 2020
@aaronayres35 aaronayres35 deleted the fix-308-CorePlugin-api branch October 21, 2020 14:36
@mdickinson
Copy link
Member

FWIW, I agree that this is the right solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should envisage.api re-export CorePlugin?
3 participants