Skip to content

[3.9] bpo-39791 native hooks for importlib.resources.files (GH-20576) - #20703

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-843c277-3.9
Jun 8, 2020
Merged

[3.9] bpo-39791 native hooks for importlib.resources.files (GH-20576)#20703
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-843c277-3.9

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 8, 2020

Copy link
Copy Markdown
Contributor
  • Provide native .files support on SourceFileLoader.

  • Add native importlib.resources.files() support to zipimporter. Remove fallback support.

  • make regen-all

  • 📜🤖 Added by blurb_it.

  • Move 'files' into the ResourceReader so it can carry the relevant module name context.

  • Create 'importlib.readers' module and add FileReader to it.

  • Add zip reader and rely on it for a TraversableResources object on zipimporter.

  • Remove TraversableAdapter, no longer needed.

  • Update blurb.

  • Replace backslashes with forward slashes.

  • Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 843c277)

Co-authored-by: Jason R. Coombs jaraco@jaraco.com

https://bugs.python.org/issue39791

Automerge-Triggered-By: @jaraco

* Provide native .files support on SourceFileLoader.

* Add native importlib.resources.files() support to zipimporter. Remove fallback support.

* make regen-all

* 📜🤖 Added by blurb_it.

* Move 'files' into the ResourceReader so it can carry the relevant module name context.

* Create 'importlib.readers' module and add FileReader to it.

* Add zip reader and rely on it for a TraversableResources object on zipimporter.

* Remove TraversableAdapter, no longer needed.

* Update blurb.

* Replace backslashes with forward slashes.

* Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 843c277)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@jaraco: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 9cf1be4 into python:3.9 Jun 8, 2020
@miss-islington
miss-islington deleted the backport-843c277-3.9 branch June 8, 2020 01:30
@miss-islington

Copy link
Copy Markdown
Contributor Author

@jaraco: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@jaraco: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants