Skip to content

fix: resolves pkg_resources deprecation#125

Open
christopher-hampson wants to merge 1 commit into
ManimCommunity:mainfrom
christopher-hampson:fix/pkgdeprecation
Open

fix: resolves pkg_resources deprecation#125
christopher-hampson wants to merge 1 commit into
ManimCommunity:mainfrom
christopher-hampson:fix/pkgdeprecation

Conversation

@christopher-hampson

Copy link
Copy Markdown

Overview: What does this pull request change?

Replaces usage of the deprecated pkg_resources module with importlib.metadata for accessing package metadata.

Motivation and Explanation: Why and how do your changes improve the library?

pkg_resources is deprecated and throws an error unless explicitly installed. This PR updates the codebase to use importlib.metadata, which is part of the Python standard library (Python 3.8+) removing this dependency.

The change align with approach taken in the main manim (CE) library.

Links to added or changed documentation pages

Further Information and Comments

  • Defaults to __version__ = "0.0.0+unknown" to be consistent with manim

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.

1 participant