Skip to content

Replace pkg_resources usage - #117

Draft
Mirochill wants to merge 1 commit into
IMMM-SFA:mainfrom
Mirochill:fix-116-drop-pkg-resources
Draft

Replace pkg_resources usage#117
Mirochill wants to merge 1 commit into
IMMM-SFA:mainfrom
Mirochill:fix-116-drop-pkg-resources

Conversation

@Mirochill

@Mirochill Mirochill commented May 22, 2026

Copy link
Copy Markdown

Purpose:

Remove the remaining runtime and test uses of deprecated pkg_resources APIs reported in #115 and #116.

New version:

No version change proposed.

Related:

N/A

Resolved:

Resolve #115
Resolve #116

Incorporated:

N/A

Comments:

This replaces package-data path lookup with importlib.resources.files() and distribution-version lookup with importlib.metadata.version(). It also updates the related test references and removes an unused pkg_resources import in stage.py.

Not run locally.
Static validation performed:

  • git diff --check HEAD~1..HEAD
  • rg -n pkg_resources|get_distribution|resource_filename|resource_dir cerf tests pyproject.toml docs/source README.md (no matches)

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.

BUG: Depreciation Notice of pkg_resources BUG: pkg_resources is depreciated for Python 3.12

1 participant