Hello community,

here is the log from the commit of package python-netmiko for 
openSUSE:Leap:15.2 checked in at 2020-06-08 15:11:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-netmiko (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-netmiko.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-netmiko"

Mon Jun  8 15:11:53 2020 rev:5 rq:812259 version:2.3.3

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-netmiko/python-netmiko.changes  
2020-01-15 15:50:46.663506230 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-netmiko.new.3606/python-netmiko.changes    
    2020-06-08 15:11:54.444988117 +0200
@@ -1,0 +2,6 @@
+Sun Jun  7 16:39:10 UTC 2020 - Max Lin <[email protected]>
+
+- Fix testing fail with textfsm >= 1.0.0
+  * Add netmiko-testing-textfsm-installed-as-module.patch
+
+-------------------------------------------------------------------

New:
----
  netmiko-testing-textfsm-installed-as-module.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-netmiko.spec ++++++
--- /var/tmp/diff_new_pack.TvtbVF/_old  2020-06-08 15:11:54.760988981 +0200
+++ /var/tmp/diff_new_pack.TvtbVF/_new  2020-06-08 15:11:54.760988981 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/ktbyers/netmiko
 Source:         
https://files.pythonhosted.org/packages/source/n/netmiko/netmiko-%{version}.tar.gz
+Patch0:         netmiko-testing-textfsm-installed-as-module.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -54,6 +55,7 @@
 
 %prep
 %setup -q -n netmiko-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ netmiko-testing-textfsm-installed-as-module.patch ++++++
>From ef77e21e0b52317ccce66c2d4a707d0890ff05ae Mon Sep 17 00:00:00 2001
From: Carl Montanari <[email protected]>
Date: Fri, 19 Jul 2019 14:02:55 -0700
Subject: [PATCH] testing textfsm installed as module (#1292)

---
 netmiko/_textfsm/_clitable.py | 8 +++++++-
 netmiko/utilities.py          | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

Index: b/netmiko/_textfsm/_clitable.py
===================================================================
--- a/netmiko/_textfsm/_clitable.py
+++ b/netmiko/_textfsm/_clitable.py
@@ -31,7 +31,13 @@ import copy
 import os
 import re
 import threading
-import copyable_regex_object
+
+try:
+    # TextFSM >= 1.0 (new package structure)
+    from textfsm import copyable_regex_object
+except ImportError:
+    # TextFSM <= 0.4.1
+    import copyable_regex_object
 import textfsm
 from netmiko._textfsm import _texttable as texttable
 
Index: b/netmiko/utilities.py
===================================================================
--- a/netmiko/utilities.py
+++ b/netmiko/utilities.py
@@ -6,9 +6,9 @@ import sys
 import io
 import os
 import serial.tools.list_ports
+from netmiko.py23_compat import text_type
 from netmiko._textfsm import _clitable as clitable
 from netmiko._textfsm._clitable import CliTableError
-from netmiko.py23_compat import text_type
 
 
 # Dictionary mapping 'show run' for vendors with different command

Reply via email to