From: Wang Mingyu < wangmy@fujitsu.com>
To: openembedded-core@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [OE-core] [PATCH] python3-spdx-python-model: upgrade 0.0.4 -> 0.0.5
Date: Wed, 22 Apr 2026 18:36:25 +0800 [thread overview]
Message-ID: <20260422103626.817-2-wangmy@fujitsu.com> (raw)
In-Reply-To: <20260422103626.817-1-wangmy@fujitsu.com>
From: Wang Mingyu <wangmy@fujitsu.com>
0001-generate-bindings-allow-to-use-local-files.patch
removed since it's included in 0.0.5
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
...te-bindings-allow-to-use-local-files.patch | 58 -------------------
....bb => python3-spdx-python-model_0.0.5.bb} | 3 +-
2 files changed, 1 insertion(+), 60 deletions(-)
delete mode 100644 meta/recipes-devtools/python/python3-spdx-python-model/0001-generate-bindings-allow-to-use-local-files.patch
rename meta/recipes-devtools/python/{python3-spdx-python-model_0.0.4.bb => python3-spdx-python-model_0.0.5.bb} (89%)
diff --git a/meta/recipes-devtools/python/python3-spdx-python-model/0001-generate-bindings-allow-to-use-local-files.patch b/meta/recipes-devtools/python/python3-spdx-python-model/0001-generate-bindings-allow-to-use-local-files.patch
deleted file mode 100644
index ec24d7beb3..0000000000
--- a/meta/recipes-devtools/python/python3-spdx-python-model/0001-generate-bindings-allow-to-use-local-files.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 9fb565a0a70c6985fa1efde13cfe7fb4851588ce Mon Sep 17 00:00:00 2001
-From: Benjamin Robin <benjamin.robin@bootlin.com>
-Date: Tue, 24 Feb 2026 10:59:25 +0100
-Subject: [PATCH] generate-bindings: allow to use local files
-
-shacl2code needs to download the following URLs during build time:
- - https://spdx.org/rdf/3.0.1/spdx-model.ttl
- - https://spdx.org/rdf/3.0.1/spdx-json-serialize-annotations.ttl
- - https://spdx.org/rdf/3.0.1/spdx-context.jsonld
-
-There are a lot of package build tools that do not allow to download
-a file during the build. So provide a way to use local file:
-If the environment variable SHACL2CODE_SPDX_DIR is defined, load
-the SPDX model and SPDX context from the directory specified by this
-environment variable.
-
-Upstream-Status: Submitted [https://github.com/spdx/spdx-python-model/pull/19]
-
-Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
----
- gen/generate-bindings | 22 ++++++++++++++++------
- 1 file changed, 16 insertions(+), 6 deletions(-)
-
-diff --git a/gen/generate-bindings b/gen/generate-bindings
-index b963c55a3bc9..bc7041ee3bb9 100755
---- a/gen/generate-bindings
-+++ b/gen/generate-bindings
-@@ -14,12 +14,22 @@ echo "# Import all versions" > __init__.py
- for v in $SPDX_VERSIONS; do
- MODNAME="v$(echo "$v" | sed 's/[^a-zA-Z0-9_]/_/g')"
-
-- shacl2code generate --input https://spdx.org/rdf/$v/spdx-model.ttl \
-- --input https://spdx.org/rdf/$v/spdx-json-serialize-annotations.ttl \
-- --context https://spdx.org/rdf/$v/spdx-context.jsonld \
-- --license Apache-2.0 \
-- python \
-- -o "$MODNAME.py"
-+ if [ -n "${SHACL2CODE_SPDX_DIR}" ] && [ -d "${SHACL2CODE_SPDX_DIR}/$v" ]
-+ then
-+ shacl2code generate --input "file://${SHACL2CODE_SPDX_DIR}/$v/spdx-model.ttl" \
-+ --input "file://${SHACL2CODE_SPDX_DIR}/$v/spdx-json-serialize-annotations.ttl" \
-+ --context-url "file://${SHACL2CODE_SPDX_DIR}/$v/spdx-context.jsonld" https://spdx.org/rdf/$v/spdx-context.jsonld \
-+ --license Apache-2.0 \
-+ python \
-+ -o "$MODNAME.py"
-+ else
-+ shacl2code generate --input https://spdx.org/rdf/$v/spdx-model.ttl \
-+ --input https://spdx.org/rdf/$v/spdx-json-serialize-annotations.ttl \
-+ --context https://spdx.org/rdf/$v/spdx-context.jsonld \
-+ --license Apache-2.0 \
-+ python \
-+ -o "$MODNAME.py"
-+ fi
-
- echo "from . import $MODNAME" >> __init__.py
- done
---
-2.53.0
diff --git a/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb b/meta/recipes-devtools/python/python3-spdx-python-model_0.0.5.bb
similarity index 89%
rename from meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb
rename to meta/recipes-devtools/python/python3-spdx-python-model_0.0.5.bb
index 00c3b3913c..c77bdffada 100644
--- a/meta/recipes-devtools/python/python3-spdx-python-model_0.0.4.bb
+++ b/meta/recipes-devtools/python/python3-spdx-python-model_0.0.5.bb
@@ -5,13 +5,12 @@ LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
PYPI_PACKAGE = "spdx_python_model"
-SRC_URI[sha256sum] = "bdec725398babcbdd4bcb7c16cf23497d06a48d0ef3ea1edb19a3b0d431ab8c1"
+SRC_URI[sha256sum] = "4bcf7c6e5e2e8f0b787ed4eb8fb519e2ed776e820cb6d9eb93e44e98eb92ca2d"
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-generate-bindings-allow-to-use-local-files.patch \
"
SRC_URI[spdx1.sha256sum] = "c72b0928f094c83e5c127784edb1ebca2af74a104fcacc007c332b23cbc788bd"
--
2.43.0
next prev parent reply other threads:[~2026-04-22 10:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 10:36 [OE-core] [PATCH] python3-cryptography(-vectors): upgrade 46.0.5 -> 46.0.7 Wang Mingyu
2026-04-22 10:36 ` Wang Mingyu [this message]
2026-04-22 10:36 ` [OE-core] [PATCH v2] u-boot: upgrade 2026.01 -> 2026.04 Wang Mingyu
2026-04-22 11:07 ` Fabio Estevam
2026-04-22 11:53 ` Paul Barker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260422103626.817-2-wangmy@fujitsu.com \
--to=wangmy@fujitsu.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox