diff --git a/textproc/py-ntc-templates/Makefile b/textproc/py-ntc-templates/Makefile index 95136dae0ab3..1128e9797120 100644 --- a/textproc/py-ntc-templates/Makefile +++ b/textproc/py-ntc-templates/Makefile @@ -1,30 +1,33 @@ PORTNAME= ntc-templates DISTVERSIONPREFIX= v -DISTVERSION= 4.1.0 +DISTVERSION= 4.2.0 CATEGORIES= textproc net-mgmt python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kai@FreeBSD.org COMMENT= TextFSM Templates for Network Devices WWW= https://github.com/networktocode/ntc-templates LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}textfsm>=1.1.0<2.0.0:textproc/py-textfsm@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}invoke>0:devel/py-invoke@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} USES= python USE_GITHUB= yes GH_ACCOUNT= networktocode USE_PYTHON= autoplist pep517 pytest TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes +post-patch: + ${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/pyproject.toml + .include diff --git a/textproc/py-ntc-templates/distinfo b/textproc/py-ntc-templates/distinfo index 2ac97521b36b..0736b55935f8 100644 --- a/textproc/py-ntc-templates/distinfo +++ b/textproc/py-ntc-templates/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1703065295 -SHA256 (networktocode-ntc-templates-v4.1.0_GH0.tar.gz) = 310858610d14a82b7a8fcd09b95262b3d3f64d4de07cd3c26e3b980e95cc9712 -SIZE (networktocode-ntc-templates-v4.1.0_GH0.tar.gz) = 1144934 +TIMESTAMP = 1706427859 +SHA256 (networktocode-ntc-templates-v4.2.0_GH0.tar.gz) = f282c2155e99dd93ffebf1f4e9210e711b9b9d9bcb4fa4fb131657c5f66cb786 +SIZE (networktocode-ntc-templates-v4.2.0_GH0.tar.gz) = 1164861 diff --git a/textproc/py-ntc-templates/files/patch-pyproject.toml b/textproc/py-ntc-templates/files/patch-pyproject.toml index 2861c16b3914..04ec5f1e6d51 100644 --- a/textproc/py-ntc-templates/files/patch-pyproject.toml +++ b/textproc/py-ntc-templates/files/patch-pyproject.toml @@ -1,25 +1,25 @@ Use the actual version, otherwise it would lead to staging errors as the produced wheels contain the wrong version. Avoid installing "LICENSE" and "README.md" on top of Python's "site-packages/" directory which would lead to conflicting packages. ---- pyproject.toml.orig 2023-12-19 17:04:20 UTC +--- pyproject.toml.orig 2024-01-27 23:01:03 UTC +++ pyproject.toml @@ -1,6 +1,6 @@ name = "ntc_templates" [tool.poetry] name = "ntc_templates" -version = "4.0.1" -+version = "4.1.0" ++version = "%%DISTVERSION%%" description = "TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable." authors = ["Network to Code "] license = "Apache-2.0" @@ -20,8 +20,6 @@ include = [ "Programming Language :: Python :: 3.12", ] include = [ - "LICENSE", - "README.md", "ntc_templates/templates/*.textfsm", "ntc_templates/templates/index", ]