aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2023-05-16 05:04:55 +0000
committerKai Knoblich <kai@FreeBSD.org>2023-05-16 05:09:49 +0000
commit32fe20fdf45d3eaa64ecf8373389e55c706450fa (patch)
tree68875ab7133cc12f253d1f96146b86613eb444c2
parent8d6658273d0d490c254c07fc222b2b91d112bb0a (diff)
downloadports-32fe20fdf45d3eaa64ecf8373389e55c706450fa.tar.gz
ports-32fe20fdf45d3eaa64ecf8373389e55c706450fa.zip
security/py-netmiko: Update to 4.2.0
-rw-r--r--security/py-netmiko/Makefile19
-rw-r--r--security/py-netmiko/distinfo6
-rw-r--r--security/py-netmiko/files/patch-pyproject.toml13
-rw-r--r--security/py-netmiko/files/patch-setup.py14
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",
- ],