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

Remove entrypoints in setup for internal backends #4724

Merged
merged 6 commits into from
Dec 24, 2020
Merged

Remove entrypoints in setup for internal backends #4724

merged 6 commits into from
Dec 24, 2020

Conversation

aurghs
Copy link
Collaborator

@aurghs aurghs commented Dec 23, 2020

This PR aims to avoid conflicts during the transition period between the old backend implementation and the new plugins.
During the transition period will coexist both external backend plugins and internal ones.
Currently, if two plugins with the same name are detected, we just pick one randomly. It would be better to be sure to use the external one.

Main changes:

  • Remove from setup.cfg

  • Store in the internal backend and stored in the dictionary in plugins.py. The dictionary is updated with the external plugins detected by pkg_resources.

  • Move the class BackendEntrypoints in common.py to resolve a circular import.

  • Add a test

  • Related to Flexible Backend - AbstractDataStore definition  #4309

  • Tests added

  • Passes isort . && black . && mypy . && flake8

@alexamici
Copy link
Collaborator

I merge it as it involves only the new APIv2 code.

@alexamici alexamici closed this Dec 24, 2020
@alexamici alexamici reopened this Dec 24, 2020
@alexamici alexamici merged commit ac23461 into pydata:master Dec 24, 2020
toddrjen pushed a commit to toddrjen/xarray that referenced this pull request Dec 31, 2020
* add a dictionary for internal backends

* remove entrypoints in setup.cfg

* create global variable BACKEND_ENTRYPOINT
move BackendEtrypoints in common to solve circular dependecy

* fix and update tests

* fix in tests_plugins to remove a warning
@aurghs aurghs deleted the remove_plugings_for_internal_backends branch February 11, 2021 01:56
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.

2 participants