From 0099ccbb42873004b37af7210cfb264024cd2054cc561fed0cf3212c7a634983 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 7 Apr 2021 20:06:09 +0000 Subject: [PATCH] Accepting request 883644 from home:mnhauke:network:automation - Update to version 6.0.1 * Fixes broken DetailEndpoint.list(). - Update to version 6.0.0 * BREAKING CHANGE Endpoint.all() and .filter() no longer return lists, instead they return a ReturnSet object now. Iterating over this object calls a generator which steps through paginated results now as-needed. * Endpoint.all() and .filter() now accept a limit kwarg that controls the page size of paginated results. * Fixes issue pickling responses from Endpoint.all() and `.filter(). * Implemented integration tests against four previous major NetBox releases. * Ends python 2 support. OBS-URL: https://build.opensuse.org/request/show/883644 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=43 --- pynetbox-5.3.0.tar.gz | 3 --- pynetbox-6.0.1.tar.gz | 3 +++ python-pynetbox.changes | 18 ++++++++++++++++++ python-pynetbox.spec | 5 +++-- 4 files changed, 24 insertions(+), 5 deletions(-) delete mode 100644 pynetbox-5.3.0.tar.gz create mode 100644 pynetbox-6.0.1.tar.gz diff --git a/pynetbox-5.3.0.tar.gz b/pynetbox-5.3.0.tar.gz deleted file mode 100644 index 9fe5dd7..0000000 --- a/pynetbox-5.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84b390fa08e9cfa07703b7b1d500038d2adef3b170b45afcef3e9a46e37ca402 -size 52600 diff --git a/pynetbox-6.0.1.tar.gz b/pynetbox-6.0.1.tar.gz new file mode 100644 index 0000000..af41db9 --- /dev/null +++ b/pynetbox-6.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b41c53bd40f3d03649fc016439cf38a98ffa8563f8b02b44d008937687155a61 +size 57503 diff --git a/python-pynetbox.changes b/python-pynetbox.changes index d292764..e2ef2f6 100644 --- a/python-pynetbox.changes +++ b/python-pynetbox.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Apr 7 15:27:32 UTC 2021 - Martin Hauke + +- Update to version 6.0.1 + * Fixes broken DetailEndpoint.list(). +- Update to version 6.0.0 + * BREAKING CHANGE Endpoint.all() and .filter() no longer return + lists, instead they return a ReturnSet object now. Iterating + over this object calls a generator which steps through + paginated results now as-needed. + * Endpoint.all() and .filter() now accept a limit kwarg that + controls the page size of paginated results. + * Fixes issue pickling responses from Endpoint.all() and + `.filter(). + * Implemented integration tests against four previous major + NetBox releases. + * Ends python 2 support. + ------------------------------------------------------------------- Mon Jan 4 21:48:00 UTC 2021 - Martin Hauke diff --git a/python-pynetbox.spec b/python-pynetbox.spec index 00d5c2f..e74c172 100644 --- a/python-pynetbox.spec +++ b/python-pynetbox.spec @@ -18,13 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pynetbox -Version: 5.3.0 +Version: 6.0.1 Release: 0 Summary: NetBox API client library License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/digitalocean/pynetbox Source: https://files.pythonhosted.org/packages/source/p/pynetbox/pynetbox-%{version}.tar.gz +BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module mock} BuildRequires: %{python_module netaddr} BuildRequires: %{python_module pytest} @@ -55,7 +56,7 @@ Python API client library for NetBox. %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %check -%pytest +%pytest tests/unit %files %{python_files} %doc README.md CHANGELOG.md