From 955149d5bbe21cc514184ff2702c7cec85ce7d2a120f8aaef19af21c91e43221 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 16 Jan 2022 14:08:07 +0000 Subject: [PATCH] - add collections-python310.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redfish?expand=0&rev=13 --- collections-python310.patch | 12 ++++++++++++ python-redfish.changes | 1 + python-redfish.spec | 10 +++++++--- redfish-3.0.3.tar.gz | 3 --- redfish-3.1.0.tar.gz | 3 +++ 5 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 collections-python310.patch delete mode 100644 redfish-3.0.3.tar.gz create mode 100644 redfish-3.1.0.tar.gz diff --git a/collections-python310.patch b/collections-python310.patch new file mode 100644 index 0000000..aff71ef --- /dev/null +++ b/collections-python310.patch @@ -0,0 +1,12 @@ +--- python-redfish-library-3.1.0/src/redfish/ris/rmc.py 2022-01-10 14:55:53.000000000 +0100 ++++ python-redfish-library-3.1.0/src/redfish/ris/rmc.py 2022-01-16 15:02:43.088058912 +0100 +@@ -15,7 +15,8 @@ + import copy + import shutil + import logging +-from collections import OrderedDict, Mapping ++from collections import OrderedDict ++from collections.abc import Mapping + + import jsonpatch + import jsonpath_rw diff --git a/python-redfish.changes b/python-redfish.changes index 4181666..1807668 100644 --- a/python-redfish.changes +++ b/python-redfish.changes @@ -3,6 +3,7 @@ Mon Oct 25 21:00:45 UTC 2021 - Martin Hauke - Update to version 3.0.3 * Added support for performing multi-part HTTP POST requests +- add collections-python310.patch ------------------------------------------------------------------- Mon Aug 30 14:07:40 UTC 2021 - Martin Hauke diff --git a/python-redfish.spec b/python-redfish.spec index 2ecda31..60c73cb 100644 --- a/python-redfish.spec +++ b/python-redfish.spec @@ -1,7 +1,7 @@ # # spec file for package python-redfish # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2020-2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -19,19 +19,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-redfish -Version: 3.0.3 +Version: 3.1.0 Release: 0 Summary: Redfish Python Library License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/DMTF/python-redfish-library Source: https://github.com/DMTF/python-redfish-library/archive/%{version}.tar.gz#/redfish-%{version}.tar.gz +# submitted as gh#DMTF/python-redfish-library#118 +Patch1: collections-python310.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-jsonpatch Requires: python-jsonpath-rw Requires: python-jsonpointer +Requires: python-requests BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module jsonpatch} @@ -40,6 +43,7 @@ BuildRequires: %{python_module jsonpointer} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests-toolbelt} +BuildRequires: %{python_module requests} # /SECTION %python_subpackages @@ -49,7 +53,7 @@ PUT, PATCH and DELETE on resources using the HATEOAS (Hypermedia as the Engine of Application State) Redfish architecture. %prep -%setup -q -n %{name}-library-%{version} +%autosetup -p1 -n %{name}-library-%{version} %build %python_build diff --git a/redfish-3.0.3.tar.gz b/redfish-3.0.3.tar.gz deleted file mode 100644 index 996a55b..0000000 --- a/redfish-3.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d579ecbb6ffccc68795b5eec65f99f4460a3a0df4ad6b3cdc52927962ae3ab3a -size 41801 diff --git a/redfish-3.1.0.tar.gz b/redfish-3.1.0.tar.gz new file mode 100644 index 0000000..2f1f2a4 --- /dev/null +++ b/redfish-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16474191019981ccb24a74f4c442b19b05d8d21e1fbf8b3b6725c2272dac0b23 +size 40933