From owner-svn-ports-all@freebsd.org Thu Nov 28 17:51:34 2019 Return-Path: Delivered-To: svn-ports-all@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 A4E491B0E2A; Thu, 28 Nov 2019 17:51:34 +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 47P4vV401dz3M9l; Thu, 28 Nov 2019 17:51:34 +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 6C47F15A8; Thu, 28 Nov 2019 17:51:34 +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 xASHpYtC069911; Thu, 28 Nov 2019 17:51:34 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xASHpYpD069910; Thu, 28 Nov 2019 17:51:34 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201911281751.xASHpYpD069910@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 17:51:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518596 - head/net/py-wsproto X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: head/net/py-wsproto X-SVN-Commit-Revision: 518596 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 17:51:34 -0000 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 +.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