Skip to content

Avoid pkg_resources import on stable CLI startup#397

Draft
Mirochill wants to merge 1 commit into
Vimjas:stable-0.3from
Mirochill:fix-394-stable-no-pkg-resources
Draft

Avoid pkg_resources import on stable CLI startup#397
Mirochill wants to merge 1 commit into
Vimjas:stable-0.3from
Mirochill:fix-394-stable-no-pkg-resources

Conversation

@Mirochill
Copy link
Copy Markdown

Fixes #394.

Summary:

  • Remove the import-time pkg_resources dependency from the stable CLI.
  • Use importlib.metadata for package version lookup when available.
  • Keep pkg_resources as a late fallback for older Python versions without importlib.metadata.
  • Add regression coverage for the CLI version fallback behavior.

Validation:

  • git diff --check HEAD~1..HEAD
  • Not run locally: test suite, tox, linter, build/install check, CLI runtime check

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