Skip to content

Commit

Permalink
Rename template info key names in cookiecutter context
Browse files Browse the repository at this point in the history
- In cookiecutter>=2.2.0, the template key in context has special
  meaning for nested templates and must be renamed.
  • Loading branch information
rmartin16 authored and Cheukting committed Oct 16, 2023
1 parent 1a1b8c9 commit ac726aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"unittest"
],
"briefcase_version": "Unknown",
"template": "Not provided",
"branch": "Not provided",
"template_source": "Not provided",
"template_branch": "Not provided",
"_extensions": [
"briefcase.integrations.cookiecutter.TOMLEscape"
]
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.app_name }}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This project was generated with {{ cookiecutter.briefcase_version }} using template: {{ cookiecutter.template }}@{{ cookiecutter.branch }}
# This project was generated with {{ cookiecutter.briefcase_version }} using template: {{ cookiecutter.template_source }}@{{ cookiecutter.template_branch }}
[tool.briefcase]
project_name = "{{ cookiecutter.project_name|escape_toml }}"
bundle = "{{ cookiecutter.bundle }}"
Expand Down

0 comments on commit ac726aa

Please sign in to comment.