Date: Thu, 28 Nov 2019 18:01:19 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r518597 - branches/2019Q4/net/py-wsproto Message-ID: <201911281801.xASI1JYT076971@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Thu Nov 28 18:01:19 2019 New Revision: 518597 URL: https://svnweb.freebsd.org/changeset/ports/518597 Log: MFH: r518596 net/py-wsproto: Fix runtime dependencies and Python version restriction * Update the RUN_DEPENDS and limit the port to Python 3.6 or newer as the support for Python 2.7 and 3.5 was dropped with the 0.15.0 release. Python 3.6 needs also the devel/py-dataclasses package as an additional dependency to work properly. * Add a "do-test" target while I'm here to make future QA easier. * Bump PORTREVISION for package change. PR: 242025 (related) Approved by: portmgr blanket (runtime fix) Approved by: ports-secteam bugfix blanket Modified: branches/2019Q4/net/py-wsproto/Makefile Directory Properties: branches/2019Q4/ (props changed) Modified: branches/2019Q4/net/py-wsproto/Makefile ============================================================================== --- branches/2019Q4/net/py-wsproto/Makefile Thu Nov 28 17:51:33 2019 (r518596) +++ branches/2019Q4/net/py-wsproto/Makefile Thu Nov 28 18:01:19 2019 (r518597) @@ -3,6 +3,7 @@ PORTNAME= wsproto PORTVERSION= 0.15.0 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,12 +13,21 @@ COMMENT= Sans-IO WebSocket protocol implementation LICENSE= MIT -RUN_DEPENDS= ${PY_ENUM34} \ - ${PYTHON_PKGNAMEPREFIX}h11>=0.8.1:net/py-h11@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h11>=0.8.1:net/py-h11@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} -USES= python +USES= python:3.6+ USE_PYTHON= autoplist distutils NO_ARCH= yes -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 3700 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR} +.endif + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs + +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911281801.xASI1JYT076971>