Hello community,

here is the log from the commit of package python-redfish for openSUSE:Factory 
checked in at 2020-07-08 19:13:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-redfish (Old)
 and      /work/SRC/openSUSE:Factory/.python-redfish.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-redfish"

Wed Jul  8 19:13:01 2020 rev:4 rq:819134 version:2.1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-redfish/python-redfish.changes    
2020-06-14 18:35:36.122597958 +0200
+++ /work/SRC/openSUSE:Factory/.python-redfish.new.3060/python-redfish.changes  
2020-07-08 19:13:23.731192161 +0200
@@ -1,0 +2,8 @@
+Mon Jul  6 18:36:04 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 2.1.7
+  * Added support for setting the 'Content-Type' header to
+    'application/octet-stream' when binary data is provided in a
+    request
+
+-------------------------------------------------------------------

Old:
----
  redfish-2.1.6.tar.gz

New:
----
  redfish-2.1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-redfish.spec ++++++
--- /var/tmp/diff_new_pack.BAUmo2/_old  2020-07-08 19:13:27.431204926 +0200
+++ /var/tmp/diff_new_pack.BAUmo2/_new  2020-07-08 19:13:27.431204926 +0200
@@ -19,7 +19,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-redfish
-Version:        2.1.6
+Version:        2.1.7
 Release:        0
 Summary:        Redfish Python Library
 License:        BSD-3-Clause

++++++ redfish-2.1.6.tar.gz -> redfish-2.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.6/.travis.yml 
new/python-redfish-library-2.1.7/.travis.yml
--- old/python-redfish-library-2.1.6/.travis.yml        2020-06-12 
19:20:17.000000000 +0200
+++ new/python-redfish-library-2.1.7/.travis.yml        2020-07-06 
15:11:59.000000000 +0200
@@ -6,10 +6,10 @@
 - '2.7'
 - '3.4'
 - '3.5'
-- 3.5-dev
 - '3.6'
-- 3.6-dev
 - '3.7'
+- '3.8'
+- 3.8-dev
 before_install:
 - pip install -U pip
 - pip install -U setuptools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.6/CHANGELOG.md 
new/python-redfish-library-2.1.7/CHANGELOG.md
--- old/python-redfish-library-2.1.6/CHANGELOG.md       2020-06-12 
19:20:17.000000000 +0200
+++ new/python-redfish-library-2.1.7/CHANGELOG.md       2020-07-06 
15:11:59.000000000 +0200
@@ -1,5 +1,8 @@
 # Change Log
 
+## [2.1.7] - 2020-07-06
+- Added support for setting the 'Content-Type' header to 
'application/octet-stream' when binary data is provided in a request
+
 ## [2.1.6] - 2020-06-12
 - Added support for leveraging the 'HTTP_PROXY' and 'HTTPS_PROXY' environment 
variables to set up proxy information
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.6/setup.py 
new/python-redfish-library-2.1.7/setup.py
--- old/python-redfish-library-2.1.6/setup.py   2020-06-12 19:20:17.000000000 
+0200
+++ new/python-redfish-library-2.1.7/setup.py   2020-07-06 15:11:59.000000000 
+0200
@@ -7,7 +7,7 @@
     long_description = f.read()
 
 setup(name='redfish',
-      version='2.1.6',
+      version='2.1.7',
       description='Redfish Python Library',
       long_description=long_description,
       long_description_content_type='text/x-rst',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.6/src/redfish/__init__.py 
new/python-redfish-library-2.1.7/src/redfish/__init__.py
--- old/python-redfish-library-2.1.6/src/redfish/__init__.py    2020-06-12 
19:20:17.000000000 +0200
+++ new/python-redfish-library-2.1.7/src/redfish/__init__.py    2020-07-06 
15:11:59.000000000 +0200
@@ -5,7 +5,7 @@
 """ Redfish restful library """
 
 __all__ = ['rest', 'ris', 'discovery']
-__version__ = "2.1.6"
+__version__ = "2.1.7"
 
 from redfish.rest.v1 import redfish_client
 from redfish.rest.v1 import AuthMethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.6/src/redfish/rest/v1.py 
new/python-redfish-library-2.1.7/src/redfish/rest/v1.py
--- old/python-redfish-library-2.1.6/src/redfish/rest/v1.py     2020-06-12 
19:20:17.000000000 +0200
+++ new/python-redfish-library-2.1.7/src/redfish/rest/v1.py     2020-07-06 
15:11:59.000000000 +0200
@@ -775,6 +775,9 @@
             if isinstance(body, dict) or isinstance(body, list):
                 headers['Content-Type'] = 'application/json'
                 body = json.dumps(body)
+            elif isinstance(body, bytes):
+                headers['Content-Type'] = 'application/octet-stream'
+                body = body
             else:
                 headers['Content-Type'] = 'application/x-www-form-urlencoded'
                 body = urlencode(body)


Reply via email to