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

Refactor q2-types to avoid circular imports #342

Merged
merged 17 commits into from
Jul 31, 2024
Merged

Conversation

ebolyen
Copy link
Member

@ebolyen ebolyen commented Jul 23, 2024

Each submodule gets two sides, the public and importable subpackage as before, and a new _deferred_setup which is only accessed by plugin_setup.py. This allows implementations and subpackages to rely on other subpackages without invoking registration logic which invariable re-imports plugin causing the mess in the first place.

Full integration tests are paired here:
qiime2/distributions#314
qiime2/distributions#315

@ebolyen
Copy link
Member Author

ebolyen commented Jul 25, 2024

This is going to wait until we have a working metagenome prepare and trial.

@ebolyen
Copy link
Member Author

ebolyen commented Jul 26, 2024

Both trials have passed, so we should be good to go as soon as we can guarantee a prepare

@ebolyen ebolyen force-pushed the Trial-type-refactor branch from 5e0a3d3 to e2e830e Compare July 31, 2024 20:18
@ebolyen ebolyen merged commit 8fed494 into dev Jul 31, 2024
4 checks passed
@ebolyen ebolyen self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

1 participant