-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Console app on convert #169
Console app on convert #169
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two notes (with possible corrections inline):
- Is the attribute name (as rendered in the template) correct?
- Should this be a string, or a boolean? The problem is that
"False"
will evaluate as true.
cookiecutter.json
Outdated
@@ -28,6 +28,7 @@ | |||
], | |||
"app_source": "", | |||
"app_start_source": "", | |||
"console_app": "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"console_app": "", | |
"console_app": false, |
@@ -19,6 +19,9 @@ sources = [ | |||
test_sources = [ | |||
"{{ cookiecutter.test_source_dir }}", | |||
] | |||
{% if cookiecutter.console_app %} | |||
console.app = "{{cookiecutter.console_app}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.app = "{{cookiecutter.console_app}}" | |
console_app = {{ cookiecutter.console_app }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the if statement should stay to avoid clash between new
and convert
commands, new
command uses pyproject_table_briefcase_app_extra_content
attribute while convert
command will use console_app
attribute, if we do not use if statement we can have console_app
statement twice in pyproject.toml
, or we can refactor new
command to use this attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you've misunderstood the suggestion I'm making here. I agree that the if statement should be retained; the suggestion is that console.app
(period, rather than underscore) is the wrong key to use, and the value shouldn't be quoted.
b3509b6
to
1fefb9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - this looks great!
PR Checklist:
to add console_app in template
Refs beeware/briefcase#1900 beeware/briefcase#2089