Skip to content

Restore Entrypoints compatibility#10113

Merged
jrbourbeau merged 5 commits intodask:mainfrom
jacobtomlinson:entrypoints-compatibility
Mar 23, 2023
Merged

Restore Entrypoints compatibility#10113
jrbourbeau merged 5 commits intodask:mainfrom
jacobtomlinson:entrypoints-compatibility

Conversation

@jacobtomlinson
Copy link
Copy Markdown
Member

Restored the test that was removed in #10070 and then imported importlib_metadata.entry_point to replace the old implementation.

I added an extra commit that adds a deprecation warning so that this can be removed again in the future. But we can pop that commit off if we just want to leave it as it is.

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@jacobtomlinson
Copy link
Copy Markdown
Member Author

Thanks for the review @graingert

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Copy link
Copy Markdown
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @jacobtomlinson @graingert. This looks reasonable to me.

For reference, dask.compatibility is intended to be private so I wouldn't use anything in this module in other projects. Though I acknowledge we're not doing a great job of signaling that through use of leading underscores. I'll open an issue for this later

@jrbourbeau
Copy link
Copy Markdown
Member

Will merge once CI is finished

@jrbourbeau jrbourbeau mentioned this pull request Mar 23, 2023
6 tasks
@jacobtomlinson
Copy link
Copy Markdown
Member Author

For reference, dask.compatibility is intended to be private so I wouldn't use anything in this module in other projects.

Fair enough. I think we've historically not been great at making a distinction between public/private APIs throughout the Dask projects and this is biting us in a few places at the moment. Renaming to dask._compatibility with a deprecation cycle of the existing would make total sense.

@jrbourbeau jrbourbeau merged commit 63be739 into dask:main Mar 23, 2023
@jacobtomlinson jacobtomlinson deleted the entrypoints-compatibility branch March 23, 2023 16:51
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.

Removal of dask.compatibility.entry_points has broken dask-kubernetes

3 participants