meta-openembedded/meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch
Khem Raj 0434d3dad6
python3-pylint: Upgrade to 4.0.3 release
Forward patches to avoid fuzz, no functional change

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-18 16:24:12 -08:00

44 lines
1.4 KiB
Diff

From b559c86a8e6efb7f2081c4aacf9ce1c552d60abb Mon Sep 17 00:00:00 2001
From: Leon Anavi <leon.anavi@konsulko.com>
Date: Thu, 20 Mar 2025 12:09:42 +0000
Subject: [PATCH] pyproject.toml: Keep tool.setuptools.license-files
Keep legacy license declaration and tool.setuptools.license-files
to avoid the following errors:
| ValueError: invalid pyproject.toml config: `project.license`.
| configuration error: `project.license` must be valid exactly by one definition (2 matches found):
| ValueError: invalid pyproject.toml config: `project`.
| configuration error: `project` must not contain {'license-files'} properties
Upstream-Status: Inappropriate
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
pyproject.toml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -8,8 +8,7 @@ name = "pylint"
description = "python code static checker"
readme = "README.rst"
keywords = [ "lint", "linter", "python", "static code analysis" ]
-license = "GPL-2.0-or-later"
-license-files = [ "LICENSE", "CONTRIBUTORS.txt" ]
+license = { text = "GPL-2.0-or-later" }
authors = [
{ name = "Python Code Quality Authority", email = "code-quality@python.org" },
]
@@ -105,6 +104,9 @@ test-min = [
"typing-extensions~=4.15",
]
+[tool.setuptools]
+license-files = [ "LICENSE", "CONTRIBUTORS.txt" ]
+
[tool.setuptools.packages.find]
include = [ "pylint*" ]