Skip to content

Avoid pkg_resources for package version#17

Draft
Mirochill wants to merge 1 commit into
dylanwal:masterfrom
Mirochill:fix-16-remove-pkg-resources
Draft

Avoid pkg_resources for package version#17
Mirochill wants to merge 1 commit into
dylanwal:masterfrom
Mirochill:fix-16-remove-pkg-resources

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • replace pkg_resources.require() with importlib.metadata.version() for unitpy.__version__
  • keep the package version single-sourced from installed distribution metadata without requiring pkg_resources at runtime

Fixes #16

Validation

  • Not run locally
  • git diff --check HEAD~1..HEAD
  • rg 'pkg_resources' (no matches in project files)

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.

setuptools pkg_resources will be removed soon

1 participant