Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2019 17:51:34 +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: r518596 - head/net/py-wsproto
Message-ID:  <201911281751.xASHpYpD069910@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kai
Date: Thu Nov 28 17:51:33 2019
New Revision: 518596
URL: https://svnweb.freebsd.org/changeset/ports/518596

Log:
  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)
  MFH:		2019Q4 (runtime fix)

Modified:
  head/net/py-wsproto/Makefile

Modified: head/net/py-wsproto/Makefile
==============================================================================
--- head/net/py-wsproto/Makefile	Thu Nov 28 17:40:12 2019	(r518595)
+++ head/net/py-wsproto/Makefile	Thu Nov 28 17:51:33 2019	(r518596)
@@ -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?201911281751.xASHpYpD069910>