commit python-pynetbox for openSUSE:Factory

2020-10-02 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-10-02 17:34:00

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.4249 (New)


Package is "python-pynetbox"

Fri Oct  2 17:34:00 2020 rev:16 rq:837380 version:5.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-08-24 15:15:06.738745181 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.4249/python-pynetbox.changes
2020-10-02 17:34:03.974622798 +0200
@@ -1,0 +2,13 @@
+Thu Sep 24 18:40:51 UTC 2020 - Martin Hauke 
+
+- Update to version 5.1.0
+  * Add Basic plugins support (#290).
+
+---
+Wed Sep  2 05:58:23 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.8
+  * Fixes malformed URL when calling .save() and .delete() on
+nested objects.
+
+---

Old:

  pynetbox-5.0.7.tar.gz

New:

  pynetbox-5.1.0.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.8ipJBn/_old  2020-10-02 17:34:04.698623229 +0200
+++ /var/tmp/diff_new_pack.8ipJBn/_new  2020-10-02 17:34:04.698623229 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:5.0.7
+Version:5.1.0
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-5.0.7.tar.gz -> pynetbox-5.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.7/.github/workflows/py3pr.yml 
new/pynetbox-5.1.0/.github/workflows/py3pr.yml
--- old/pynetbox-5.0.7/.github/workflows/py3pr.yml  2020-08-20 
20:18:00.0 +0200
+++ new/pynetbox-5.1.0/.github/workflows/py3pr.yml  2020-09-24 
16:25:58.0 +0200
@@ -19,10 +19,10 @@
   python-version: ${{ matrix.python }}
 
   - name: Install pynetbox and testing packages.
-run: pip install . black pytest
+run: pip install . black==19.10b0 pytest
 
   - name: Run Linter
-run: black --check .
+run: black --diff pynetbox tests
   
   - name: Run Tests
 run: pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.7/PKG-INFO new/pynetbox-5.1.0/PKG-INFO
--- old/pynetbox-5.0.7/PKG-INFO 2020-08-20 20:18:06.812076800 +0200
+++ new/pynetbox-5.1.0/PKG-INFO 2020-09-24 16:26:06.181355700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.7
+Version: 5.1.0
 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-5.0.7/pynetbox/core/api.py 
new/pynetbox-5.1.0/pynetbox/core/api.py
--- old/pynetbox-5.0.7/pynetbox/core/api.py 2020-08-20 20:18:00.0 
+0200
+++ new/pynetbox-5.1.0/pynetbox/core/api.py 2020-09-24 16:25:58.0 
+0200
@@ -18,7 +18,7 @@
 import requests
 
 from pynetbox.core.query import Request
-from pynetbox.core.app import App
+from pynetbox.core.app import App, PluginsApp
 
 
 class Api(object):
@@ -100,6 +100,7 @@
 self.tenancy = App(self, "tenancy")
 self.extras = App(self, "extras")
 self.virtualization = App(self, "virtualization")
+self.plugins = PluginsApp(self)
 
 @property
 def version(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.7/pynetbox/core/app.py 
new/pynetbox-5.1.0/pynetbox/core/app.py
--- old/pynetbox-5.0.7/pynetbox/core/app.py 2020-08-20 20:18:00.0 
+0200
+++ new/pynetbox-5.1.0/pynetbox/core/app.py 2020-09-24 16:25:58.0 
+0200
@@ -109,3 +109,42 @@
 http_session=self.api.http_session,
 ).get()
 return custom_field_choices
+
+
+class PluginsApp(object):
+"""
+Basically valid plugins api could be handled by same App class,
+but you need to add plugins to request url path.
+
+:returns: :py:class:`.App` with added plugins into path.
+
+"""
+
+def __init__(self, api):
+self.api = api
+
+def __getattr__(self, name):
+return App(self.api, 'plugins/{}'.format(name))
+
+def installed_plugins(self):
+""" Returns raw response with installed plugins
+
+:returns: Raw response NetBox's installed plugins.
+:Example:
+
+>>> nb.plugins.installed_plugins()
+[{
+'name': 'test_plugin', 
+ 

commit python-pynetbox for openSUSE:Factory

2020-08-24 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-08-24 15:14:18

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.3399 (New)


Package is "python-pynetbox"

Mon Aug 24 15:14:18 2020 rev:15 rq:828875 version:5.0.7

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-07-17 20:49:19.968825325 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.3399/python-pynetbox.changes
2020-08-24 15:15:06.738745181 +0200
@@ -1,0 +2,9 @@
+Sat Aug 22 22:03:37 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.7
+  * Implement Record.__getitem__()
+- Update to version 5.0.6
+  * Fixes issue when calling attributes by their dict keys where
+we only returned the key's name instead of its value.
+
+---

Old:

  pynetbox-5.0.5.tar.gz

New:

  pynetbox-5.0.7.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.SLxp8l/_old  2020-08-24 15:15:07.554745579 +0200
+++ /var/tmp/diff_new_pack.SLxp8l/_new  2020-08-24 15:15:07.554745579 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:5.0.5
+Version:5.0.7
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-5.0.5.tar.gz -> pynetbox-5.0.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.5/PKG-INFO new/pynetbox-5.0.7/PKG-INFO
--- old/pynetbox-5.0.5/PKG-INFO 2020-07-15 21:50:32.512465500 +0200
+++ new/pynetbox-5.0.7/PKG-INFO 2020-08-20 20:18:06.812076800 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.5
+Version: 5.0.7
 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-5.0.5/pynetbox/core/response.py 
new/pynetbox-5.0.7/pynetbox/core/response.py
--- old/pynetbox-5.0.5/pynetbox/core/response.py2020-07-15 
21:50:20.0 +0200
+++ new/pynetbox-5.0.7/pynetbox/core/response.py2020-08-20 
20:18:00.0 +0200
@@ -207,8 +207,8 @@
 else:
 yield i, cur_attr
 
-def __getitem__(self, item):
-return item
+def __getitem__(self, k):
+return dict(self)[k]
 
 def __str__(self):
 return getattr(self, "name", None) or getattr(self, "label", None) or 
""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.5/pynetbox.egg-info/PKG-INFO 
new/pynetbox-5.0.7/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-5.0.5/pynetbox.egg-info/PKG-INFO   2020-07-15 
21:50:32.0 +0200
+++ new/pynetbox-5.0.7/pynetbox.egg-info/PKG-INFO   2020-08-20 
20:18:06.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.5
+Version: 5.0.7
 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-5.0.5/tests/unit/test_response.py 
new/pynetbox-5.0.7/tests/unit/test_response.py
--- old/pynetbox-5.0.5/tests/unit/test_response.py  2020-07-15 
21:50:20.0 +0200
+++ new/pynetbox-5.0.7/tests/unit/test_response.py  2020-08-20 
20:18:00.0 +0200
@@ -11,6 +11,36 @@
 
 
 class RecordTestCase(unittest.TestCase):
+def test_attribute_access(self):
+test_values = {
+"id": 123,
+"units": 12,
+"nested_dict": {"id": 222, "name": "bar"},
+"int_list": [123, 321, 231],
+}
+test_obj = Record(test_values, None, None)
+self.assertEqual(test_obj.id, 123)
+self.assertEqual(test_obj.units, 12)
+self.assertEqual(test_obj.nested_dict.name, "bar")
+self.assertEqual(test_obj.int_list[1], 321)
+with self.assertRaises(AttributeError) as _:
+test_obj.nothing
+
+def test_dict_access(self):
+test_values = {
+"id": 123,
+"units": 12,
+"nested_dict": {"id": 222, "name": "bar"},
+"int_list": [123, 321, 231],
+}
+test_obj = Record(test_values, None, None)
+self.assertEqual(test_obj["id"], 123)
+self.assertEqual(test_obj["units"], 12)
+self.assertEqual(test_obj["nested_dict"]["name"], "bar")
+self.assertEqual(test_obj["int_list"][1], 321)
+wit

commit python-pynetbox for openSUSE:Factory

2020-07-17 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-07-17 20:48:36

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.3592 (New)


Package is "python-pynetbox"

Fri Jul 17 20:48:36 2020 rev:14 rq:821335 version:5.0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-07-09 13:21:24.413656335 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.3592/python-pynetbox.changes
2020-07-17 20:49:19.968825325 +0200
@@ -1,0 +2,7 @@
+Thu Jul 16 15:20:57 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.5
+  * Fixes issue with unchanged tags being reordered when .save()
+is called that caused unnecessary updates to NetBox.
+
+---

Old:

  pynetbox-5.0.4.tar.gz

New:

  pynetbox-5.0.5.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.4ofid7/_old  2020-07-17 20:49:21.548826973 +0200
+++ /var/tmp/diff_new_pack.4ofid7/_new  2020-07-17 20:49:21.552826978 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:5.0.4
+Version:5.0.5
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-5.0.4.tar.gz -> pynetbox-5.0.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.4/PKG-INFO new/pynetbox-5.0.5/PKG-INFO
--- old/pynetbox-5.0.4/PKG-INFO 2020-07-08 17:31:56.12200 +0200
+++ new/pynetbox-5.0.5/PKG-INFO 2020-07-15 21:50:32.512465500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.4
+Version: 5.0.5
 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-5.0.4/pynetbox/core/response.py 
new/pynetbox-5.0.5/pynetbox/core/response.py
--- old/pynetbox-5.0.4/pynetbox/core/response.py2020-07-08 
17:31:48.0 +0200
+++ new/pynetbox-5.0.5/pynetbox/core/response.py2020-07-15 
21:50:20.0 +0200
@@ -14,6 +14,7 @@
 limitations under the License.
 """
 import copy
+from collections import OrderedDict
 
 import pynetbox.core.app
 from six.moves.urllib.parse import urlsplit
@@ -341,7 +342,7 @@
 v.id if isinstance(v, Record) else v for v in 
current_val
 ]
 if i in LIST_AS_SET:
