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

Use importlib.resources to load data files #327

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Conversation

jodal
Copy link
Owner

@jodal jodal commented Oct 3, 2024

To support loading data sets when the library is installed as a zipped package.

Based upon PR #324, but using newer APIs available since Python 3.9, which we require as of #326.

Fixes #324

novikovaTanya and others added 2 commits October 3, 2024 19:01
Since we now require Python 3.9+, we can use this newer API instead of
the deprecated `importlib.resources.open_binary()`.
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (165509b) to head (e48a757).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #327   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          955       954    -1     
  Branches       148       147    -1     
=========================================
- Hits           955       954    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jodal jodal merged commit f7ee4f1 into main Oct 3, 2024
7 checks passed
@jodal jodal deleted the importlib-resources branch October 3, 2024 18:00
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.

2 participants