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

Replace pkg_resources with importlib.metadata #971

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

ubaumann
Copy link
Contributor

pkg_resources is deprecated in Python 3.12 (https://setuptools.pypa.io/en/latest/pkg_resources.html), and importlib.metadata is available since Python 3.8 (https://docs.python.org/3.12/library/importlib.metadata.html)

pkg_resources is deprecated in Python 3.12
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10537096526

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 56.813%

Totals Coverage Status
Change from base Build 10350305634: 0.0%
Covered Lines: 542
Relevant Lines: 954

💛 - Coveralls

@ogenstad
Copy link
Collaborator

Is setuptools (https://github.com/nornir-automation/nornir/blob/main/pyproject.toml#L34) still required after this?

@ktbyers
Copy link
Collaborator

ktbyers commented Aug 26, 2024

@ogenstad I am pretty sure we still need setuptools and as of Python 3.12 we have to explicitly include it as a dependency.

Copy link
Collaborator

@ktbyers ktbyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ktbyers ktbyers merged commit 1c2a88f into nornir-automation:main Aug 26, 2024
16 checks passed
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.

4 participants