Date: Sat, 24 Aug 2019 21:14:24 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509756 - head/net-mgmt/py-ciscoconfparse Message-ID: <201908242114.x7OLEOcf034116@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Sat Aug 24 21:14:24 2019 New Revision: 509756 URL: https://svnweb.freebsd.org/changeset/ports/509756 Log: net-mgmt/py-ciscoconfparse: Update to 1.4.3 * Add "do-test" target to make future QA easier Changelog since 1.3.43: * Add parser for various NXOS features * Fix issue with "ip_helper_adddresses" function that wasn't able to handle 'global' helpers * Implement "re_search_children()" directly on the "CiscoConfParse()" object * Fix NXOS HRSP issue with "has_ip_hsrp" function Added: head/net-mgmt/py-ciscoconfparse/pkg-message (contents, props changed) Modified: head/net-mgmt/py-ciscoconfparse/Makefile head/net-mgmt/py-ciscoconfparse/distinfo Modified: head/net-mgmt/py-ciscoconfparse/Makefile ============================================================================== --- head/net-mgmt/py-ciscoconfparse/Makefile Sat Aug 24 21:05:13 2019 (r509755) +++ head/net-mgmt/py-ciscoconfparse/Makefile Sat Aug 24 21:14:24 2019 (r509756) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= ciscoconfparse -DISTVERSION= 1.3.43 +DISTVERSION= 1.4.3 CATEGORIES= net-mgmt python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,9 +14,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>0:devel/py-colorama@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}wtforms>0:textproc/py-wtforms@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} USES= python USE_PYTHON= distutils autoplist @@ -27,6 +27,16 @@ NO_ARCH= yes .if ${PYTHON_REL} < 3000 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>=2.1.11:devel/py-ipaddr@${PY_FLAVOR} +.endif + +do-test: +.if ${PYTHON_REL} < 3200 + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs +.else + # Skip the L4Object_asa_{lt01,lt02,range} tests as "models_asa" is broken in + # Python 3 + # See also: https://github.com/mpenning/ciscoconfparse/issues/14 + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -k 'not _asa_lt and not _asa_range' .endif .include <bsd.port.post.mk> Modified: head/net-mgmt/py-ciscoconfparse/distinfo ============================================================================== --- head/net-mgmt/py-ciscoconfparse/distinfo Sat Aug 24 21:05:13 2019 (r509755) +++ head/net-mgmt/py-ciscoconfparse/distinfo Sat Aug 24 21:14:24 2019 (r509756) @@ -1,3 +1,3 @@ -TIMESTAMP = 1563173881 -SHA256 (ciscoconfparse-1.3.43.tar.gz) = 93e3b0ac57484088b6aae9ec65c5f4ca8b65caaceed0610e9794b2d6244bc4bc -SIZE (ciscoconfparse-1.3.43.tar.gz) = 95882 +TIMESTAMP = 1566645333 +SHA256 (ciscoconfparse-1.4.3.tar.gz) = 1ce7a137eefab4e3b69a650df6fde8b027fabacc272e201a08f57f6d0860256b +SIZE (ciscoconfparse-1.4.3.tar.gz) = 127472 Added: head/net-mgmt/py-ciscoconfparse/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/py-ciscoconfparse/pkg-message Sat Aug 24 21:14:24 2019 (r509756) @@ -0,0 +1,17 @@ +[ +{ type: upgrade + maximum_version: "1.4.3" + message: <<EOD +Since the 1.4.2 release the behavior of "ip_helper_addresses()" function has +changed. Parsing helper-addresses under factory=True won't work anymore as +expected. + +Also the method named "find_objects_w_all_children()" has changed since the +1.4.0 release. Former releases used the keyword "all_children" which has been +replaced with "recurse". + +If you use one of those features mentioned above, please migrate your scripts +to the new format. +EOD +} +]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908242114.x7OLEOcf034116>