Hello community,

here is the log from the commit of package python-redfish for 
openSUSE:Leap:15.2 checked in at 2020-03-21 16:46:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-redfish (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-redfish.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-redfish"

Sat Mar 21 16:46:32 2020 rev:2 rq:786915 version:2.1.5

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-redfish/python-redfish.changes  
2020-02-22 18:49:10.220329849 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-redfish.new.3160/python-redfish.changes    
    2020-03-21 16:47:56.705681751 +0100
@@ -1,0 +2,8 @@
+Thu Mar 19 05:02:34 UTC 2020 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Update to 2.1.5:
+  * Removed urlparse2 dependency
+  * Updated jsonpatch requirements; jsonpatch 1.25 dropped Python 3.4 support
+- Dropped patch 0001-remove-urlparse2-dependncy.patch, now included
+
+-------------------------------------------------------------------

Old:
----
  0001-remove-urlparse2-dependncy.patch
  redfish-2.1.4.tar.gz

New:
----
  redfish-2.1.5.tar.gz

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

Other differences:
------------------
++++++ python-redfish.spec ++++++
--- /var/tmp/diff_new_pack.tT3Lot/_old  2020-03-21 16:47:57.537682278 +0100
+++ /var/tmp/diff_new_pack.tT3Lot/_new  2020-03-21 16:47:57.537682278 +0100
@@ -1,6 +1,7 @@
 #
 # spec file for package python-redfish
 #
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2020, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,19 +13,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-redfish
-Version:        2.1.4
+Version:        2.1.5
 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
-Patch0:         0001-remove-urlparse2-dependncy.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -48,7 +49,6 @@
 
 %prep
 %setup -q -n %{name}-library-%{version}
-%patch0 -p1
 
 %build
 %python_build

++++++ redfish-2.1.4.tar.gz -> redfish-2.1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.4/CHANGELOG.md 
new/python-redfish-library-2.1.5/CHANGELOG.md
--- old/python-redfish-library-2.1.4/CHANGELOG.md       2020-01-10 
15:06:28.000000000 +0100
+++ new/python-redfish-library-2.1.5/CHANGELOG.md       2020-02-03 
21:18:29.000000000 +0100
@@ -1,5 +1,9 @@
 # Change Log
 
+## [2.1.5] - 2020-02-03
+- Removed urlparse2 dependency
+- Updated jsonpatch requirements; jsonpatch 1.25 dropped Python 3.4 support
+
 ## [2.1.4] - 2020-01-10
 - Added fallback to using '/redfish/v1/SessionService/Sessions' if the service 
root does not contains the 'Links/Sessions' property for login
 - Added Python version checks to use time.perf_counter() in favor of 
time.clock()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.4/requirements.txt 
new/python-redfish-library-2.1.5/requirements.txt
--- old/python-redfish-library-2.1.4/requirements.txt   2020-01-10 
15:06:28.000000000 +0100
+++ new/python-redfish-library-2.1.5/requirements.txt   2020-02-03 
21:18:29.000000000 +0100
@@ -1,4 +1,4 @@
-jsonpatch
+jsonpatch<=1.24 ; python_version == '3.4'
+jsonpatch ; python_version >= '3.5' or python_version == '2.7'
 jsonpath_rw
 jsonpointer
-urlparse2
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.4/setup.py 
new/python-redfish-library-2.1.5/setup.py
--- old/python-redfish-library-2.1.4/setup.py   2020-01-10 15:06:28.000000000 
+0100
+++ new/python-redfish-library-2.1.5/setup.py   2020-02-03 21:18:29.000000000 
+0100
@@ -7,7 +7,7 @@
     long_description = f.read()
 
 setup(name='redfish',
-      version='2.1.4',
+      version='2.1.5',
       description='Redfish Python Library',
       long_description=long_description,
       long_description_content_type='text/x-rst',
@@ -24,8 +24,14 @@
       packages=find_packages('src'),
       package_dir={'': 'src'},
       install_requires=[
-          'jsonpatch',
           'jsonpath_rw',
           'jsonpointer',
-          'urlparse2',
-      ])
+      ],
+      extras_require={
+          ':python_version == "3.4"': [
+              'jsonpatch<=1.24'
+          ],
+          ':python_version >= "3.5" or python_version == "2.7"': [
+              'jsonpatch'
+          ]
+      })
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.4/src/redfish/__init__.py 
new/python-redfish-library-2.1.5/src/redfish/__init__.py
--- old/python-redfish-library-2.1.4/src/redfish/__init__.py    2020-01-10 
15:06:28.000000000 +0100
+++ new/python-redfish-library-2.1.5/src/redfish/__init__.py    2020-02-03 
21:18:29.000000000 +0100
@@ -5,7 +5,7 @@
 """ Redfish restful library """
 
 __all__ = ['rest', 'ris', 'discovery']
