Skip to content

packaging: avoid pkg_resources fallback#57

Draft
Mirochill wants to merge 1 commit into
david-caro:mainfrom
Mirochill:fix-56-drop-pkg-resources
Draft

packaging: avoid pkg_resources fallback#57
Mirochill wants to merge 1 commit into
david-caro:mainfrom
Mirochill:fix-56-drop-pkg-resources

Conversation

@Mirochill
Copy link
Copy Markdown

@Mirochill Mirochill commented May 22, 2026

Fixes #56.

Summary

  • replaces the pkg_resources version fallback with importlib.metadata / importlib_metadata
  • adds importlib-metadata only for Python < 3.8, where the stdlib module is unavailable
  • adds focused coverage for the installed metadata fallback and the missing metadata module case

Validation

  • git diff --check
  • git diff --check HEAD~1..HEAD
  • rg -n 'pkg_resources|get_distribution|resource_filename|resource_dir' autosemver tests setup.py pyproject.toml README.rst docs returned no matches

Not run locally.

* Uses importlib metadata for installed version fallback.

* Adds a Python <3.8 importlib-metadata dependency.

* Adds regression coverage for the metadata fallback.

Sem-Ver: bugfix
Signed-off-by: Mirochill <200482516+Mirochill@users.noreply.github.com>
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.

pkg_resources deprecation warning

1 participant