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

Deprecate find_resource and store_resource #1501

Merged
merged 2 commits into from
Sep 7, 2021
Merged

Conversation

mdickinson
Copy link
Member

This PR deprecates traits.util.resource.find_resource and traits.util.resource.store_resource. New code should use importlib.resources or its fallback importlib_resources instead.

The only existing uses of find_resource I could find either in ETS projects or internal Enthought projects were in Chaco example code. There appear to be no uses of store_resource in current code.

Related: enthought/chaco#657.

Closes #1500.

@corranwebster
Copy link
Contributor

The plan is to keep get_path at least for a while, I presume?

@mdickinson
Copy link
Member Author

The plan is to keep get_path at least for a while, I presume?

Yes.

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

@mdickinson mdickinson merged commit 6bb25bc into main Sep 7, 2021
@mdickinson mdickinson deleted the deprecate/find-resource branch September 7, 2021 08:33
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.

Deprecate find_resource and store_resource functions
3 participants