From 0848cefdeb0d135d4c0c51ddf4b16772e6efcfc09956ee05cc3c6562354b248f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Sep 2024 12:59:49 +0000 Subject: [PATCH] Accepting request 1202920 from home:ecsos:python - Update to 4.4.0 * New Drivers - Aruba AOS-CX * Other Major Changes - Add Python 3.13 support - Vendor telnetlib internally to Netmiko (PY3.13 dropped inclusion of telnetlib) * Other Improvements - Add save_config for Huawei VRPv8 - Expand SSH autodetect support - Improvements for Sophos driver - Clean up log filter after disconnect - Improve IOS-XR exit_config_mode() behavior OBS-URL: https://build.opensuse.org/request/show/1202920 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netmiko?expand=0&rev=50 --- netmiko-4.3.0.tar.gz | 3 --- netmiko-4.4.0.tar.gz | 3 +++ python-netmiko.changes | 16 ++++++++++++++++ python-netmiko.spec | 38 ++++++++++++++++++++++++-------------- 4 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 netmiko-4.3.0.tar.gz create mode 100644 netmiko-4.4.0.tar.gz diff --git a/netmiko-4.3.0.tar.gz b/netmiko-4.3.0.tar.gz deleted file mode 100644 index b39a107..0000000 --- a/netmiko-4.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da90f6efdf33b4140eb6cd7f2272773c2ce144fa74ac34d5ecac1b4d4607f1fb -size 141701 diff --git a/netmiko-4.4.0.tar.gz b/netmiko-4.4.0.tar.gz new file mode 100644 index 0000000..df7f851 --- /dev/null +++ b/netmiko-4.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25ff1237976aa3ff2cacf04949314638c899220a1675bd029e31b07ce20ce3b6 +size 151320 diff --git a/python-netmiko.changes b/python-netmiko.changes index cfb343b..f039b44 100644 --- a/python-netmiko.changes +++ b/python-netmiko.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Sep 24 11:13:34 UTC 2024 - ecsos + +- Update to 4.4.0 + * New Drivers + - Aruba AOS-CX + * Other Major Changes + - Add Python 3.13 support + - Vendor telnetlib internally to Netmiko (PY3.13 dropped inclusion of telnetlib) + * Other Improvements + - Add save_config for Huawei VRPv8 + - Expand SSH autodetect support + - Improvements for Sophos driver + - Clean up log filter after disconnect + - Improve IOS-XR exit_config_mode() behavior + ------------------------------------------------------------------- Tue Dec 12 13:37:47 UTC 2023 - Dirk Müller diff --git a/python-netmiko.spec b/python-netmiko.spec index df92558..4e87936 100644 --- a/python-netmiko.spec +++ b/python-netmiko.spec @@ -1,7 +1,7 @@ # # spec file for package python-netmiko # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,33 +18,38 @@ %{?sle15_python_module_pythons} Name: python-netmiko -Version: 4.3.0 +Version: 4.4.0 Release: 0 Summary: Multi-vendor library to simplify Paramiko SSH connections to network devices License: MIT Group: Development/Languages/Python URL: https://github.com/ktbyers/netmiko Source: https://files.pythonhosted.org/packages/source/n/netmiko/netmiko-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} +BuildRequires: %{python_module setuptools >= 65.0.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-PyYAML -Requires: python-ntc-templates -Requires: python-paramiko >= 2.6.0 -Requires: python-pyserial -Requires: python-scp >= 0.13.2 +Requires: python-PyYAML >= 5.3 +Requires: python-cffi >= 1.17.0rc1 +Requires: python-ntc-templates >= 3.1.0 +Requires: python-paramiko >= 2.9.5 +Requires: python-pyserial >= 3.3 +Requires: python-scp >= 0.13.6 Requires: python-setuptools Requires: python-tenacity -Requires: python-textfsm >= 1.1.2 +Requires: python-textfsm >= 1.1.3 Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module PyYAML >= 5.3} BuildRequires: %{python_module paramiko >= 2.6.0} -BuildRequires: %{python_module pyserial} +BuildRequires: %{python_module pyserial >= 3.3} BuildRequires: %{python_module scp >= 0.13.2} -BuildRequires: %{python_module textfsm} +BuildRequires: %{python_module textfsm >= 1.1.3} # /SECTION %python_subpackages @@ -59,14 +64,19 @@ sed -i -e '/^#!\//, 1d' \ netmiko/cdot/cdot_cros_ssh.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/netmiko-cfg %python_clone -a %{buildroot}%{_bindir}/netmiko-grep %python_clone -a %{buildroot}%{_bindir}/netmiko-show %python_expand %fdupes %{buildroot}%{$python_sitelib} +# Fix python-bytecode-inconsistent-mtime +pushd %{buildroot}%{python_sitelib} +find . -name '*.pyc' -exec rm -f '{}' ';' +python%python_bin_suffix -m compileall *.py ';' +popd %check # NOTE: for testing, we have to manually run it against a given device.