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

Give precedence to native traversable readers. #297

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Feb 25, 2024

Ensure that standard library readers are replaced while third-party readers are passed along. Closes #295.

@jaraco jaraco closed this Feb 25, 2024
@jaraco jaraco deleted the feature/better-native-reader-support branch February 25, 2024 20:37
@jaraco jaraco restored the feature/better-native-reader-support branch February 25, 2024 20:38
@jaraco jaraco reopened this Feb 25, 2024
@jaraco jaraco force-pushed the feature/better-native-reader-support branch from e857e8a to bf02178 Compare March 6, 2024 20:47
Ensure that standard library readers are replaced while third-party readers are passed along. Closes #295.
@jaraco jaraco force-pushed the feature/better-native-reader-support branch from bf02178 to 527173b Compare March 6, 2024 21:17
…raversableResourcesLoader and ensure that the known standard readers are replaced by readers from importlib_resources.
@jaraco
Copy link
Member Author

jaraco commented Mar 6, 2024

The diffcov tests are failing, but that's mainly due to the fact that pytest is importing the module before coverage starts, but also because coverage isn't checked across Python versions.

@jaraco
Copy link
Member Author

jaraco commented Mar 12, 2024

I'm going to proceed with merging these changes and getting them released. If there are emergent issues, we can iterate or roll back.

@jaraco jaraco merged commit ec50a15 into main Mar 12, 2024
28 of 32 checks passed
@jaraco jaraco deleted the feature/better-native-reader-support branch March 12, 2024 19:28
@Jakub-CZ
Copy link
Contributor

This change seems to have reintroduced #257. The recreation scenario works with 6.1.3 but fails with 6.2.0.

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.

reader resolution algorithm seems inconsistent between stdlib and importlib_resources
2 participants