Skip to content

Conversation

@AndreMiras
Copy link
Member

Move duplicated assemble_distribution() logic from service_only, webview, and _sdl_common bootstraps into the base Bootstrap class using the Template Method pattern.

  • Add _assemble_distribution_for_arch() hook for per-arch customization
  • SDL bootstrap overrides hook to skip distribute_aars()
  • service_only and webview now use base class directly
  • Qt bootstrap unchanged (single-arch constraint requires full override)
  • Update tests to mock base class instead of individual modules

@AndreMiras AndreMiras marked this pull request as draft December 6, 2025 18:05
@AndreMiras AndreMiras force-pushed the feature/bootstraps_refactoring branch from dc6fb4a to 5319a90 Compare December 6, 2025 19:00
@AndreMiras AndreMiras marked this pull request as ready for review December 6, 2025 19:01
Move duplicated assemble_distribution() logic from service_only,
webview, and _sdl_common bootstraps into the base Bootstrap class
using the Template Method pattern.

- Add _assemble_distribution_for_arch() hook for per-arch customization
- SDL bootstrap overrides hook to skip distribute_aars()
- service_only and webview now use base class directly
- Qt bootstrap unchanged (single-arch constraint requires full override)
- Update tests to mock base class instead of individual modules
@AndreMiras AndreMiras force-pushed the feature/bootstraps_refactoring branch from 5319a90 to 1f4a567 Compare December 7, 2025 13:31
@AndreMiras AndreMiras merged commit d467b7c into kivy:develop Dec 7, 2025
42 checks passed
@AndreMiras AndreMiras deleted the feature/bootstraps_refactoring branch December 7, 2025 17:29
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.

2 participants