Skip to content

Fix Python 3.12/pipx compatibility by replacing pkg_resources#43

Open
ZackR123 wants to merge 1 commit intoagroce:masterfrom
ZackR123:fix-python312-pkg-resources
Open

Fix Python 3.12/pipx compatibility by replacing pkg_resources#43
ZackR123 wants to merge 1 commit intoagroce:masterfrom
ZackR123:fix-python312-pkg-resources

Conversation

@ZackR123
Copy link
Copy Markdown

Replaced pkg_resources.resource_stream() with importlib.resources to support Python 3.12+ and pipx environments where pkg_resources may not be available.

Added compatibility import for older Python versions using importlib_resources fallback.

Tested by:

  • running python3 mutator.py --help
  • installing with pip install .
  • running CLI: mutate --help

All functionality works as expected.

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