Skip to content

Replace pkg_resources usage - #123

Closed
Mirochill wants to merge 1 commit into
NCAR:mainfrom
Mirochill:fix-122-remove-pkg-resources
Closed

Mirochill wants to merge 1 commit into
NCAR:mainfrom
Mirochill:fix-122-remove-pkg-resources

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • replace the import-time version lookup with importlib.metadata.version(ncar-jobqueue)
  • replace pkg_resources.resource_filename() with importlib.resources.files() / as_file() for the packaged YAML config
  • remove direct pkg_resources imports from the package

Fixes #122.

Validation

  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD
  • rg -n pkg_resources|get_distribution|DistributionNotFound|resource_filename .
  • Not run locally

@mnlevy1981

Copy link
Copy Markdown
Contributor

Fixed in #125 instead

@mnlevy1981 mnlevy1981 closed this Jun 16, 2026
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.

ncar-jobqueue still relies on deprecated "pkg_resources" package

2 participants