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 2021-08-03 22:48:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pynetbox (Old)
and /work/SRC/openSUSE:Factory/.python-pynetbox.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pynetbox"
Tue Aug 3 22:48:33 2021 rev:24 rq:909762 version:6.1.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pynetbox/python-pynetbox.changes
2021-04-17 23:25:10.069614778 +0200
+++
/work/SRC/openSUSE:Factory/.python-pynetbox.new.1899/python-pynetbox.changes
2021-08-03 22:48:39.556502774 +0200
@@ -1,0 +2,7 @@
+Sun Aug 1 09:33:26 UTC 2021 - Martin Hauke <[email protected]>
+
+- Update to version 6.1.3
+ * Adds dash-separated plugin endpoint name support
+- Do not longer build for python2 (upsteam dropped support).
+
+-------------------------------------------------------------------
Old:
----
pynetbox-6.1.2.tar.gz
New:
----
pynetbox-6.1.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pynetbox.spec ++++++
--- /var/tmp/diff_new_pack.8SuEEp/_old 2021-08-03 22:48:40.124502089 +0200
+++ /var/tmp/diff_new_pack.8SuEEp/_new 2021-08-03 22:48:40.128502084 +0200
@@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-pynetbox
-Version: 6.1.2
+Version: 6.1.3
Release: 0
Summary: NetBox API client library
License: Apache-2.0
++++++ pynetbox-6.1.2.tar.gz -> pynetbox-6.1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.1.2/PKG-INFO new/pynetbox-6.1.3/PKG-INFO
--- old/pynetbox-6.1.2/PKG-INFO 2021-04-15 18:10:46.311832200 +0200
+++ new/pynetbox-6.1.3/PKG-INFO 2021-07-31 01:24:57.024464100 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pynetbox
-Version: 6.1.2
+Version: 6.1.3
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.1.2/pynetbox/core/app.py
new/pynetbox-6.1.3/pynetbox/core/app.py
--- old/pynetbox-6.1.2/pynetbox/core/app.py 2021-04-15 18:10:35.000000000
+0200
+++ new/pynetbox-6.1.3/pynetbox/core/app.py 2021-07-31 01:24:46.000000000
+0200
@@ -95,6 +95,12 @@
def custom_choices(self):
""" Returns _custom_field_choices response from app
+ .. note::
+
+ This method only works with NetBox version 2.9.x or older. NetBox
+ 2.10.0 introduced the ``/extras/custom-fields/`` endpoint that can
+ be used f.ex. like ``nb.extras.custom_fields.all()``.
+
:Returns: Raw response from NetBox's _custom_field_choices endpoint.
:Raises: :py:class:`.RequestError` if called for an invalid endpoint.
:Example:
@@ -155,7 +161,7 @@
self.__dict__.update(d)
def __getattr__(self, name):
- return App(self.api, "plugins/{}".format(name))
+ return App(self.api, "plugins/{}".format(name.replace("_", "-")))
def installed_plugins(self):
""" Returns raw response with installed plugins
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pynetbox-6.1.2/pynetbox.egg-info/PKG-INFO
new/pynetbox-6.1.3/pynetbox.egg-info/PKG-INFO
--- old/pynetbox-6.1.2/pynetbox.egg-info/PKG-INFO 2021-04-15
18:10:46.000000000 +0200
+++ new/pynetbox-6.1.3/pynetbox.egg-info/PKG-INFO 2021-07-31
01:24:56.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pynetbox
-Version: 6.1.2
+Version: 6.1.3
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.1.2/tests/test_app.py
new/pynetbox-6.1.3/tests/test_app.py
--- old/pynetbox-6.1.2/tests/test_app.py 2021-04-15 18:10:35.000000000
+0200
+++ new/pynetbox-6.1.3/tests/test_app.py 2021-07-31 01:24:46.000000000
+0200
@@ -73,3 +73,8 @@
plugins = api.plugins.installed_plugins()
self.assertEqual(len(plugins), 1)
self.assertEqual(plugins[0]["name"], "test_plugin")
+
+ def test_plugin_app_name(self, *_):
+ api = pynetbox.api(host, **def_kwargs)
+ test_plugin = api.plugins.test_plugin
+ self.assertEqual(test_plugin.name, "plugins/test-plugin")