Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 1/4] scripts:recipetool:create_buildsys_python: fix license note
@ 2023-10-19  7:36 Julien Stephan
  2023-10-19  7:36 ` [PATCH v2 2/4] scripts:recipetool:create_buildsys_python: prefix created recipes with python3- Julien Stephan
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Julien Stephan @ 2023-10-19  7:36 UTC (permalink / raw)
  To: openembedded-core; +Cc: Julien Stephan

License field of setup is not always standardized, so we usually use the
classifier to determine the correct license format to use in the recipe.

A warning note is added above the LICENSE field of the create recipe
in case a license is provided in setup. But when the plugin is called,
"LICENSE =" is not yet present so we can never display this note.
Replace the "LICENSE =" condition with "##LICENSE_PLACEHOLDER##"
to actually be able to display the note message

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
---
 scripts/lib/recipetool/create_buildsys_python.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index 92468b22546..321d0ba257d 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -254,7 +254,7 @@ class PythonRecipeHandler(RecipeHandler):
 
         if license_str:
             for i, line in enumerate(lines_before):
-                if line.startswith('LICENSE = '):
+                if line.startswith('##LICENSE_PLACEHOLDER##'):
                     lines_before.insert(i, '# NOTE: License in setup.py/PKGINFO is: %s' % license_str)
                     break
 
-- 
2.42.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-10-20 14:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19  7:36 [PATCH v2 1/4] scripts:recipetool:create_buildsys_python: fix license note Julien Stephan
2023-10-19  7:36 ` [PATCH v2 2/4] scripts:recipetool:create_buildsys_python: prefix created recipes with python3- Julien Stephan
2023-10-19  7:36 ` [PATCH v2 3/4] scripts:recipetool:create_buildsys_python: refactor code for futur PEP517 addition Julien Stephan
2023-10-20  6:01   ` [OE-core] " Alexandre Belloni
2023-10-20 10:33     ` Julien Stephan
2023-10-19  7:36 ` [PATCH v2 4/4] scripts:recipetool:create_buildsys_python: add PEP517 support Julien Stephan
2023-10-19 13:49   ` [OE-core] " Alexandre Belloni
2023-10-19 14:16     ` Tim Orling
2023-10-19 18:20     ` Julien Stephan
2023-10-19 18:34       ` Alexandre Belloni
2023-10-20 12:57         ` Julien Stephan
2023-10-20 14:04           ` Richard Purdie
2023-10-20 14:49             ` Julien Stephan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox