All of lore.kernel.org
 help / color / mirror / Atom feed
From: wangmy@fujitsu.com
To: openembedded-core@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [OE-core] [PATCH 10/22] python3-jinja2: upgrade 3.1.4 -> 3.1.5
Date: Mon, 23 Dec 2024 17:10:53 +0800	[thread overview]
Message-ID: <1734945065-4373-10-git-send-email-wangmy@fujitsu.com> (raw)
In-Reply-To: <1734945065-4373-1-git-send-email-wangmy@fujitsu.com>

From: Wang Mingyu <wangmy@fujitsu.com>

0001-python-module-do-not-manipulate-the-environment-when.patch
removed since it's included in 3.1.5

Changelog:
 https://jinja.palletsprojects.com/en/stable/changes/

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../python/python3-jinja2/fix-3.13.patch      | 87 -------------------
 ...inja2_3.1.4.bb => python3-jinja2_3.1.5.bb} |  6 +-
 2 files changed, 1 insertion(+), 92 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-jinja2/fix-3.13.patch
 rename meta/recipes-devtools/python/{python3-jinja2_3.1.4.bb => python3-jinja2_3.1.5.bb} (85%)

diff --git a/meta/recipes-devtools/python/python3-jinja2/fix-3.13.patch b/meta/recipes-devtools/python/python3-jinja2/fix-3.13.patch
deleted file mode 100644
index 34ecd15176..0000000000
--- a/meta/recipes-devtools/python/python3-jinja2/fix-3.13.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From cf6ba7732b49ab4637aa747186cf1d1572688584 Mon Sep 17 00:00:00 2001
-From: Thomas Grainger <tagrain@gmail.com>
-Date: Mon, 13 May 2024 18:02:35 +0100
-Subject: [PATCH] fix test_package_zip_list on 3.13
-
-Upstream-Status: Backport [https://github.com/pallets/jinja/pull/1979]
-Signed-off-by: Alexander Kanavin <alex@linutronix.de>
----
- src/jinja2/loaders.py | 32 ++++++++++++++++++++++++++------
- tests/test_loader.py  |  4 ++--
- 2 files changed, 28 insertions(+), 8 deletions(-)
-
-diff --git a/src/jinja2/loaders.py b/src/jinja2/loaders.py
-index 9eaf647..8c2c86c 100644
---- a/src/jinja2/loaders.py
-+++ b/src/jinja2/loaders.py
-@@ -238,6 +238,30 @@ class FileSystemLoader(BaseLoader):
-         return sorted(found)
- 
- 
-+if sys.version_info >= (3, 13):
-+
-+    def _get_zipimporter_files(z: t.Any) -> t.Dict[str, object]:
-+        try:
-+            get_files = z._get_files
-+        except AttributeError as e:
-+            raise TypeError(
-+                "This zip import does not have the required"
-+                " metadata to list templates."
-+            ) from e
-+        return get_files()
-+else:
-+
-+    def _get_zipimporter_files(z: t.Any) -> t.Dict[str, object]:
-+        try:
-+            files = z._files
-+        except AttributeError as e:
-+            raise TypeError(
-+                "This zip import does not have the required"
-+                " metadata to list templates."
-+            ) from e
-+        return files  # type: ignore[no-any-return]
-+
-+
- class PackageLoader(BaseLoader):
-     """Load templates from a directory in a Python package.
- 
-@@ -382,11 +406,7 @@ class PackageLoader(BaseLoader):
-                     for name in filenames
-                 )
-         else:
--            if not hasattr(self._loader, "_files"):
--                raise TypeError(
--                    "This zip import does not have the required"
--                    " metadata to list templates."
--                )
-+            files = _get_zipimporter_files(self._loader)
- 
-             # Package is a zip file.
-             prefix = (
-@@ -395,7 +415,7 @@ class PackageLoader(BaseLoader):
-             )
-             offset = len(prefix)
- 
--            for name in self._loader._files.keys():
-+            for name in files:
-                 # Find names under the templates directory that aren't directories.
-                 if name.startswith(prefix) and name[-1] != os.path.sep:
-                     results.append(name[offset:].replace(os.path.sep, "/"))
-diff --git a/tests/test_loader.py b/tests/test_loader.py
-index 77d686e..e0683e4 100644
---- a/tests/test_loader.py
-+++ b/tests/test_loader.py
-@@ -364,8 +364,8 @@ def test_package_zip_source(package_zip_loader, template, expect):
- 
- 
- @pytest.mark.xfail(
--    platform.python_implementation() == "PyPy",
--    reason="PyPy's zipimporter doesn't have a '_files' attribute.",
-+    sys.implementation.name == "pypy",
-+    reason="zipimporter doesn't have a '_files' attribute",
-     raises=TypeError,
- )
- def test_package_zip_list(package_zip_loader):
--- 
-2.39.5
-
diff --git a/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb b/meta/recipes-devtools/python/python3-jinja2_3.1.5.bb
similarity index 85%
rename from meta/recipes-devtools/python/python3-jinja2_3.1.4.bb
rename to meta/recipes-devtools/python/python3-jinja2_3.1.5.bb
index 84c40796c6..2a9e361b6e 100644
--- a/meta/recipes-devtools/python/python3-jinja2_3.1.4.bb
+++ b/meta/recipes-devtools/python/python3-jinja2_3.1.5.bb
@@ -4,7 +4,7 @@ HOMEPAGE = "https://pypi.org/project/Jinja2/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dc88300786f1c214c1e9827a5229462"
 
-SRC_URI[sha256sum] = "4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"
+SRC_URI[sha256sum] = "8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"
 
 PYPI_PACKAGE = "jinja2"
 
@@ -14,10 +14,6 @@ CLEANBROKEN = "1"
 
 inherit pypi python_flit_core ptest-python-pytest
 
-SRC_URI += " \
-	file://fix-3.13.patch \
-"
-
 RDEPENDS:${PN}-ptest += " \
     python3-unixadmin \
 "
-- 
2.43.0



  parent reply	other threads:[~2024-12-23  9:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23  9:10 [OE-core] [PATCH 01/22] diffoscope: upgrade 283 -> 284 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 02/22] libportal: upgrade 0.8.1 -> 0.9.0 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 03/22] libwebp: upgrade 1.4.0 -> 1.5.0 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 04/22] llvm: upgrade 19.1.5 -> 19.1.6 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 05/22] meson: upgrade 1.6.0 -> 1.6.1 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 06/22] python3-certifi: upgrade 2024.8.30 -> 2024.12.14 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 07/22] python3-dbusmock: upgrade 0.32.2 -> 0.33.0 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 08/22] python3-hatchling: upgrade 1.26.3 -> 1.27.0 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 09/22] python3-hypothesis: upgrade 6.119.4 -> 6.122.6 wangmy
2024-12-23  9:10 ` wangmy [this message]
2024-12-24  9:12   ` [OE-core] [PATCH 10/22] python3-jinja2: upgrade 3.1.4 -> 3.1.5 Mathieu Dubois-Briand
2024-12-23  9:10 ` [OE-core] [PATCH 11/22] python3-mako: upgrade 1.3.6 -> 1.3.8 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 12/22] python3-maturin: upgrade 1.7.4 -> 1.7.8 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 13/22] python3-psutil: upgrade 6.1.0 -> 6.1.1 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 14/22] python3-pyopenssl: upgrade 24.2.1 -> 24.3.0 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 15/22] python3-pytest-subtests: upgrade 0.13.1 -> 0.14.1 wangmy
2024-12-23  9:10 ` [OE-core] [PATCH 16/22] python3-pytest: upgrade 8.3.3 -> 8.3.4 wangmy
2024-12-23  9:11 ` [OE-core] [PATCH 17/22] python3-rpds-py: upgrade 0.21.0 -> 0.22.3 wangmy
2024-12-23  9:11 ` [OE-core] [PATCH 18/22] python3-six: upgrade 1.16.0 -> 1.17.0 wangmy
2024-12-23  9:11 ` [OE-core] [PATCH 19/22] repo: upgrade 2.49.3 -> 2.50.1 wangmy
2024-12-23  9:11 ` [OE-core] [PATCH 20/22] wayland-protocols: upgrade 1.38 -> 1.39 wangmy
2024-12-23  9:11 ` [OE-core] [PATCH 21/22] webkitgtk: upgrade 2.46.4 -> 2.46.5 wangmy
2024-12-30 10:44   ` Thomas Perrot
2024-12-23  9:11 ` [OE-core] [PATCH 22/22] xserver-xorg: upgrade 21.1.14 -> 21.1.15 wangmy

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=1734945065-4373-10-git-send-email-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.