Minimal fix to Briefcase configurations to silence warnings #4776
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.
Excellent will do
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...
Examples might need to be better linked to documentation, and then they'll need a platform support table...
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...)
freakboy3742
jkingok
<!--- 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
xin all the boxes that apply. --><!-- update or delete the next line to reflect your usage -->