Skip to content

fix: remove pkg_resources asset lookup - #28

Draft
Mirochill wants to merge 1 commit into
thclark:mainfrom
Mirochill:fix-26-drop-pkg-resources
Draft

fix: remove pkg_resources asset lookup#28
Mirochill wants to merge 1 commit into
thclark:mainfrom
Mirochill:fix-26-drop-pkg-resources

Conversation

@Mirochill

@Mirochill Mirochill commented May 22, 2026

Copy link
Copy Markdown

Summary

  • remove the pkg_resources.resource_filename import from sphinx_charts.charts
  • resolve bundled JS/CSS assets relative to the package file before copying them into _static/sphinx_charts

Fixes #26

I opened this against main, the default branch; happy to retarget if a version branch is preferred.

Validation

  • git diff --check HEAD~1..HEAD
  • rg -n 'pkg_resources|resource_filename|get_distribution' . (no matches)
  • Not run locally

Resolve bundled Sphinx asset paths relative to charts.py instead of using pkg_resources.resource_filename. The assets are packaged inside sphinx_charts, so this keeps the existing copy flow without adding a compatibility backport for older supported Python versions.
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.

Use of pkg_resources is deprecated

1 participant