Closed rmartin16 closed 1 month ago
Working on this at PyconUS 2024 sprints.
The supporting template pull request is https://github.com/beeware/briefcase-template/pull/125
Can we close this issue, or are some more changes required?
@mhsmith This also needs #1811, which is currently waiting for CI to complete.
Describe the bug
Several of the user inputs for the
briefcase new
command are inserted verbatim in to thepyproject.toml
. This TOML document uses double quotes to enclose these strings; therefore, if the user inputs contain double quotes, the TOML will be invalid.While entering text with double quotes in to the prompts wouldn't normally be expected, at least for some of the fields, such as name (perhaps for a quoted nickname) or the description, this character should be supported.
Steps to reproduce
briefcase new
Harald "Bluetooth" Gormsson
briefcase dev
in the projectExpected behavior
pyproject.toml
is valid.A similar tactic to https://github.com/beeware/briefcase-template/pull/66 seems reasonable.
Screenshots
No response
Environment
0.3.18.dev206+g38fbb22b.d20240422
Logs
Additional context
No response