1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

net-mgmt/py-napalm: Update to 5.0.0

* Convert the test suite to USE_PYTHON=pytest while I'm here.

Changelog:

https://github.com/napalm-automation/napalm/releases/tag/5.0.0

MFH:		No (contains breaking changes)
This commit is contained in:
Kai Knoblich 2024-05-26 09:55:23 +02:00
parent 12ab2d6bb6
commit 89b087b1d4
2 changed files with 9 additions and 15 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= napalm
DISTVERSION= 4.1.0
PORTREVISION= 1
DISTVERSION= 5.0.0
CATEGORIES= net-mgmt python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,11 +10,10 @@ WWW= https://github.com/napalm-automation/napalm
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}lxml>=4.3.0:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}textfsm>=1.1.2:textproc/py-textfsm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}junos-eznc>=2.6.3:net-mgmt/py-junos-eznc@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}junos-eznc>=2.7.0:net-mgmt/py-junos-eznc@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ncclient>0:net-mgmt/py-ncclient@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}netutils>=1.0.0:net-mgmt/py-netutils@${PY_FLAVOR} \
@ -25,22 +23,18 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ttp>0:textproc/py-ttp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ttp-templates>0:textproc/py-ttp-templates@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyeapi>=0.8.2:net-mgmt/py-pyeapi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyeapi>=1.0.2:net-mgmt/py-pyeapi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scp>0:security/py-scp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cffi>=1.11.3:devel/py-cffi@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.6.4:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ddt>=1.2.0:devel/py-ddt@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils concurrent autoplist
USE_PYTHON= autoplist concurrent distutils pytest
USE_GITHUB= yes
GH_ACCOUNT= napalm-automation
NO_ARCH= yes
do-test:
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1685723654
SHA256 (napalm-automation-napalm-4.1.0_GH0.tar.gz) = 3ee779fa3949bc34efa1a32ae7b81074bc916c4b9b5a9c8bcd289660bddee6ef
SIZE (napalm-automation-napalm-4.1.0_GH0.tar.gz) = 1565210
TIMESTAMP = 1713784647
SHA256 (napalm-automation-napalm-5.0.0_GH0.tar.gz) = b47dca6fb71f511fed03945d5c5abf9338024947e375b218bae7d50ed6175af7
SIZE (napalm-automation-napalm-5.0.0_GH0.tar.gz) = 1567474