From 82645bb57f19ddedefe89a65f29bbf05a5026493 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 27 May 2024 13:38:42 +0800 Subject: [PATCH 1/2] Use a PEP621 license definition. --- {{ cookiecutter.app_name }}/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{ cookiecutter.app_name }}/pyproject.toml b/{{ cookiecutter.app_name }}/pyproject.toml index 595f3ce..09cf325 100644 --- a/{{ cookiecutter.app_name }}/pyproject.toml +++ b/{{ cookiecutter.app_name }}/pyproject.toml @@ -4,7 +4,7 @@ project_name = "{{ cookiecutter.project_name|escape_toml }}" bundle = "{{ cookiecutter.bundle }}" version = "0.0.1" url = "{{ cookiecutter.url }}" -license = "{{ cookiecutter.license }}" +license.file = "LICENSE" author = "{{ cookiecutter.author|escape_toml }}" author_email = "{{ cookiecutter.author_email }}" {{ cookiecutter.pyproject_table_briefcase_extra_content }} From 20ff3276a5e429d32b3629b2810cf3f40c23d3a0 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 27 May 2024 13:48:14 +0800 Subject: [PATCH 2/2] Update tests to expect new license format. --- tests/test_app_template.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_app_template.py b/tests/test_app_template.py index 5db8d2a..0ecea59 100644 --- a/tests/test_app_template.py +++ b/tests/test_app_template.py @@ -57,7 +57,7 @@ def main(): bundle = "com.example" version = "0.0.1" url = "https://example.com" -license = "BSD license" +license.file = "LICENSE" author = "Jane Developer" author_email = "jane@example.com" @@ -107,7 +107,7 @@ def main(): bundle = "com.example" version = "0.0.1" url = "https://example.com" -license = "BSD license" +license.file = "LICENSE" author = "Jane Developer" author_email = "jane@example.com" @@ -236,7 +236,7 @@ def main(): bundle = "com.example" version = "0.0.1" url = "https://example.com" -license = "BSD license" +license.file = "LICENSE" author = "Jane Developer" author_email = "jane@example.com" @@ -340,7 +340,7 @@ def main(): bundle = "com.example" version = "0.0.1" url = "https://example.com" -license = "BSD license" +license.file = "LICENSE" author = "Jane Developer" author_email = "jane@example.com" field = "pyproject_table_briefcase_extra_content"