Skip to content

Avoid pkg_resources for bundled SQL resources#95

Draft
Mirochill wants to merge 1 commit into
djrobstep:masterfrom
Mirochill:fix-91-remove-pkg-resources
Draft

Avoid pkg_resources for bundled SQL resources#95
Mirochill wants to merge 1 commit into
djrobstep:masterfrom
Mirochill:fix-91-remove-pkg-resources

Conversation

@Mirochill

@Mirochill Mirochill commented May 23, 2026

Copy link
Copy Markdown

Summary

  • replace pkg_resources.resource_stream() with a small package-relative file lookup for bundled SQL resources
  • remove the implicit runtime dependency on pkg_resources / setuptools

Fixes #91.

Validation

  • Not run locally
  • Remote CircleCI: lint fails while installing the pre-commit hook environment with a Poetry metadata error for tool.poetry.extras.pipfile_deprecated_finder[2]; build-pg10 through build-pg14 pass formatting, then fail in tests/test_all.py::test_weird_names during sqlbag.temporary_database() setup with SQLAlchemy ArgumentError

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.

Missing dependency for py3.12 (pkg_resources / setuptools)

1 participant