From owner-svn-ports-branches@freebsd.org Thu Nov 28 18:01:20 2019 Return-Path: Delivered-To: svn-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 06A4A1B1576; Thu, 28 Nov 2019 18:01:20 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47P56l6SNMz3Mp7; Thu, 28 Nov 2019 18:01:19 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C199C1772; Thu, 28 Nov 2019 18:01:19 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xASI1JWJ076972; Thu, 28 Nov 2019 18:01:19 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xASI1JYT076971; Thu, 28 Nov 2019 18:01:19 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201911281801.xASI1JYT076971@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Thu, 28 Nov 2019 18:01:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r518597 - branches/2019Q4/net/py-wsproto X-SVN-Group: ports-branches X-SVN-Commit-Author: kai X-SVN-Commit-Paths: branches/2019Q4/net/py-wsproto X-SVN-Commit-Revision: 518597 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 18:01:20 -0000 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 +.include + +.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