Accepting request 1226858 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1226858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-junos-eznc?expand=0&rev=18
This commit is contained in:
Ana Guerrero 2024-11-27 21:12:49 +00:00 committed by Git OBS Bridge
commit 03706373ef
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,23 @@
Index: py-junos-eznc-2.7.2/lib/jnpr/junos/transport/tty_telnet.py
===================================================================
--- py-junos-eznc-2.7.2.orig/lib/jnpr/junos/transport/tty_telnet.py
+++ py-junos-eznc-2.7.2/lib/jnpr/junos/transport/tty_telnet.py
@@ -1,5 +1,5 @@
from time import sleep
-import telnetlib
+from netmiko._telnetlib import telnetlib
import logging
import sys
Index: py-junos-eznc-2.7.2/requirements.txt
===================================================================
--- py-junos-eznc-2.7.2.orig/requirements.txt
+++ py-junos-eznc-2.7.2/requirements.txt
@@ -5,6 +5,7 @@ scp>=0.7.0
jinja2>=2.7.1
PyYAML>=5.1
paramiko>=3.5.0
+netmiko>=4.4.0
pyserial
pyparsing
transitions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 27 08:56:52 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- Add get-telnetlib-from-netmiko.patch, telnetlib was removed from
the standardlibrary in Python 3.13
* https://github.com/Juniper/py-junos-eznc/issues/1324
-------------------------------------------------------------------
Mon Oct 28 05:41:18 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -29,10 +29,13 @@ Source: https://github.com/Juniper/py-junos-eznc/archive/%{version}.tar.
Patch0: python-junos-eznc-remove-yamlordereddictloader.patch
# PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1307 Don't require six
Patch1: no-six.patch
# PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1324 telnetlib not in py313 anymore
Patch2: get-telnetlib-from-netmiko.patch
BuildRequires: %{python_module Jinja2 >= 2.7.1}
BuildRequires: %{python_module PyYAML >= 5.1}
BuildRequires: %{python_module lxml >= 3.2.4}
BuildRequires: %{python_module ncclient >= 0.6.15}
BuildRequires: %{python_module netmiko >= 4.4.0}
BuildRequires: %{python_module nose2}
BuildRequires: %{python_module ntc-templates}
BuildRequires: %{python_module paramiko >= 1.15.2}
@ -50,6 +53,7 @@ Requires: python-Jinja2 >= 2.7.1
Requires: python-PyYAML >= 5.1
Requires: python-lxml >= 3.2.4
Requires: python-ncclient >= 0.6.15
Requires: python-netmiko >= 4.4.0
Requires: python-paramiko >= 1.15.2
Requires: python-pyparsing
Requires: python-pyserial