Keep configuration lean: remove license-files#285
Keep configuration lean: remove license-files#285DimitriPapadopoulos wants to merge 1 commit intocbrnr:mainfrom
license-files#285Conversation
Most build backends will pick up all `LICEN[CS]E*` files. That's of course true of setuptools: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files
|
The current recommendation is to have these two entries: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files |
It's a misunderstanding, the above sentence does not mean that the two fields should always be present. Instead, it means that only these two fields can be used to provide licensing information. See section Creating a LICENSE and notice the “If”:
Obviously,
|
|
Thanks, I didn't know that. We specifically added |
|
PEP 639 is recent enough for some backends to still have issues with I haven't tested
I would therefore expect it to have appropriate defaults for How about we wait until the switch to |
|
I'm pretty sure the I think it's also more explicit, and having the two fields doesn't hurt either. If we remove it now I can almost guarantee that I'll forget to add it when switching to |
|
I've tested $ cat pyproject.toml
[build-system]
requires = ["uv_build>=0.8.4"]
build-backend = "uv_build"
[project]
name = "foo"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
$
$ uv build
Building source distribution...
Building wheel from source distribution...
Successfully built dist/foo-0.1.0.tar.gz
Successfully built dist/foo-0.1.0-py3-none-any.whl
$
$ tar tf dist/foo-0.1.0.tar.gz
foo-0.1.0/PKG-INFO
foo-0.1.0/
foo-0.1.0/pyproject.toml
foo-0.1.0/src
foo-0.1.0/src/foo
foo-0.1.0/src/foo/__init__.py
$ |
Do you think this is worth reporting? Or rather, asking if they want to add some defaults? I'm not sure, I kind of prefer to be explicit, so without an entry in |
MostAll build backends (I know of) will pick up allLICEN[CS]E*files.That's of course true of setuptools:
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files