Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2023 05:14:53 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: ad8ad88640ff - 2023Q2 - security/py-netmiko: Update to 4.2.0
Message-ID:  <202305160514.34G5Er7l007972@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q2 has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ad8ad88640ffdfc033b746c4f94d74c71c1a159c

commit ad8ad88640ffdfc033b746c4f94d74c71c1a159c
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-05-16 05:04:55 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-05-16 05:11:46 +0000

    security/py-netmiko: Update to 4.2.0
    
    Changelog:
    
    https://github.com/ktbyers/netmiko/releases/tag/v4.2.0
    
    MFH:            2023Q2
    (cherry picked from commit 32fe20fdf45d3eaa64ecf8373389e55c706450fa)
---
 security/py-netmiko/Makefile                   | 19 +++++++++++--------
 security/py-netmiko/distinfo                   |  6 +++---
 security/py-netmiko/files/patch-pyproject.toml | 13 +++++++++++++
 security/py-netmiko/files/patch-setup.py       | 14 --------------
 4 files changed, 27 insertions(+), 25 deletions(-)

diff --git a/security/py-netmiko/Makefile b/security/py-netmiko/Makefile
index 9b4254596245..0f0ebfd07d81 100644
--- a/security/py-netmiko/Makefile
+++ b/security/py-netmiko/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	netmiko
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.1.2
+DISTVERSION=	4.2.0
 CATEGORIES=	security net-mgmt python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -11,19 +11,22 @@ WWW=		https://github.com/ktbyers/netmiko
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.3.2:devel/py-poetry-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ntc-templates>=2.0.0:textproc/py-ntc-templates@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}paramiko>=2.7.2:security/py-paramiko@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scp>=0.13.2:security/py-scp@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tenacity>0:devel/py-tenacity@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}textfsm>=1.1.2:textproc/py-textfsm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}paramiko>=2.9.5:security/py-paramiko@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyserial>=3.3:comms/py-pyserial@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scp>=0.13.6:security/py-scp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textfsm>=1.1.3:textproc/py-textfsm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=5.3:devel/py-yaml@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USES=		python:3.7+ shebangfix
+USE_PYTHON=	autoplist concurrent pep517
 USE_GITHUB=	yes
 GH_ACCOUNT=	ktbyers
+SHEBANG_FILES=	netmiko/cli_tools/netmiko_cfg.py \
+		netmiko/cli_tools/netmiko_grep.py \
+		netmiko/cli_tools/netmiko_show.py
 
 NO_ARCH=	yes
 
diff --git a/security/py-netmiko/distinfo b/security/py-netmiko/distinfo
index 04c6dc6c1c47..7ed43321b888 100644
--- a/security/py-netmiko/distinfo
+++ b/security/py-netmiko/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1662217057
-SHA256 (ktbyers-netmiko-v4.1.2_GH0.tar.gz) = cecba2893dbf2f03037d917b3497d096e18ccfa66a568fbec934d45e47fe859c
-SIZE (ktbyers-netmiko-v4.1.2_GH0.tar.gz) = 1101941
+TIMESTAMP = 1684003982
+SHA256 (ktbyers-netmiko-v4.2.0_GH0.tar.gz) = ed7057bbee8f16494a5176155871247c477cc26228b81982e3552ed4d0e11b7f
+SIZE (ktbyers-netmiko-v4.2.0_GH0.tar.gz) = 1282749
diff --git a/security/py-netmiko/files/patch-pyproject.toml b/security/py-netmiko/files/patch-pyproject.toml
new file mode 100644
index 000000000000..0281c285e8ad
--- /dev/null
+++ b/security/py-netmiko/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+Use the more lightweight py-poetry-core instead py-poetry and relax version requirements.
+
+--- pyproject.toml.orig	2023-05-13 19:02:47 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@
+ [build-system]
+-requires = ["poetry==1.3.2"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.3.2"]
++build-backend = "poetry.core.masonry.api"
+ 
+ [tool.poetry]
+ name = "netmiko"
diff --git a/security/py-netmiko/files/patch-setup.py b/security/py-netmiko/files/patch-setup.py
deleted file mode 100644
index 7fb677857419..000000000000
--- a/security/py-netmiko/files/patch-setup.py
+++ /dev/null
@@ -1,14 +0,0 @@
-Relax requirements for textproc/py-textfsm as it works with newer versions
-of TextFSM.
-
---- setup.py.orig	2022-09-03 15:00:57 UTC
-+++ setup.py
-@@ -52,7 +52,7 @@ setup(
-         "scp>=0.13.3",
-         "tenacity",
-         "pyyaml>=5.3",
--        "textfsm==1.1.2",
-+        "textfsm>=1.1.2",
-         "ntc-templates>=2.0.0",
-         "pyserial",
-     ],



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305160514.34G5Er7l007972>