From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CADD51581E7 for ; Thu, 25 Apr 2024 21:49:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0513DE2A1C; Thu, 25 Apr 2024 21:49:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C6F5AE2A18 for ; Thu, 25 Apr 2024 21:49:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 884FA343162 for ; Thu, 25 Apr 2024 21:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 62C721625 for ; Thu, 25 Apr 2024 21:49:04 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1714072060.85b6342060a136c6d54ddf6b8295229ad1454715.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/flask-restx/files/, dev-python/flask-restx/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/flask-restx/files/flask-restx-avoid-importlib_resources.patch dev-python/flask-restx/flask-restx-1.3.0.ebuild X-VCS-Directories: dev-python/flask-restx/files/ dev-python/flask-restx/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 85b6342060a136c6d54ddf6b8295229ad1454715 X-VCS-Branch: master Date: Thu, 25 Apr 2024 21:49:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: edb3f03c-fb1a-45f3-ba12-bc4a3e379e9b X-Archives-Hash: 3cdcdd5dc29f650b9fb8bee8b8a50445 commit: 85b6342060a136c6d54ddf6b8295229ad1454715 Author: David Roman gmail com> AuthorDate: Thu Apr 25 19:07:05 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Thu Apr 25 19:07:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=85b63420 dev-python/flask-restx: avoid importlib-resources dep Signed-off-by: David Roman gmail.com> .../flask-restx-avoid-importlib_resources.patch | 22 ++++++++++++++++++++++ dev-python/flask-restx/flask-restx-1.3.0.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/dev-python/flask-restx/files/flask-restx-avoid-importlib_resources.patch b/dev-python/flask-restx/files/flask-restx-avoid-importlib_resources.patch new file mode 100644 index 0000000000..cda8a054f7 --- /dev/null +++ b/dev-python/flask-restx/files/flask-restx-avoid-importlib_resources.patch @@ -0,0 +1,22 @@ +diff --git a/flask_restx/schemas/__init__.py b/flask_restx/schemas/__init__.py +index 27b9866..4369737 100644 +--- a/flask_restx/schemas/__init__.py ++++ b/flask_restx/schemas/__init__.py +@@ -7,7 +7,7 @@ and allows to validate specs against them. + import io + import json + +-import importlib_resources ++import importlib.resources + + from collections.abc import Mapping + from jsonschema import Draft4Validator +@@ -57,7 +57,7 @@ class LazySchema(Mapping): + + def _load(self): + if not self._schema: +- ref = importlib_resources.files(__name__) / self.filename ++ ref = importlib.resources.files(__name__) / self.filename + + with io.open(ref) as infile: + self._schema = json.load(infile) diff --git a/dev-python/flask-restx/flask-restx-1.3.0.ebuild b/dev-python/flask-restx/flask-restx-1.3.0.ebuild index 51c5db5d93..3acfd76212 100644 --- a/dev-python/flask-restx/flask-restx-1.3.0.ebuild +++ b/dev-python/flask-restx/flask-restx-1.3.0.ebuild @@ -23,7 +23,6 @@ RDEPEND=" dev-python/pytz[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-python/werkzeug[${PYTHON_USEDEP}] - dev-python/importlib-resources[${PYTHON_USEDEP}] " DEPEND="${RDEPEND} @@ -36,6 +35,8 @@ DEPEND="${RDEPEND} ) " +PATCHES=( "${FILESDIR}/${PN}-avoid-importlib_resources.patch" ) + distutils_enable_tests pytest python_test() {