Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pynetbox for openSUSE:Factory
checked in at 2022-10-08 01:23:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
and /work/SRC/openSUSE:Factory/.python-pynetbox.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pynetbox"
Sat Oct 8 01:23:30 2022 rev:30 rq:1008357 version:6.6.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes
2022-04-08 00:28:37.813708023 +0200
+++
/work/SRC/openSUSE:Factory/.python-pynetbox.new.2275/python-pynetbox.changes
2022-10-08 01:23:34.594002810 +0200
@@ -1,0 +2,7 @@
+Wed Oct 5 14:22:03 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to version 6.6.2
+ * ci: test against the currently supported python versions by @raddessi in
#446
+ Fix pickling exception with custom errors by @kingtong in #459
+
+-------------------------------------------------------------------
Old:
----
pynetbox-6.6.1.tar.gz
New:
----
pynetbox-6.6.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pynetbox.spec ++++++
--- /var/tmp/diff_new_pack.DOZzx6/_old 2022-10-08 01:23:35.258004332 +0200
+++ /var/tmp/diff_new_pack.DOZzx6/_new 2022-10-08 01:23:35.262004342 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pynetbox
-Version: 6.6.1
+Version: 6.6.2
Release: 0
Summary: NetBox API client library
License: Apache-2.0
++++++ pynetbox-6.6.1.tar.gz -> pynetbox-6.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.6.1/.github/workflows/py3.yml
new/pynetbox-6.6.2/.github/workflows/py3.yml
--- old/pynetbox-6.6.1/.github/workflows/py3.yml 2022-02-20
22:32:49.000000000 +0100
+++ new/pynetbox-6.6.2/.github/workflows/py3.yml 2022-04-18
05:28:33.000000000 +0200
@@ -12,7 +12,7 @@
runs-on: ubuntu-latest
strategy:
matrix:
- python: [3.6, 3.8]
+ python: ["3.7", "3.10"]
netbox: ["2.11", "3.0", "3.1"]
steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.6.1/PKG-INFO new/pynetbox-6.6.2/PKG-INFO
--- old/pynetbox-6.6.1/PKG-INFO 2022-02-20 22:33:00.115910000 +0100
+++ new/pynetbox-6.6.2/PKG-INFO 2022-04-18 05:28:48.670452800 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pynetbox
-Version: 6.6.1
+Version: 6.6.2
Summary: NetBox API client library
Home-page: https://github.com/digitalocean/pynetbox
Author: Zach Moody
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.6.1/pynetbox/core/query.py
new/pynetbox-6.6.2/pynetbox/core/query.py
--- old/pynetbox-6.6.1/pynetbox/core/query.py 2022-02-20 22:32:49.000000000
+0100
+++ new/pynetbox-6.6.2/pynetbox/core/query.py 2022-04-18 05:28:33.000000000
+0200
@@ -43,18 +43,16 @@
"""
- def __init__(self, message):
- req = message
-
+ def __init__(self, req):
if req.status_code == 404:
- message = "The requested url: {} could not be
found.".format(req.url)
+ self.message = "The requested url: {} could not be
found.".format(req.url)
else:
try:
- message = "The request failed with code {} {}: {}".format(
+ self.message = "The request failed with code {} {}: {}".format(
req.status_code, req.reason, req.json()
)
except ValueError:
- message = (
+ self.message = (
"The request failed with code {} {} but more specific "
"details were not returned in json. Check the NetBox Logs "
"or investigate this exception's error attribute.".format(
@@ -62,12 +60,15 @@
)
)
- super(RequestError, self).__init__(message)
+ super(RequestError, self).__init__(req)
self.req = req
self.request_body = req.request.body
self.base = req.url
self.error = req.text
+ def __str__(self):
+ return self.message
+
class AllocationError(Exception):
"""Allocation Exception
@@ -77,16 +78,15 @@
NetBox 3.1.1) or 409 Conflict (since NetBox 3.1.1+).
"""
- def __init__(self, message):
- req = message
-
- message = "The requested allocation could not be fulfilled."
-
- super(AllocationError, self).__init__(message)
+ def __init__(self, req):
+ super(AllocationError, self).__init__(req)
self.req = req
self.request_body = req.request.body
self.base = req.url
- self.error = message
+ self.error = "The requested allocation could not be fulfilled."
+
+ def __str__(self):
+ return self.error
class ContentError(Exception):
@@ -97,18 +97,17 @@
exception is raised in those cases.
"""
- def __init__(self, message):
- req = message
-
- message = (
- "The server returned invalid (non-json) data. Maybe not " "a
NetBox server?"
- )
-
- super(ContentError, self).__init__(message)
+ def __init__(self, req):
+ super(ContentError, self).__init__(req)
self.req = req
self.request_body = req.request.body
self.base = req.url
- self.error = message
+ self.error = (
+ "The server returned invalid (non-json) data. Maybe not a NetBox
server?"
+ )
+
+ def __str__(self):
+ return self.error
class Request(object):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.6.1/pynetbox.egg-info/PKG-INFO
new/pynetbox-6.6.2/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-6.6.1/pynetbox.egg-info/PKG-INFO 2022-02-20
22:32:59.000000000 +0100
+++ new/pynetbox-6.6.2/pynetbox.egg-info/PKG-INFO 2022-04-18
05:28:48.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pynetbox
-Version: 6.6.1
+Version: 6.6.2
Summary: NetBox API client library
Home-page: https://github.com/digitalocean/pynetbox
Author: Zach Moody