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

DM-39756: Switch from pkg_resources to importlib.resources #31

Merged
merged 6 commits into from Jul 7, 2023

Conversation

timj
Copy link
Member

@timj timj commented Jun 27, 2023

Given that resources can, in some rare cases, be inside zip files, I have implemented this as context managers rather than directly returning the paths. This required some tweaking in other places but @ebellm tells me this is an internal API.

@timj
Copy link
Member Author

timj commented Jun 27, 2023

I'm a bit worried about testing. The actions don't run the tests from what I can see and the tests fail for me if I run them locally. They fail for me on main in the same way so I don't think I'm making things worse.

timj added 5 commits July 6, 2023 17:53
pkg_resources is deprecated.

Change some interfaces to context managers to reflect the fact
that package resources can come from a zip archive.
@timj timj force-pushed the tickets/DM-39756 branch 3 times, most recently from 48eb8df to c2fde43 Compare July 7, 2023 01:06
@timj
Copy link
Member Author

timj commented Jul 7, 2023

@bsmartradio this PR is ready for you to review.

Copy link
Contributor

@bsmartradio bsmartradio left a comment

Choose a reason for hiding this comment

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

Everything looks good. Thanks for adding the automatic pytest.

@timj timj merged commit 71c565e into main Jul 7, 2023
5 checks passed
@timj timj deleted the tickets/DM-39756 branch July 7, 2023 21:09
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.

None yet

2 participants