-current_val = list(set(current_val))
+current_val = list(OrderedDict.fromkeys(current_val))
 ret[i] = current_val
 return ret
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.4/pynetbox.egg-info/PKG-INFO 
new/pynetbox-5.0.5/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-5.0.4/pynetbox.egg-info/PKG-INFO   2020-07-08 
17:31:55.0 +0200
+++ new/pynetbox-5.0.5/pynetbox.egg-info/PKG-INFO   2020-07-15 
21:50:32.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.4
+Version: 5.0.5
 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-5.0.4/tests/unit/test_response.py 
new/pynetbox-5.0.5/tests/unit/test_response.py
--- old/pynetbox-5.0.4/tests/unit/test_response.py  2020-07-08 
17:31:48.0 +0200
+++ new/pynetbox-5.0.5/tests/unit/test_response.py  2020-07-15 
21:50:20.0 +0200
@@ -209,3 +209,25 @@
 )
 ret = test._endpoint_from_url(test.url)
 self.assertEqual(ret.name, "test-endpoint")
+
+def test_serialize_tag_list_order(self):
+"""Add tests to ensure we're preserving tag order
+
+This test could still give false-negatives, but making the tag list
+longer helps mitigate that.
+"""
+
+test_tags = [
+"one",
+"two",
+"three",
+"four",
+"five",
+"six",
+"seven",
+"eight",
+"nine",
+"ten",
+]
+test = Record({"id": 123, "tags": test_tags}, None, None).serialize()
+self.assertEqual(test["tags"], test_tags)




commit python-pynetbox for openSUSE:Factory

2020-07-09 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-07-09 13:20:20

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.3060 (New)


Package is "python-pynetbox"

Thu Jul  9 13:20:20 2020 rev:13 rq:819676 version:5.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-06-26 21:50:03.402717968 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.3060/python-pynetbox.changes
2020-07-09 13:21:24.413656335 +0200
@@ -1,0 +2,18 @@
+Wed Jul  8 15:53:44 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.4
+  * Fixes issue saving local_config_context attribute on objects
+
+---
+Mon Jul  6 18:38:36 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.3
+  * Fixes issue with threads overwriting Request.filters.
+
+---
+Mon Jul  6 18:37:47 UTC 2020 - Martin Hauke 
+
+- Udpate to version 5.0.2
+  * Fixes Api.get_version() to use the session object.
+
+---

Old:

  pynetbox-5.0.1.tar.gz

New:

  pynetbox-5.0.4.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.kLwyqY/_old  2020-07-09 13:21:25.017658245 +0200
+++ /var/tmp/diff_new_pack.kLwyqY/_new  2020-07-09 13:21:25.017658245 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:5.0.1
+Version:5.0.4
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-5.0.1.tar.gz -> pynetbox-5.0.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.1/PKG-INFO new/pynetbox-5.0.4/PKG-INFO
--- old/pynetbox-5.0.1/PKG-INFO 2020-06-25 23:42:27.403050400 +0200
+++ new/pynetbox-5.0.4/PKG-INFO 2020-07-08 17:31:56.12200 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 5.0.1
+Version: 5.0.4
 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-5.0.1/pynetbox/core/endpoint.py 
new/pynetbox-5.0.4/pynetbox/core/endpoint.py
--- old/pynetbox-5.0.1/pynetbox/core/endpoint.py2020-06-25 
23:42:12.0 +0200
+++ new/pynetbox-5.0.4/pynetbox/core/endpoint.py2020-07-08 
17:31:48.0 +0200
@@ -295,22 +295,22 @@
 
 :Returns: Dict containing the available choices.
 
-:Examples:
+:Example (from NetBox 2.8.x):
 
 >>> from pprint import pprint
 >>> pprint(nb.ipam.ip_addresses.choices())
