python3-spdx-python-model: : relax shacl2code version constraint
PATCH 1/1 python3-spdx-python-model: : relax shacl2code version constraint
From: Wang Mingyu <[email protected]>
shacl2code has been upgraded to 1.2.0, but spdx-python-model 0.0.6 still requires shacl2code==1.1.0. Temporarily relax the version constraint to allow shacl2code 1.2.0 until upstream updates their dependency requirements.
--- ...acl2code-dependency-to-support-1.2.0.patch | 28 +++++++++++++++++++ .../python/python3-spdx-python-model_0.0.6.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 45efed593eaed035dbcc9888d45e362cdbc6ec28 Mon Sep 17 00:00:00 2001 +From: Wang Mingyu <[email protected]> +Date: Fri, 28 Aug 2026 05:22:57 +0000 +Subject: [PATCH] Update shacl2code dependency to support 1.2.0 + +Upstream-Status: Inappropriate [needs proper upstream upgrade] + +Signed-off-by: Wang Mingyu <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 94b511c..6255f25 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -49,7 +49,7 @@ issues = "https://github.com/spdx/spdx-python-model/issues" + requires = [ + "hatchling >= 1.27.0", + "hatch-build-scripts >= 0.0.4", +- "shacl2code == 1.1.0", ++ "shacl2code == 1.2.0", + ] + build-backend = "hatchling.build" + +-- +2.43.0 +
meta/recipes-devtools/python/python3-spdx-python-model_0.0.6.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI += " \ https://spdx.org/rdf/3.0.1/spdx-context.jsonld;name=spdx1 \ https://spdx.org/rdf/3.0.1/spdx-json-serialize-annotations.ttl;name=spdx2 \ https://spdx.org/rdf/3.0.1/spdx-model.ttl;name=spdx3 \ + file://0001-Update-shacl2code-dependency-to-support-1.2.0.patch \ " SRC_URI[spdx1.sha256sum] = "c72b0928f094c83e5c127784edb1ebca2af74a104fcacc007c332b23cbc788bd"
Signature · 1 line
2.43.0
Quoted 20 lines · wangmy via lists.openembedded.org
From: Wang Mingyu <[email protected]>
shacl2code has been upgraded to 1.2.0, but spdx-python-model 0.0.6 still requires shacl2code==1.1.0. Temporarily relax the version constraint to allow shacl2code 1.2.0 until upstream updates their dependency requirements.
Signed-off-by Wang Mingyu <[email protected]>--- ...acl2code-dependency-to-support-1.2.0.patch | 28 +++++++++++++++++++ .../python/python3-spdx-python-model_0.0.6.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patchmeta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch new file +0
-0
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch line 6
Quoted 6 lines
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch new file +6
-0@@ -0,0 +1,28 @@ +From 45efed593eaed035dbcc9888d45e362cdbc6ec28 Mon Sep 17 00:00:00 2001 +From: Wang Mingyu <[email protected]> +Date: Fri, 28 Aug 2026 05:22:57 +0000 +Subject: [PATCH] Update shacl2code dependency to support 1.2.0 + +Upstream-Status: Inappropriate [needs proper upstream upgrade]
Is this really a valid Inappropriate reason? I feel that either python3-spdx-python-mode works well with this version and we should submit this patch upstream, or it doesn't and we shouldn't use this patch.
Github is done now, so I can't check bug entries. Did you open a discussion upstream?
Quoted 6 lines
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch new file +6
-0+ +Signed-off-by: Wang Mingyu <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) +
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch line 22
Quoted 10 lines
meta/recipes-devtools/python/python3-spdx-python-model/0001-Update-shacl2code-dependency-to-support-1.2.0.patch new file +10
-0+diff --git a/pyproject.toml b/pyproject.toml +index 94b511c..6255f25 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -49,7 +49,7 @@ issues = "https://github.com/spdx/spdx-python-model/issues" + requires = [ + "hatchling >= 1.27.0", + "hatch-build-scripts >= 0.0.4", +- "shacl2code == 1.1.0", ++ "shacl2code == 1.2.0",
Also, there is a shacl2code 1.3.2 now, so if possible, we should probably use
+- "shacl2code >= 1.1.0",
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com