-__version__ = "2.1.4"
+__version__ = "2.1.5"
 
 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.4/src/redfish/ris/rmc_helper.py 
new/python-redfish-library-2.1.5/src/redfish/ris/rmc_helper.py
--- old/python-redfish-library-2.1.4/src/redfish/ris/rmc_helper.py      
2020-01-10 15:06:28.000000000 +0100
+++ new/python-redfish-library-2.1.5/src/redfish/ris/rmc_helper.py      
2020-02-03 21:18:29.000000000 +0100
@@ -1,5 +1,5 @@
 # Copyright Notice:
-# Copyright 2016-2019 DMTF. All rights reserved.
+# Copyright 2016-2020 DMTF. All rights reserved.
 # License: BSD 3-Clause License. For full text see link: 
https://github.com/DMTF/python-redfish-library/blob/master/LICENSE.md
 
 # -*- coding: utf-8 -*-
@@ -12,9 +12,10 @@
 import errno
 import logging
 import hashlib
-import urlparse2
 import redfish.rest
 
+from six.moves.urllib.parse import urlparse
+
 from .ris import (RisMonolith)
 from .sharedtypes import (JSONEncoder)
 from .config import (AutoConfigParser)
@@ -146,7 +147,7 @@
 
     def get_cache_dirname(self):
         """The rest client's current base URL converted to path"""
-        parts = urlparse2.urlparse(self.get_base_url())
+        parts = urlparse(self.get_base_url())
         pathstr = '%s/%s' % (parts.netloc, parts.path)
         return pathstr.replace('//', '/')
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-redfish-library-2.1.4/tests/ris/test_rmc_helper.py 
new/python-redfish-library-2.1.5/tests/ris/test_rmc_helper.py
--- old/python-redfish-library-2.1.4/tests/ris/test_rmc_helper.py       
1970-01-01 01:00:00.000000000 +0100
+++ new/python-redfish-library-2.1.5/tests/ris/test_rmc_helper.py       
2020-02-03 21:18:29.000000000 +0100
@@ -0,0 +1,29 @@
+# Copyright Notice:
+# Copyright 2020 DMTF. All rights reserved.
+# License: BSD 3-Clause License. For full text see link:
+#     https://github.com/DMTF/Redfish-Protocol-Validator/blob/master/LICENSE.md
+
+import unittest
+try:
+    from unittest import mock
+except ImportError:
+    import mock
+
+from redfish.ris import rmc_helper
+
+
+class RmcHelper(unittest.TestCase):
+    def setUp(self):
+        super(RmcHelper, self).setUp()
+
+    @mock.patch('redfish.rest.v1.HttpClient')
+    def test_get_cache_dirname(self, mock_http_client):
+        url = 'http://example.com'
+        helper = rmc_helper.RmcClient(url=url, username='oper', password='xyz')
+        mock_http_client.return_value.get_base_url.return_value = url
+        dir_name = helper.get_cache_dirname()
+        self.assertEqual(dir_name, 'example.com/')
+
+
+if __name__ == '__main__':
+    unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-redfish-library-2.1.4/tox.ini 
new/python-redfish-library-2.1.5/tox.ini
--- old/python-redfish-library-2.1.4/tox.ini    2020-01-10 15:06:28.000000000 
+0100
+++ new/python-redfish-library-2.1.5/tox.ini    2020-02-03 21:18:29.000000000 
+0100
@@ -14,6 +14,14 @@
     --with-timer \
     --with-coverage --cover-erase --cover-package=src
 
+[testenv:py27]
+deps =
+    coverage
+    fixtures
+    mock
+    nose
+    nose-timer
+
 [testenv:pep8]
 basepython = python3.6
 deps = flake8


Reply via email to