Skip to content

Commit 9203d6d

Browse files
committed
Update license fields in pyproject.toml
Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
1 parent d924dca commit 9203d6d

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@ name = "{{ cookiecutter.project_slug }}"
33
dynamic = ["version"]
44
description = "{{ cookiecutter.project_description }}"
55
readme = "README.md"
6-
license = { file = "LICENSE" }
6+
license-files = ["LICENSE"]
7+
8+
{%- if cookiecutter.license == "Apache 2.0" %}
9+
license = "Apache-2.0"
10+
{%- elif cookiecutter.license == "AGPL v3" %}
11+
license = "AGPL-3.0-or-later"
12+
{%- elif cookiecutter.license == "Proprietary" %}
13+
license = "LicenseRef-Proprietary-License"
14+
{%- endif %}
15+
716
authors = [
817
{ name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}" },
918
]
1019
classifiers = [
1120
"Programming Language :: Python :: 3",
12-
{%- if cookiecutter.license == "Apache 2.0" %}
13-
"License :: OSI Approved :: Apache Software License",
14-
{%- elif cookiecutter.license == "AGPL v3" %}
15-
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
16-
{%- elif cookiecutter.license == "Proprietary" %}
17-
"License :: Other/Proprietary License",
18-
{%- endif %}
1921
]
2022
dependencies = []
2123
requires-python = ">=3.9"

0 commit comments

Comments
 (0)