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
This commit is contained in:
parent
1d9543fb92
commit
7853607963
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=509756
3 changed files with 34 additions and 7 deletions
|
@ -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
|
||||
|
@ -29,4 +29,14 @@ NO_ARCH= yes
|
|||
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>
|
||||
|
|
|
@ -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
|
||||
|
|
17
net-mgmt/py-ciscoconfparse/pkg-message
Normal file
17
net-mgmt/py-ciscoconfparse/pkg-message
Normal file
|
@ -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
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue