git: f8e290cba9b5 - main - net-mgmt/py-pyeapi: Update to 1.0.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Thu, 08 Jun 2023 10:30:07 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f8e290cba9b5756e3e5d09e9f5fdbd0ef2a31852

commit f8e290cba9b5756e3e5d09e9f5fdbd0ef2a31852
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-06-08 10:22:38 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-06-08 10:29:46 +0000

    net-mgmt/py-pyeapi: Update to 1.0.0
    
    * Simplify Makefile by switching to USE_PYTHON=unittest while I'm here.
    
    Changelog:
    
    https://github.com/arista-eosplus/pyeapi/releases/tag/v1.0.0
---
 net-mgmt/py-pyeapi/Makefile | 12 ++++++------
 net-mgmt/py-pyeapi/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/net-mgmt/py-pyeapi/Makefile b/net-mgmt/py-pyeapi/Makefile
index 111cbc2074e1..e32a6ad294cd 100644
--- a/net-mgmt/py-pyeapi/Makefile
+++ b/net-mgmt/py-pyeapi/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pyeapi
-DISTVERSION=	0.8.4
+DISTVERSION=	1.0.0
 CATEGORIES=	net-mgmt python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,12 +14,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
 
-USES=		python:3.6+
-USE_PYTHON=	distutils autoplist
+USES=		python:3.7+
+USE_PYTHON=	autoplist distutils unittest
 
-NO_ARCH=	yes
+TEST_ARGS=	discover test/unit -v
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
-do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover test/unit -v
+NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/net-mgmt/py-pyeapi/distinfo b/net-mgmt/py-pyeapi/distinfo
index 2b79a35bd388..f476b5460adc 100644
--- a/net-mgmt/py-pyeapi/distinfo
+++ b/net-mgmt/py-pyeapi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1607512827
-SHA256 (pyeapi-0.8.4.tar.gz) = c33ad1eadd8ebac75f63488df9412081ce0b024c9e1da12a37196a5c60427c54
-SIZE (pyeapi-0.8.4.tar.gz) = 138140
+TIMESTAMP = 1686169109
+SHA256 (pyeapi-1.0.0.tar.gz) = db18ecdc06bc0ae0915298e262cc473beba0a0da1ef0d77114fcab36741c2537
+SIZE (pyeapi-1.0.0.tar.gz) = 145052