14
0
Files
python-redfish/python-redfish.spec
Matej Cepl f00c494823 Accepting request 915076 from home:mnhauke
- Update to version 3.0.2
  * Added support for prepending 'https://' when the provided URI
    of the service does not contain a scheme.
- Update to version 3.0.1
  * Provided additional handling for HTTP 301 and 302 redirects.
  * Changed session creation to not follow redirects in order to
    ensure the session token and location are not lost.
  * Enhanced invalid JSON response handling to better highlight a
    service error.
- Update to version 3.0.0
  * Removed Python2 support
- Update to version 2.2.0
  * Added support for NO_PROXY environment variable
- Update to version 2.1.9
  * Added handling for HTTP 303 responses as part of redirect
    handling.

OBS-URL: https://build.opensuse.org/request/show/915076
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redfish?expand=0&rev=11
2021-09-01 18:58:13 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package python-redfish
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-redfish
Version: 3.0.2
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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonpatch
Requires: python-jsonpath-rw
Requires: python-jsonpointer
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module jsonpatch}
BuildRequires: %{python_module jsonpath-rw}
BuildRequires: %{python_module jsonpointer}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
The Redfish library performs the basic HTTPS operations GET, POST,
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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.md
%doc README.rst CHANGELOG.md
%{python_sitelib}/redfish*
%changelog