Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use AssetResolver internally #3750

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

use AssetResolver internally #3750

wants to merge 2 commits into from

Conversation

mmerickel
Copy link
Member

@mmerickel mmerickel commented Feb 7, 2024

  • abspath_from_asset_spec no longer uses pkg_resources directly
  • ManifestCacheBuster now uses AssetResolver instead of pkg_resources directly
  • rewrite static_view to use asset resolver

Changing the static_view is bw-incompat, and I'm not there yet with it being a good idea. I think it is - but hey.

The issue with AssetResolver in general is that it tries to import the package. This is bw-incompat. On previous versions, you could add_static_view('does_not_exist:', 'static') and it would work. You could then config.override_asset(to_override='does_not_exist:', override_with='something_that_exists:'). This change requires the initial does_not_exist package to be importable no matter what.

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.

None yet

1 participant