-{'role': [{'display_name': 'Secondary', 'value': 20},
-  {'display_name': 'VIP', 'value': 40},
-  {'display_name': 'VRRP', 'value': 41},
-  {'display_name': 'Loopback', 'value': 10},
-  {'display_name': 'GLBP', 'value': 43},
-  {'display_name': 'CARP', 'value': 44},
-  {'display_name': 'HSRP', 'value': 42},
-  {'display_name': 'Anycast', 'value': 30}],
- 'status': [{'display_name': 'Active', 'value': 1},
-{'display_name': 'Reserved', 'value': 2},
-{'display_name': 'Deprecated', 'value': 3},
-{'display_name': 'DHCP', 'value': 5}]}
+{'role': [{'display_name': 'Loopback', 'value': 'loopback'},
+  {'display_name': 'Secondary', 'value': 'secondary'},
+  {'display_name': 'Anycast', 'value': 'anycast'},
+  {'display_name': 'VIP', 'value': 'vip'},
+  {'display_name': 'VRRP', 'value': 'vrrp'},
+  {'display_name': 'HSRP', 'value': 'hsrp'},
+  {'display_name': 'GLBP', 'value': 'glbp'},
+  {'display_name': 'CARP', 'value': 'carp'}],
+ 'status': [{'display_name': 'Active', 'value': 'active'},
+{'display_name': 'Reserved', 'value': 'reserved'},
+{'display_name': 'Deprecated', 'value': 'deprecated'},
+{'display_name': 'DHCP', 'value': 'dhcp'}]}
 >>>
 """
 if self._choices:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-5.0.1/pynetbox/core/query.py 
new/pynetbox-5.0.4/pynetbox/core/query.py
--- old/pynetbox-5.0.1/pynetbox/core/query.py   2020-06-25 23:42:12.0 
+0200
+++ 

commit python-pynetbox for openSUSE:Factory

2020-06-26 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-06-26 21:49:31

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.3060 (New)


Package is "python-pynetbox"

Fri Jun 26 21:49:31 2020 rev:12 rq:817206 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-03-24 22:34:31.513153061 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.3060/python-pynetbox.changes
2020-06-26 21:50:03.402717968 +0200
@@ -1,0 +2,37 @@
+Fri Jun 26 08:08:29 UTC 2020 - Martin Hauke 
+
+- Update to version 5.0.1
+  * Fixes #240 by adding an Api.openapi() method that returns a
+dictionary of the entire OpenAPI spec.
+  Breaking Changes
+  * Fixes #239, #229, #219, #209, #189, and #166 by allowing
+Api.http_session to be overridden by user-supplied custom
+requests.Session() objects to more precisely control certain
+requests behavior. While this was possible before, it wasn't
+applied to all requests. For example, getting session keys
+was done in Api().__init__() which wouldn't respect a custom
+http_session. This behavior has been changed and will now
+only occur when the secrets endpoint is called.
+  * Note: this change removes the ssl_verify kwarg passed to
+.api() that controlled certificate validation in previous
+versions. Please see the docs for the new method.
+  * Fixes #241 where the same objects failed equality tests if one
+was derived from a nested object vs directly from that endpoint
+  * Fixes an inconsistency noted in #224 by making Endpoint.get()
+and Endpoint.filter() behave similarly (return None) when the
+resource isn't found.
+  * Fixes #144 by returning proper objects from .create() on detail
+endpoint routes like available-ips and available-prefixes.
+
+---
+Sat Jun 13 10:50:27 UTC 2020 - Martin Hauke 
+
+
+- Use github source URL
+- Update to version 4.3.2
+  * Adds support for the rack elevation endpoint in NetBox 2.8
+- Update to version 4.3.1
+  * Makes config_contex on virtualization record objects a
+JsonField.
+
+---
@@ -5 +42,2 @@
-  * Adds the ability to thread calls to NetBox from .filter() and .all() 
methods. (PR #216)
+  * Adds the ability to thread calls to NetBox from .filter() and
+.all() methods. (PR #216)

Old:

  pynetbox-4.3.0.tar.gz

New:

  pynetbox-5.0.1.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.Rbhf4G/_old  2020-06-26 21:50:04.514721546 +0200
+++ /var/tmp/diff_new_pack.Rbhf4G/_new  2020-06-26 21:50:04.522721572 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.3.0
+Version:5.0.1
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.3.0.tar.gz -> pynetbox-5.0.1.tar.gz ++
 3684 lines of diff (skipped)




commit python-pynetbox for openSUSE:Factory

2020-03-24 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-03-24 22:34:27

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.3160 (New)


Package is "python-pynetbox"

Tue Mar 24 22:34:27 2020 rev:11 rq:787519 version:4.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-02-11 22:25:44.599578682 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.3160/python-pynetbox.changes
2020-03-24 22:34:31.513153061 +0100
@@ -1,0 +2,6 @@
+Mon Mar 23 14:49:20 UTC 2020 - pgaj...@suse.com
+
+- version update to 4.3.0
+  * Adds the ability to thread calls to NetBox from .filter() and .all() 
methods. (PR #216)
+
+---

Old:

  pynetbox-4.2.5.tar.gz

New:

  pynetbox-4.3.0.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.MRlyd1/_old  2020-03-24 22:34:32.089153341 +0100
+++ /var/tmp/diff_new_pack.MRlyd1/_new  2020-03-24 22:34:32.093153343 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.2.5
+Version:4.3.0
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0
@@ -35,7 +35,7 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-netaddr
-Requires:   python-requests
+Requires:   python-requests >= 2.20.0
 BuildArch:  noarch
 %python_subpackages
 

++ pynetbox-4.2.5.tar.gz -> pynetbox-4.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.5/PKG-INFO new/pynetbox-4.3.0/PKG-INFO
--- old/pynetbox-4.2.5/PKG-INFO 2020-02-11 04:34:29.0 +0100
+++ new/pynetbox-4.3.0/PKG-INFO 2020-03-16 22:20:52.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.5
+Version: 4.3.0
 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-4.2.5/README.md new/pynetbox-4.3.0/README.md
--- old/pynetbox-4.2.5/README.md2020-02-11 04:34:14.0 +0100
+++ new/pynetbox-4.3.0/README.md2020-03-16 22:20:37.0 +0100
@@ -38,3 +38,13 @@
 [test1-leaf1, test1-leaf2]
 ```
 
+### Threading
+
+pynetbox supports multithreaded calls (in Python 3 only) for `.filter()` and 
`.all()` queries. It is **highly recommended** you have `MAX_PAGE_SIZE` in your 
Netbox install set to anything *except* `0` or `None`. The default value of 
`1000` is usually a good value to use. To enable threading, add 
`threading=True` parameter to the `.api`:
+
+```python
+nb = pynetbox.api(
+'http://localhost:8000',
+threading=True,
+)
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.5/pynetbox/api.py 
new/pynetbox-4.3.0/pynetbox/api.py
--- old/pynetbox-4.2.5/pynetbox/api.py  2020-02-11 04:34:14.0 +0100
+++ new/pynetbox-4.3.0/pynetbox/api.py  2020-03-16 22:20:37.0 +0100
@@ -13,6 +13,8 @@
 See the License for the specific language governing permissions and
 limitations under the License.
 """
+import sys
+
 import requests
 
 from pynetbox.core.endpoint import Endpoint
@@ -152,6 +154,7 @@
 private_key=None,
 private_key_file=None,
 ssl_verify=True,
