← Back to Pull requests

Minimal fix to Briefcase configurations to silence warnings #4776

Open
jkingok opened this pull request with 7156 lines diff across 78 files
View on GitHub
jkingok jkingok commented on Oct 14, 2026 06:05 UTC
Author

<!--- Describe your changes in detail -->
Various project_names in Toga had spaces in them, I have translated these to _ so they can meet PEP 621 and be automatically normalised by Briefcase.
<!--- What problem does this change solve? -->
Briefcase is now warning about strictly non-compliant with PEP 621 project_name values.
<!--- If this PR relates to an issue, include Refs #XXX or Fixes #XXX -->

There is a better way for this and I note that there isn't a uniform convention or structure to these names in the examples directory but that would take further thought and consideration. There are some obvious ones. There are some folder names that deserve renaming but I'm aware of some binding relationships with for example examples_overview.

PR Checklist:


<!--- Go over all the following points, and put an x in all the boxes that apply. -->
  • [X] I will abide by the BeeWare Code of Conduct

  • [X] I have read and have followed the [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) file

  • This PR was generated or assisted using an AI tool

  • <!-- update or delete the next line to reflect your usage -->

    Diff: 7156 lines (+6689 / -467) across 78 files Reviewer: freakboy3742 Review duration: 7713m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.95) × (1 − Review Confidence (0.73)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.95 · 7156 lines diff across 78 files
    0.95
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.50 · 4 substantive comment(s)
    0.50
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    73%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Sensitive Paths sensitive_paths
    0.095
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    6 items
    freakboy3742 freakboy3742 requested changes on Oct 14, 2026 06:40 UTC
    Changes Requested Reviewer

    Good catch - thanks for the update.

    In terms of the specific direction of the fix: the new behaviour of the wizard is to use the app name as the project name, so that's what we should converge on here - "testbed", not "Toga_Testbed", table, not Table_Demo.

    jkingok jkingok commented on Oct 14, 2026 06:42 UTC
    Author

    Excellent will do

    jkingok jkingok commented on Oct 15, 2026 09:01 UTC
    Author

    Here's where this is at as of now:

    I decided to go all-in on the examples folder and clean things up. It looks to me that because of the lack of a briefcase migrate option to a new template, these apps have significantly lagged behind what might be needed especially where some versions of things were pinned.

    Process applied was I got briefcase to generate me a new template and then I manually applied that to each folder, taking care to look out for special cases, including customwidget, screenshot, switch, positron, examples_overview.

    The briefcase warnings are silenced and I think I've been sensible with the naming convention. I did rename some folders with trepidation because of examples_overview and other moving parts, but it just reads the directory, nothing hardcoded.

    All apps launch with briefcase dev on macOS (except for the Qt variants, obviously). I should test with another platform, I'm supposed to have them all on here...

    jkingok jkingok commented on Oct 15, 2026 09:04 UTC
    Author

    Examples might need to be better linked to documentation, and then they'll need a platform support table...

    jkingok jkingok commented on Oct 15, 2026 09:06 UTC
    Author

    It's slow to build and run all of the examples. Given that Briefcase supports multiple apps it might be easier to have a mega-file and then it would only need to grab all of the dependencies once? (Actually I'm not sure if that's true...)

    Reviewers
    Assignees
    jkingok jkingok
    Labels
    risk: low confidence: 73.3% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 94.7% (HIGH) · Higher = larger blast radius
    94.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 73.3% · Lower = rushed or shallow review
    73.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.3% · Safe to merge
    25.3%
    Repository