Skip to content

Replace deprecated pkg_resources with importlib.metadata.version#460

Merged
janosh merged 3 commits intomainfrom
importlib-pkg-version
Oct 17, 2023
Merged

Replace deprecated pkg_resources with importlib.metadata.version#460
janosh merged 3 commits intomainfrom
importlib-pkg-version

Conversation

@janosh
Copy link
Member

@janosh janosh commented Oct 17, 2023

From https://setuptools.pypa.io:

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.

@janosh janosh added the pkg Package health and distribution related stuff label Oct 17, 2023
The conflict is caused by:
    jobflow[strict,tests] 0.0.1 depends on moto==4.2.6; extra == "strict"
    jobflow[strict,tests] 0.0.1 depends on moto==4.2.5; extra == "tests"
@janosh janosh merged commit fdd1685 into main Oct 17, 2023
@janosh janosh deleted the importlib-pkg-version branch October 17, 2023 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house-keeping pkg Package health and distribution related stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants