Skip to content

Force using importlib_resources in Python < 3.9#10

Merged
jaraco merged 1 commit into
jaraco:mainfrom
mgorny:importlib-resources
Feb 23, 2022
Merged

Force using importlib_resources in Python < 3.9#10
jaraco merged 1 commit into
jaraco:mainfrom
mgorny:importlib-resources

Conversation

@mgorny
Copy link
Copy Markdown
Contributor

@mgorny mgorny commented May 24, 2021

Force using the external importlib_resources package based on Python
version rather than the presence of the built-in importlib.resources.
The latter does not have the needed files() method in Python < 3.9,
and therefore results in test failures:

E AttributeError: module 'importlib.resources' has no attribute 'files'

@mgorny
Copy link
Copy Markdown
Contributor Author

mgorny commented May 24, 2021

Scratch that part about testing. You're not testing 3.7 or 3.8 that are affected by this.

Force using the external importlib_resources package based on Python
version rather than the presence of the built-in importlib.resources.
The latter does not have the needed files() method in Python < 3.9,
and therefore results in test failures:

  E       AttributeError: module 'importlib.resources' has no attribute 'files'

This affects specifically Python 3.7 and 3.8 that have an older version
of importlib.resources module.
@mgorny mgorny force-pushed the importlib-resources branch from 43df3d1 to 7a5274c Compare May 24, 2021 06:39
@jaraco jaraco merged commit 765dcc5 into jaraco:main Feb 23, 2022
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