Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flask-restx for openSUSE:Factory checked in at 2025-04-10 21:58:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flask-restx (Old) and /work/SRC/openSUSE:Factory/.python-flask-restx.new.1907 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flask-restx" Thu Apr 10 21:58:32 2025 rev:14 rq:1267933 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flask-restx/python-flask-restx.changes 2025-02-24 15:50:47.744342473 +0100 +++ /work/SRC/openSUSE:Factory/.python-flask-restx.new.1907/python-flask-restx.changes 2025-04-10 21:58:54.331740935 +0200 @@ -1,0 +2,7 @@ +Tue Apr 8 11:36:56 UTC 2025 - Ben Greiner <c...@bnavigator.de> + +- Remove importlib_resources from dependencies + * Add flask-restx-importlib.patch + * The project is dead, no use to send a patch upstream + +------------------------------------------------------------------- New: ---- flask-restx-importlib.patch BETA DEBUG BEGIN: New:- Remove importlib_resources from dependencies * Add flask-restx-importlib.patch * The project is dead, no use to send a patch upstream BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flask-restx.spec ++++++ --- /var/tmp/diff_new_pack.u9Frlk/_old 2025-04-10 21:58:54.819761315 +0200 +++ /var/tmp/diff_new_pack.u9Frlk/_new 2025-04-10 21:58:54.819761315 +0200 @@ -26,13 +26,14 @@ # PATCH-FIX-UPSTREAM https://github.com/python-restx/flask-restx/pull/622 Patch0: Replace-pytz-with-zoneinfo-datetime-timezone.patch Patch1: Fix-testing-with-flask.patch +Patch2: flask-restx-importlib.patch BuildRequires: %{python_module Faker} BuildRequires: %{python_module Flask} BuildRequires: %{python_module Werkzeug} BuildRequires: %{python_module aniso8601} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module blinker} -BuildRequires: %{python_module importlib_resources} +BuildRequires: %{python_module importlib_resources if %python-base < 3.9} BuildRequires: %{python_module jsonschema} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-benchmark} @@ -48,8 +49,10 @@ Requires: python-Flask Requires: python-Werkzeug Requires: python-aniso8601 -Requires: python-importlib_resources Requires: python-jsonschema +%if %{python_version_nodots} < 39 +Requires: python-importlib_resources +%endif BuildArch: noarch %python_subpackages ++++++ flask-restx-importlib.patch ++++++ Index: flask-restx-1.3.0/flask_restx/schemas/__init__.py =================================================================== --- flask-restx-1.3.0.orig/flask_restx/schemas/__init__.py +++ flask-restx-1.3.0/flask_restx/schemas/__init__.py @@ -7,7 +7,10 @@ and allows to validate specs against the import io import json -import importlib_resources +try: + from importlib.resources import files as importlib_resources_files +except ImportError: + from importlib_resources import files as importlib_resources_files from collections.abc import Mapping from jsonschema import Draft4Validator @@ -57,7 +60,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) Index: flask-restx-1.3.0/requirements/install.pip =================================================================== --- flask-restx-1.3.0.orig/requirements/install.pip +++ flask-restx-1.3.0/requirements/install.pip @@ -2,4 +2,4 @@ aniso8601>=0.82 jsonschema Flask>=0.8, !=2.0.0 werkzeug!=2.0.0 -importlib_resources +importlib_resources;python_version<"3.9"