+threading=False,
 ):
 if private_key and private_key_file:
 raise ValueError(
@@ -165,6 +168,10 @@
 self.ssl_verify = ssl_verify
 self.session_key = None
 self.http_session = requests.Session()
+if threading and sys.version_info.major == 2:
+raise NotImplementedError("Threaded pynetbox calls not supported \
+in Python 2")
+self.threading = threading
 
 if self.private_key_file:
 with open(self.private_key_file, "r") as kf:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.5/pynetbox/core/endpoint.py 
new/pynetbox-4.3.0/pynetbox/core/endpoint.py
--- old/pynetbox-4.2.5/pynetbox/core/endpoint.py2020-02-11 
04:34:14.0 +0100
+++ new/pynetbox-4.3.0/pynetbox/core/endpoint.py2020-03-16 
22:20:37.0 +0100
@@ -96,6 +96,7 @@
 session_key=self.session_key,
 ssl_verify=self.ssl_verify,
 http_session=self.api.http_session,
+threading=self.api.threading,
 )
 
 return [self._response_loader(i)

commit python-pynetbox for openSUSE:Factory

2020-02-11 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-02-11 22:24:40

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.26092 (New)


Package is "python-pynetbox"

Tue Feb 11 22:24:40 2020 rev:10 rq:773367 version:4.2.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2020-01-12 23:26:27.230862056 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.26092/python-pynetbox.changes   
2020-02-11 22:25:44.599578682 +0100
@@ -1,0 +2,7 @@
+Tue Feb 11 06:39:06 UTC 2020 - Martin Hauke 
+
+- Update to version 4.2.5
+  * save() is not idempotent when dealing with choice objects
+from NetBox 2.7 
+
+---

Old:

  pynetbox-4.2.4.tar.gz

New:

  pynetbox-4.2.5.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.89OYU0/_old  2020-02-11 22:25:45.051578929 +0100
+++ /var/tmp/diff_new_pack.89OYU0/_new  2020-02-11 22:25:45.055578932 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pynetbox
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.2.4
+Version:4.2.5
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.2.4.tar.gz -> pynetbox-4.2.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.4/PKG-INFO new/pynetbox-4.2.5/PKG-INFO
--- old/pynetbox-4.2.4/PKG-INFO 2020-01-12 07:26:21.0 +0100
+++ new/pynetbox-4.2.5/PKG-INFO 2020-02-11 04:34:29.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.4
+Version: 4.2.5
 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-4.2.4/pynetbox/core/response.py 
new/pynetbox-4.2.5/pynetbox/core/response.py
--- old/pynetbox-4.2.4/pynetbox/core/response.py2020-01-12 
07:26:06.0 +0100
+++ new/pynetbox-4.2.5/pynetbox/core/response.py2020-02-11 
04:34:14.0 +0100
@@ -25,8 +25,7 @@
 """Returns simple representations for items passed to lookup.
 
 Used to return a "simple" representation of objects and collections
-sent to it via lookup. If lookup is an IPNetwork object immediately
-return the string representation. Otherwise, we look to see if
+sent to it via lookup. Otherwise, we look to see if
 lookup is a "choices" field (dict with only 'id' and 'value')
 or a nested_return. Finally, we check if it's a Record, if
 so simply return a string. Order is important due to nested_return
@@ -41,6 +40,10 @@
 return lookup[i]
 else:
 if hasattr(lookup, i):
+# check if this is a "choices" field record
+# from a NetBox 2.7 server.
+if sorted(dict(lookup)) == sorted(["id", "value", "label"]):
+return getattr(lookup, "value")
 return getattr(lookup, i)
 
 if isinstance(lookup, Record):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.4/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.2.5/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.2.4/pynetbox.egg-info/PKG-INFO   2020-01-12 
07:26:20.0 +0100
+++ new/pynetbox-4.2.5/pynetbox.egg-info/PKG-INFO   2020-02-11 
04:34:29.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.4
+Version: 4.2.5
 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-4.2.4/tests/unit/test_response.py 
new/pynetbox-4.2.5/tests/unit/test_response.py
--- old/pynetbox-4.2.4/tests/unit/test_response.py  2020-01-12 
07:26:06.0 +0100
+++ new/pynetbox-4.2.5/tests/unit/test_response.py  2020-02-11 
04:34:14.0 +0100
@@ -112,6 +112,43 @@
 test = Record(test_values, None, None)
 self.assertEqual(dict(test), test_values)
 
+def test_choices_idempotence_prev27(self):
+test_values = {
+"id": 123,
+"choices_test

commit python-pynetbox for openSUSE:Factory

2020-01-12 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2020-01-12 23:25:08

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.6675 (New)


Package is "python-pynetbox"

Sun Jan 12 23:25:08 2020 rev:9 rq:763521 version:4.2.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-12-11 12:14:12.092527117 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.6675/python-pynetbox.changes
2020-01-12 23:26:27.230862056 +0100
@@ -1,0 +2,6 @@
+Sun Jan 12 09:18:34 UTC 2020 - Martin Hauke 
+
+- Update to version 4.2.4
+  * Fixes Nested Record Write methods
+
+---

Old:

  pynetbox-4.2.2.tar.gz

New:

  pynetbox-4.2.4.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.BMum1Q/_old  2020-01-12 23:26:27.546862172 +0100
+++ /var/tmp/diff_new_pack.BMum1Q/_new  2020-01-12 23:26:27.546862172 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pynetbox
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.2.2
+Version:4.2.4
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.2.2.tar.gz -> pynetbox-4.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.2/PKG-INFO new/pynetbox-4.2.4/PKG-INFO
--- old/pynetbox-4.2.2/PKG-INFO 2019-12-10 17:27:54.0 +0100
+++ new/pynetbox-4.2.4/PKG-INFO 2020-01-12 07:26:21.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.2
+Version: 4.2.4
 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-4.2.2/pynetbox/core/query.py 
new/pynetbox-4.2.4/pynetbox/core/query.py
--- old/pynetbox-4.2.2/pynetbox/core/query.py   2019-12-10 17:27:36.0 
+0100
+++ new/pynetbox-4.2.4/pynetbox/core/query.py   2020-01-12 07:26:06.0 
+0100
@@ -140,6 +140,7 @@
 private_key=None,
 session_key=None,
 ssl_verify=True,
+url=None,
 ):
 """
 Instantiates a new Request object
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.2/pynetbox/core/response.py 
new/pynetbox-4.2.4/pynetbox/core/response.py
--- old/pynetbox-4.2.2/pynetbox/core/response.py2019-12-10 
17:27:36.0 +0100
+++ new/pynetbox-4.2.4/pynetbox/core/response.py2020-01-12 
07:26:06.0 +0100
@@ -384,8 +384,8 @@
 if diff:
 serialized = self.serialize()
 req = Request(
-key=self.id,
-base=self.endpoint.url,
+key=self.id if not self.url else None,
+base=self.url or self.endpoint.url,
 token=self.api.token,
 session_key=self.api.session_key,
 ssl_verify=self.api.ssl_verify,
@@ -433,8 +433,8 @@
 >>>
 """
 req = Request(
-key=self.id,
-base=self.endpoint.url,
+key=self.id if not self.url else None,
+base=self.url or self.endpoint.url,
 token=self.api.token,
 session_key=self.api.session_key,
 ssl_verify=self.api.ssl_verify,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.2/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.2.4/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.2.2/pynetbox.egg-info/PKG-INFO   2019-12-10 
17:27:53.0 +0100
+++ new/pynetbox-4.2.4/pynetbox.egg-info/PKG-INFO   2020-01-12 
07:26:20.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.2
+Version: 4.2.4
 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-4.2.2/tests/unit/test_response.py 
new/pynetbox-4.2.4/tests/unit/test_response.py
--- old/pynetbox-4.2.2/tests/unit/test_response.py  2019-12-10 
17:27

commit python-pynetbox for openSUSE:Factory

2019-12-11 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-12-11 12:13:52

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.4691 (New)


Package is "python-pynetbox"

Wed Dec 11 12:13:52 2019 rev:8 rq:755726 version:4.2.2

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-12-02 11:30:59.362569896 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.4691/python-pynetbox.changes
2019-12-11 12:14:12.092527117 +0100
@@ -1,0 +2,8 @@
+Tue Dec 10 18:37:10 UTC 2019 - Martin Hauke 
+
+- Update to version 4.2.2
+  * Fixes issues with hashing Record objects by adding name
+attribute to Endpoint and __eq__ method to Record objects to
+facilitate comparison.
+
+---

Old:

  pynetbox-4.2.1.tar.gz

New:

  pynetbox-4.2.2.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.sw0rur/_old  2019-12-11 12:14:13.268526786 +0100
+++ /var/tmp/diff_new_pack.sw0rur/_new  2019-12-11 12:14:13.272526785 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.2.1
+Version:4.2.2
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.2.1.tar.gz -> pynetbox-4.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.1/PKG-INFO new/pynetbox-4.2.2/PKG-INFO
--- old/pynetbox-4.2.1/PKG-INFO 2019-11-27 00:27:00.0 +0100
+++ new/pynetbox-4.2.2/PKG-INFO 2019-12-10 17:27:54.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.1
+Version: 4.2.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-4.2.1/pynetbox/core/endpoint.py 
new/pynetbox-4.2.2/pynetbox/core/endpoint.py
--- old/pynetbox-4.2.1/pynetbox/core/endpoint.py2019-11-27 
00:26:42.0 +0100
+++ new/pynetbox-4.2.2/pynetbox/core/endpoint.py2019-12-10 
17:27:36.0 +0100
@@ -42,6 +42,7 @@
 
 def __init__(self, api, app, name, model=None):
 self.return_obj = self._lookup_ret_obj(name, model)
+self.name = name.replace("_", "-")
 self.api = api
 self.base_url = api.base_url
 self.token = api.token
@@ -50,7 +51,7 @@
 self.url = "{base_url}/{app}/{endpoint}".format(
 base_url=self.base_url,
 app=app.name,
-endpoint=name.replace("_", "-"),
+endpoint=self.name,
 )
 self._choices = None
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.1/pynetbox/core/response.py 
new/pynetbox-4.2.2/pynetbox/core/response.py
--- old/pynetbox-4.2.1/pynetbox/core/response.py2019-11-27 
00:26:42.0 +0100
+++ new/pynetbox-4.2.2/pynetbox/core/response.py2019-12-10 
17:27:36.0 +0100
@@ -213,11 +213,19 @@
 def __setstate__(self, d):
 self.__dict__.update(d)
 
-def __hash__(self):
+def __key__(self):
 if hasattr(self, "id"):
-return hash((self.endpoint.name, self.id))
+return (self.endpoint.name, self.id)
 else:
-return hash(self.endpoint.name)
+return (self.endpoint.name)
+
+def __hash__(self):
+return hash(self.__key__())
+
+def __eq__(self, other):
+if isinstance(other, Record):
+return self.__key__() == other.__key__()
+return NotImplemented
 
 def _add_cache(self, item):
 key, value = item
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.1/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.2.2/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.2.1/pynetbox.egg-info/PKG-INFO   2019-11-27 
00:26:59.0 +0100
+++ new/pynetbox-4.2.2/pynetbox.egg-info/PKG-INFO   2019-12-10 
17:27:53.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.1
+Version: 4.2.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-4.2.1/tests/unit/test_response.py 
new/pynetbox-4.2.2/tests/unit/test_response.py
--- old/pynetbox-4.2.1/tests/unit/test_response.py  2019-11-27 
00:26:42.0 

commit python-pynetbox for openSUSE:Factory

2019-12-02 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-12-02 11:28:51

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.4691 (New)


Package is "python-pynetbox"

Mon Dec  2 11:28:51 2019 rev:7 rq:751840 version:4.2.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-11-22 10:27:25.385238185 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.4691/python-pynetbox.changes
2019-12-02 11:30:59.362569896 +0100
@@ -1,0 +2,6 @@
+Wed Nov 27 07:16:18 UTC 2019 - Martin Hauke 
+
+- Update to version 4.2.1
+  * Fixes infinite loop when filtering with paginated results. 
+
+---

Old:

  pynetbox-4.2.0.tar.gz

New:

  pynetbox-4.2.1.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.cbuPD7/_old  2019-12-02 11:30:59.818569684 +0100
+++ /var/tmp/diff_new_pack.cbuPD7/_new  2019-12-02 11:30:59.830569679 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.2.0
+Version:4.2.1
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.2.0.tar.gz -> pynetbox-4.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.0/PKG-INFO new/pynetbox-4.2.1/PKG-INFO
--- old/pynetbox-4.2.0/PKG-INFO 2019-11-20 19:30:45.0 +0100
+++ new/pynetbox-4.2.1/PKG-INFO 2019-11-27 00:27:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.0
+Version: 4.2.1
 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-4.2.0/README.md new/pynetbox-4.2.1/README.md
--- old/pynetbox-4.2.0/README.md2019-11-20 19:30:27.0 +0100
+++ new/pynetbox-4.2.1/README.md2019-11-27 00:26:42.0 +0100
@@ -1,7 +1,7 @@
 [![Build 
Status](https://travis-ci.org/digitalocean/pynetbox.svg?branch=master)](https://travis-ci.org/digitalocean/pynetbox)
 
 # Pynetbox
-Python API client library for [NetBox](https://github.com/digitalocean/netbox).
+Python API client library for 
[NetBox](https://github.com/netbox-community/netbox).
 
 
 ## Installation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.0/pynetbox/core/query.py 
new/pynetbox-4.2.1/pynetbox/core/query.py
--- old/pynetbox-4.2.0/pynetbox/core/query.py   2019-11-20 19:30:27.0 
+0100
+++ new/pynetbox-4.2.1/pynetbox/core/query.py   2019-11-27 00:26:42.0 
+0100
@@ -235,10 +235,11 @@
 headers["X-Session-Key"] = self.session_key
 
 params = {}
-if self.filters:
-params = self.filters
-if add_params:
-params.update(add_params)
+if not url_override:
+if self.filters:
+params = self.filters
+if add_params:
+params.update(add_params)
 
 req = getattr(self.http_session, verb)(
 url_override or self.url, headers=headers, verify=self.ssl_verify,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.2.0/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.2.1/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.2.0/pynetbox.egg-info/PKG-INFO   2019-11-20 
19:30:45.0 +0100
+++ new/pynetbox-4.2.1/pynetbox.egg-info/PKG-INFO   2019-11-27 
00:26:59.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.2.0
+Version: 4.2.1
 Summary: NetBox API client library
 Home-page: https://github.com/digitalocean/pynetbox
 Author: Zach Moody




commit python-pynetbox for openSUSE:Factory

2019-11-22 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-11-22 10:27:13

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.26869 (New)


Package is "python-pynetbox"

Fri Nov 22 10:27:13 2019 rev:6 rq:750092 version:4.2.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-11-20 10:29:50.590593441 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.26869/python-pynetbox.changes   
2019-11-22 10:27:25.385238185 +0100
@@ -1,0 +2,8 @@
+Wed Nov 20 20:21:16 UTC 2019 - Martin Hauke 
+
+- Update to version 4.2.0
+  * Fix discrepancy in DetailEndpoint.create() and the docs where
+calling w/o arguments resulted in an exception.
+  * Add method to return custom choices.
+
+---

Old:

  pynetbox-4.1.2.tar.gz

New:

  pynetbox-4.2.0.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.09YkAD/_old  2019-11-22 10:27:26.701237798 +0100
+++ /var/tmp/diff_new_pack.09YkAD/_new  2019-11-22 10:27:26.705237796 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.1.2
+Version:4.2.0
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.1.2.tar.gz -> pynetbox-4.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.2/PKG-INFO new/pynetbox-4.2.0/PKG-INFO
--- old/pynetbox-4.1.2/PKG-INFO 2019-11-19 05:44:06.0 +0100
+++ new/pynetbox-4.2.0/PKG-INFO 2019-11-20 19:30:45.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.2
+Version: 4.2.0
 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-4.1.2/pynetbox/api.py 
new/pynetbox-4.2.0/pynetbox/api.py
--- old/pynetbox-4.1.2/pynetbox/api.py  2019-11-19 05:43:48.0 +0100
+++ new/pynetbox-4.2.0/pynetbox/api.py  2019-11-20 19:30:27.0 +0100
@@ -78,6 +78,29 @@
 
 return self._choices
 
+def custom_choices(self):
+""" Returns _custom_field_choices response from app
+
+:Returns: Raw response from NetBox's _custom_field_choices endpoint.
+:Raises: :py:class:`.RequestError` if called for an invalid endpoint.
+:Example:
+
+>>> nb.extras.custom_choices()
+{'Testfield1': {'Testvalue2': 2, 'Testvalue1': 1},
+ 'Testfield2': {'Othervalue2': 4, 'Othervalue1': 3}}
+"""
+custom_field_choices = Request(
+base="{}/{}/_custom_field_choices/".format(
+self.api.base_url,
+self.name,
+),
+token=self.api.token,
+private_key=self.api.private_key,
+ssl_verify=self.api.ssl_verify,
+http_session=self.api.http_session,
+).get()
+return custom_field_choices
+
 
 class Api(object):
 """ The API object is the point of entry to pynetbox.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.2/pynetbox/core/endpoint.py 
new/pynetbox-4.2.0/pynetbox/core/endpoint.py
--- old/pynetbox-4.1.2/pynetbox/core/endpoint.py2019-11-19 
05:43:48.0 +0100
+++ new/pynetbox-4.2.0/pynetbox/core/endpoint.py2019-11-20 
19:30:27.0 +0100
@@ -443,7 +443,7 @@
 )
 return req
 
-def create(self, data):
+def create(self, data=None):
 """The write operation for a detail endpoint.
 
 Creates objects on a detail endpoint in NetBox.
@@ -456,6 +456,8 @@
 :returns: A dictionary or list of dictionaries its created in
 NetBox.
 """
+if not data:
+return Request(**self.request_kwargs).post({})
 return Request(**self.request_kwargs).post(data)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.2/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.2.0/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.1.2/pynetbox.egg-info/PKG-INFO   2019-11-19 
05:44:05.0 +0100
+++ new/pynetbox-4.2.0/pynetbox.egg-info/PKG-INFO   2019-11-20 
19:30:45.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.2
+Version: 4.2.0
 Summary: NetBox API client library
 Home-page: https://github.com/digitalocean/pynetbox
 Author: Zach Moody
diff -urN '--exclu

commit python-pynetbox for openSUSE:Factory

2019-11-20 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-11-20 10:29:47

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.26869 (New)


Package is "python-pynetbox"

Wed Nov 20 10:29:47 2019 rev:5 rq:749809 version:4.1.2

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-11-19 12:59:17.666135235 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.26869/python-pynetbox.changes   
2019-11-20 10:29:50.590593441 +0100
@@ -1,0 +2,6 @@
+Tue Nov 19 18:13:35 UTC 2019 - Martin Hauke 
+
+- Update to version 4.1.2
+  * Fixes URL in get_session_key
+
+---

Old:

  pynetbox-4.1.1.tar.gz

New:

  pynetbox-4.1.2.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.JDhff4/_old  2019-11-20 10:29:51.110593544 +0100
+++ /var/tmp/diff_new_pack.JDhff4/_new  2019-11-20 10:29:51.114593545 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.1.1
+Version:4.1.2
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.1.1.tar.gz -> pynetbox-4.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.1/PKG-INFO new/pynetbox-4.1.2/PKG-INFO
--- old/pynetbox-4.1.1/PKG-INFO 2019-11-18 18:06:36.0 +0100
+++ new/pynetbox-4.1.2/PKG-INFO 2019-11-19 05:44:06.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.1
+Version: 4.1.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-4.1.1/pynetbox/core/query.py 
new/pynetbox-4.1.2/pynetbox/core/query.py
--- old/pynetbox-4.1.1/pynetbox/core/query.py   2019-11-18 18:06:16.0 
+0100
+++ new/pynetbox-4.1.2/pynetbox/core/query.py   2019-11-19 05:43:48.0 
+0100
@@ -196,7 +196,7 @@
 :Returns: String containing session key.
 """
 req = self.http_session.post(
-"{}/secrets/get-session-key/?preserve_key=True".format(self.base),
+"{}secrets/get-session-key/?preserve_key=True".format(self.base),
 headers={
 "accept": "application/json",
 "authorization": "Token {}".format(self.token),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.1/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.1.2/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.1.1/pynetbox.egg-info/PKG-INFO   2019-11-18 
18:06:36.0 +0100
+++ new/pynetbox-4.1.2/pynetbox.egg-info/PKG-INFO   2019-11-19 
05:44:05.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.1
+Version: 4.1.2
 Summary: NetBox API client library
 Home-page: https://github.com/digitalocean/pynetbox
 Author: Zach Moody




commit python-pynetbox for openSUSE:Factory

2019-11-19 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-11-19 12:59:16

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.26869 (New)


Package is "python-pynetbox"

Tue Nov 19 12:59:16 2019 rev:4 rq:749411 version:4.1.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-11-17 19:23:05.686867547 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.26869/python-pynetbox.changes   
2019-11-19 12:59:17.666135235 +0100
@@ -1,0 +2,6 @@
+Mon Nov 18 19:17:43 UTC 2019 - Martin Hauke 
+
+- Update to version 4.1.1
+  * Fix Endpoint.choices() by assigning http_session.
+
+---

Old:

  pynetbox-4.1.0.tar.gz

New:

  pynetbox-4.1.1.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.5iKGxK/_old  2019-11-19 12:59:18.210134892 +0100
+++ /var/tmp/diff_new_pack.5iKGxK/_new  2019-11-19 12:59:18.210134892 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.1.0
+Version:4.1.1
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.1.0.tar.gz -> pynetbox-4.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.0/PKG-INFO new/pynetbox-4.1.1/PKG-INFO
--- old/pynetbox-4.1.0/PKG-INFO 2019-11-16 03:39:46.0 +0100
+++ new/pynetbox-4.1.1/PKG-INFO 2019-11-18 18:06:36.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.0
+Version: 4.1.1
 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-4.1.0/pynetbox/api.py 
new/pynetbox-4.1.1/pynetbox/api.py
--- old/pynetbox-4.1.0/pynetbox/api.py  2019-11-16 03:39:27.0 +0100
+++ new/pynetbox-4.1.1/pynetbox/api.py  2019-11-18 18:06:16.0 +0100
@@ -189,5 +189,6 @@
 version = Request(
 base=self.base_url,
 ssl_verify=self.ssl_verify,
+http_session=self.http_session,
 ).get_version()
 return version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.0/pynetbox/core/endpoint.py 
new/pynetbox-4.1.1/pynetbox/core/endpoint.py
--- old/pynetbox-4.1.0/pynetbox/core/endpoint.py2019-11-16 
03:39:27.0 +0100
+++ new/pynetbox-4.1.1/pynetbox/core/endpoint.py2019-11-18 
18:06:16.0 +0100
@@ -325,6 +325,7 @@
 token=self.api.token,
 private_key=self.api.private_key,
 ssl_verify=self.api.ssl_verify,
+http_session=self.api.http_session,
 ).options()
 try:
 post_data = req['actions']['POST']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.0/pynetbox/core/query.py 
new/pynetbox-4.1.1/pynetbox/core/query.py
--- old/pynetbox-4.1.0/pynetbox/core/query.py   2019-11-16 03:39:27.0 
+0100
+++ new/pynetbox-4.1.1/pynetbox/core/query.py   2019-11-18 18:06:16.0 
+0100
@@ -132,14 +132,14 @@
 
 def __init__(
 self,
-base=None,
+base,
+http_session,
 filters=None,
 key=None,
 token=None,
 private_key=None,
 session_key=None,
 ssl_verify=True,
-http_session=None,
 ):
 """
 Instantiates a new Request object
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.1.0/pynetbox.egg-info/PKG-INFO 
new/pynetbox-4.1.1/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-4.1.0/pynetbox.egg-info/PKG-INFO   2019-11-16 
03:39:46.0 +0100
+++ new/pynetbox-4.1.1/pynetbox.egg-info/PKG-INFO   2019-11-18 
18:06:36.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.1.0
+Version: 4.1.1
 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-4.1.0/tests/unit/test_endpoint.py 
new/pynetbox-4.1.1/tests/unit/test_endpoint.py
--- old/pynetbox-4.1.0/tests/unit/test_endpoint.py  2019-11-16 
03:39:27.0 +0100
+++ new/pynetbox-4.1.1/tests/unit/test_endpoint.py  2019-11-18 
18:06:16.0 +0100
@@ -38,3 +38,27 @@
 test_obj = Endpoint(api, app,

commit python-pynetbox for openSUSE:Factory

2019-11-17 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-11-17 19:23:02

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.26869 (New)


Package is "python-pynetbox"

Sun Nov 17 19:23:02 2019 rev:3 rq:749045 version:4.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-09-30 15:59:19.761227737 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.26869/python-pynetbox.changes   
2019-11-17 19:23:05.686867547 +0100
@@ -1,0 +2,18 @@
+Sat Nov 16 11:18:49 UTC 2019 - Martin Hauke 
+
+- Update to version 4.1.0
+  * Makes use of session in requests
+  * Adds Api.version property to query the NetBox version
+  * Adds .choices() method to endpoint objects that utilizes DRF's
+OPTIONS method for discovering available choices for fields
+that use it. This method will eventually replace App.choices()
+when NetBox retires the /_choices endpoint.
+  * Adds count() method to Endpoint object.
+  * Use requests params to form URL parameters.
+  * Creates a custom model for ChangeObjects and sets its __str__
+to request_id.
+  * Implements __hash__ method on Record.
+  * Implements JsonField object.
+  * Adds local_context_data field to device model as dict.
+
+---

Old:

  pynetbox-4.0.8.tar.gz

New:

  pynetbox-4.1.0.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.UCzIh2/_old  2019-11-17 19:23:06.894867034 +0100
+++ /var/tmp/diff_new_pack.UCzIh2/_new  2019-11-17 19:23:06.898867032 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.0.8
+Version:4.1.0
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.0.8.tar.gz -> pynetbox-4.1.0.tar.gz ++
 1793 lines of diff (skipped)




commit python-pynetbox for openSUSE:Factory

2019-09-30 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-09-30 15:59:16

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.2352 (New)


Package is "python-pynetbox"

Mon Sep 30 15:59:16 2019 rev:2 rq:733771 version:4.0.8

Changes:

--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes  
2019-09-27 14:49:01.584674587 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.2352/python-pynetbox.changes
2019-09-30 15:59:19.761227737 +0200
@@ -1,0 +2,6 @@
+Fri Sep 27 22:21:50 UTC 2019 - Martin Hauke 
+
+- Update to version 4.0.8
+  * Returns ContentError when 2XX response but not JSON.
+
+---

Old:

  pynetbox-4.0.7.tar.gz

New:

  pynetbox-4.0.8.tar.gz



Other differences:
--
++ python-pynetbox.spec ++
--- /var/tmp/diff_new_pack.xoTHAI/_old  2019-09-30 15:59:20.649225374 +0200
+++ /var/tmp/diff_new_pack.xoTHAI/_new  2019-09-30 15:59:20.653225364 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pynetbox
-Version:4.0.7
+Version:4.0.8
 Release:0
 Summary:NetBox API client library
 License:Apache-2.0

++ pynetbox-4.0.7.tar.gz -> pynetbox-4.0.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.0.7/PKG-INFO new/pynetbox-4.0.8/PKG-INFO
--- old/pynetbox-4.0.7/PKG-INFO 2019-09-13 17:11:18.0 +0200
+++ new/pynetbox-4.0.8/PKG-INFO 2019-09-27 15:57:13.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pynetbox
-Version: 4.0.7
+Version: 4.0.8
 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-4.0.7/pynetbox/__init__.py 
new/pynetbox-4.0.8/pynetbox/__init__.py
--- old/pynetbox-4.0.7/pynetbox/__init__.py 2019-09-13 17:11:00.0 
+0200
+++ new/pynetbox-4.0.8/pynetbox/__init__.py 2019-09-27 15:56:53.0 
+0200
@@ -1,6 +1,6 @@
 from pkg_resources import get_distribution, DistributionNotFound
 
-from pynetbox.core.query import RequestError
+from pynetbox.core.query import RequestError, AllocationError, ContentError
 from pynetbox.api import Api as api
 
 try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pynetbox-4.0.7/pynetbox/core/query.py 
new/pynetbox-4.0.8/pynetbox/core/query.py
--- old/pynetbox-4.0.7/pynetbox/core/query.py   2019-09-13 17:11:00.0 
+0200
+++ new/pynetbox-4.0.8/pynetbox/core/query.py   2019-09-27 15:56:53.0 
+0200
@@ -92,6 +92,29 @@
 self.error = message
 
 
+class ContentError(Exception):
+"""Content Exception
+
+If the API URL does not point to a valid NetBox API, the server may
+return a valid response code, but the content is not json. This
+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)
+self.req = req
+self.request_body = req.request.body
+self.url = req.url
+self.error = message
+
+
 class Request(object):
 """Creates requests to the Netbox API
 
@@ -157,7 +180,10 @@
 verify=self.ssl_verify,
 )
 if req.ok:
-return req.json()["session_key"]
+try:
+return req.json()["session_key"]
+except json.JSONDecodeError:
+raise ContentError(req)
 else:
 raise RequestError(req)
 
@@ -214,6 +240,7 @@
 any paginated results.
 
 :raises: RequestError if req.ok returns false.
+:raises: ContentError if response is not json.
 
 :Returns: List of `Response` objects returned from the
 endpoint.
@@ -228,7 +255,10 @@
 
 req = requests.get(url, headers=headers, verify=self.ssl_verify)
 if req.ok:
-return req.json()
+try:
+return req.json()
+except json.JSONDecodeError:
+raise ContentError(req)
 else:
 raise RequestError(req)
 
@@ -266,6 +296,7 @@
 :param data: (dict) Contains a dict that will be turned into a
 json object and sent to the API.
 :raises: RequestError if req.ok returns false.
+   

commit python-pynetbox for openSUSE:Factory

2019-09-27 Thread root
Hello community,

here is the log from the commit of package python-pynetbox for openSUSE:Factory 
checked in at 2019-09-27 14:49:00

Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
 and  /work/SRC/openSUSE:Factory/.python-pynetbox.new.2352 (New)


Package is "python-pynetbox"

Fri Sep 27 14:49:00 2019 rev:1 rq:731431 version:4.0.7

Changes:

New Changes file:

--- /dev/null   2019-09-25 09:10:10.894331610 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pynetbox.new.2352/python-pynetbox.changes
2019-09-27 14:49:01.584674587 +0200
@@ -0,0 +1,199 @@
+---
+Mon Sep 16 21:49:19 UTC 2019 - Martin Hauke 
+
+- Update to version 4.0.7
+  * Returns AllocationError when NetBox responds with a 204 to
+Allocation requests
+  * Makes App object pickleable
+
+- Update to version 4.0.6
+  * Fixes behavior where appending an existing VLAN object id to
+tagged_vlans would cause .save() to still trigger a PATCH
+operation.
+- Run testsuite
+
+---
+Sat Dec 15 20:47:40 UTC 2018 - mar...@gmx.de
+
+- Update to version 4.0.5
+  * Fixes list comparison issue in Record._diff.
+  * Returns None from Endpoint.get() when no items are found instead
+of empty list from .filter().
+
+- Update to version 4.0.4
+  * Fixes IndexError introduced by fix for #127 when field is empty
+list.
+
+- Update to version 4.0.3
+  * Fixes __iter__ method on Record object so that it properly returns
+lists of record objects. Like tagged_vlans on for Interfaces.
+
+---
+Fri Dec  7 06:47:50 UTC 2018 - mar...@gmx.de
+
+- Update to version 4.0.2
+  * Fixes TypeError when calling save on interfaces Record with
+tagged_vlans.
+
+---
+Thu Dec  6 18:46:11 UTC 2018 - mar...@gmx.de
+
+- Update to version 4.0.1
+  * Adds missing authentication credentials for .choices().
+
+---
+Wed Dec  5 19:10:36 UTC 2018 - mar...@gmx.de
+
+- Update to version 4.0.0
+  Enhancements
+  * Added cable endpoint support coming in NetBox 2.5.
+  * Added some detail to the ValueError raised when .get() returns
+more than one object.
+  * Added reserved kwargs to .get() and .filter() ("id", "pk",
+"limit", "offset").
+  * Made RequestError more verbose when the NetBox API returns a
+json response. Also added more details when a 404 is returned
+(e.g. misspelled endpoints).
+
+  API Changes
+  * Switch to using PATCH instead of PUTs for updates. Also added
+an .update() method to Response objects that takes a dictionary
+to update multiple values on the object.
+  * Add basic support for the _choices endpoint on each app by adding
+a choices() method to the App object.
+  * - Return Record objects from .create().
+
+  Bug Fixes
+  * Raise an exception now if .filter() is passed no kwargs.
+  * Fixes some miscellaneous issues related to converting certain
+Record object's fields into netaddr.IPNetwork objects. That feature
+has been removed and it simply return strings now.
+
+---
+Sat Dec  1 11:52:19 UTC 2018 - mar...@gmx.de
+
+- Update to versino 3.4.11
+  * Bugfix release
+
+---
+Thu Nov 29 19:41:49 UTC 2018 - mar...@gmx.de
+
+- Update to version 3.4.10
+  * Should actually fix idempotent tags (#94) now.
+
+---
+Tue Nov 27 16:59:34 UTC 2018 - mar...@gmx.de
+
+- Update to version 3.4.9
+  * Fixes #94 where users were unable to use .append() to add a tag.
+This converts tag lists to a set and back to a list when
+serialize() is called so we don't send an update when we append
+a tag that's already there.
+
+---
+Tue Nov 27 16:55:17 UTC 2018 - mar...@gmx.de
+
+- Update to version 3.4.8
+  * Fixes #106 by adding a units DetailEndpoint onto the Racks object
+that lets users get the devices in a rack.
+Calling netbox.dcim.racks.get(x).units.list() will return a list
+of RU objects that have a device attribute populated with a Record
+object of the device in that RU.
+  * Fixes #110 in serializer that failed to handle tagged_vlans field
+correctly. This also added the ability for objects stored in lists
+to be turned into Record objects requested in #92
+
+---
+Wed Oct 10 18:42:42 UTC 2018 - mar...@gmx.de
+
+- Update to version 3.4.7
+  * Fixes memory leak in endpoints.filter() by getting rid of
+