Skip to content

Commit d678906

Browse files
authored
fix: don't set license.file (#512)
* fix: don't set license.file Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * Update {{cookiecutter.project_name}}/pyproject.toml * docs: mention issue with flit-core Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 8bc49ba commit d678906

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/_includes/pyproject.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ The metadata is specified in a [standards-based][metadata] format:
77
name = "package"
88
description = "A great package."
99
readme = "README.md"
10-
license.file = "LICENSE"
1110
authors = [
1211
{ name = "My Name", email = "me@email.com" },
1312
]

docs/pages/guides/packaging_simple.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ This is tool specific.
189189
> unzip -l dist/*.whl
190190
> ```
191191
192+
{: .note-title }
193+
194+
> Flit _requires_ `license.file` to be set in your `[project]` section to ensure
195+
> it finds the license file.
196+
192197
<!-- prettier-ignore-start -->
193198
194199
[flit]: https://flit.readthedocs.io

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ maintainers = [
142142
{%- endif %}
143143
description = "{{ cookiecutter.project_short_description }}"
144144
readme = "README.md"
145+
{%- if cookiecutter.backend in ['flit', 'mesonpy'] %}
145146
license.file = "LICENSE"
147+
{%- endif %}
146148
requires-python = ">=3.9"
147149
classifiers = [
148150
"Development Status :: 1 - Planning",

0 commit comments

Comments
 (0)