From owner-svn-ports-all@freebsd.org Mon Jan 25 11:49:16 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F362A451D2; Mon, 25 Jan 2016 11:49:16 +0000 (UTC) (envelope-from koobs@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 mx1.freebsd.org (Postfix) with ESMTPS id 1B2E2EB2; Mon, 25 Jan 2016 11:49:16 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0PBnFHp068873; Mon, 25 Jan 2016 11:49:15 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0PBnEPt068870; Mon, 25 Jan 2016 11:49:14 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201601251149.u0PBnEPt068870@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Mon, 25 Jan 2016 11:49:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407206 - in head/www/py-autobahn: . files X-SVN-Group: ports-head 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.20 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: Mon, 25 Jan 2016 11:49:16 -0000 Author: koobs Date: Mon Jan 25 11:49:14 2016 New Revision: 407206 URL: https://svnweb.freebsd.org/changeset/ports/407206 Log: www/py-autobahn: Update to 0.11.0 - Update PORTVERSION and distinfo checksum (0.11.0) - Switch to USE_GITHUB (missing autobahn/test/ dir in sdist) - Add DISTVERSIONPREFIX accordingly - Update RUN_DEPENDS - Replace USES=twisted:run with (new) direct RUN_DEPENDS dependency [1] - Remove USES=dos2unix (no longer required) - Remove ASYNCIO support on 2.x via Trollius [2] - Update ASYNCIO_DESC to be for Python 3.x accordingly - Remove ASYNCIO from OPTIONS_DEFAULT accordingly - Reverse incorrect conditional (<=) adding asyncio to RUN_DEPENDS [3] - Add BROKEN message for ASYNCIO selected when using Python 2.x - Patch setup.py not to create a twisted dropin.cache file out of STAGEDIR - Add test target and TEST_DEPENDS - Enable NO_ARCH - Whitespace alignment [2] Discussed with Trollius maintainer (Victor Stinner) [3] Only required on < 3.3 (not greater than 3.3) PR: 205078 [1] Submitted by: Yuri [1] Added: head/www/py-autobahn/files/ head/www/py-autobahn/files/patch-setup.py (contents, props changed) Modified: head/www/py-autobahn/Makefile head/www/py-autobahn/distinfo Modified: head/www/py-autobahn/Makefile ============================================================================== --- head/www/py-autobahn/Makefile Mon Jan 25 11:39:59 2016 (r407205) +++ head/www/py-autobahn/Makefile Mon Jan 25 11:49:14 2016 (r407206) @@ -1,42 +1,53 @@ # Created by: Kubilay Kocak # $FreeBSD$ -PORTNAME= autobahn -PORTVERSION= 0.9.6 -CATEGORIES= www python -MASTER_SITES= CHEESESHOP -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PORTNAME= autobahn +PORTVERSION= 0.11.0 +DISTVERSIONPREFIX= v +CATEGORIES= www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= koobs@FreeBSD.org -COMMENT= WebSocket client & server library, WAMP real-time framework +MAINTAINER= koobs@FreeBSD.org +COMMENT= WebSocket client & server library, WAMP real-time framework LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.6.1:${PORTSDIR}/devel/py-six -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ - ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.6.1:${PORTSDIR}/devel/py-six \ + ${PYTHON_PKGNAMEPREFIX}txaio>=2.2.0:${PORTSDIR}/devel/py-txaio +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7.2:${PORTSDIR}/devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>=1.3.0:${PORTSDIR}/devel/py-mock \ + ${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2 \ + ${PYTHON_PKGNAMEPREFIX}trollius>0:${PORTSDIR}/devel/py-trollius # Not really a depends, but the test doesnt skip -USES= dos2unix python +USES= python +USE_GITHUB= yes USE_PYTHON= autoplist distutils +NO_ARCH= yes + +GH_ACCOUNT= crossbario +GH_PROJECT= autobahn-python + OPTIONS_DEFINE= ACCELERATE SERIALIZATION OPTIONS_MULTI= BACKENDS OPTIONS_MULTI_BACKENDS= ASYNCIO TWISTED -OPTIONS_DEFAULT= ASYNCIO ACCELERATE SERIALIZATION TWISTED +OPTIONS_DEFAULT= ACCELERATE SERIALIZATION TWISTED BACKENDS_DESC= Networking Backends ACCELERATE_DESC= WebSocket and JSON Acceleration -ASYNCIO_DESC= asyncio (PEP-3156 aka "Tulip") Backend +ASYNCIO_DESC= asyncio (PEP-3156) Backend (Python 3.x ONLY) SERIALIZATION_DESC= WAMPv2 Binary Serialization TWISTED_DESC= Twisted Backend (Python 2.x ONLY) ACCELERATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wsaccel>=0.6.2:${PORTSDIR}/www/py-wsaccel \ ${PYTHON_PKGNAMEPREFIX}ujson>=1.33:${PORTSDIR}/devel/py-ujson + SERIALIZATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0.4.0:${PORTSDIR}/devel/py-msgpack -TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6:${PORTSDIR}/devel/py-zope.interface -TWISTED_USES= twisted:run + +TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6:${PORTSDIR}/devel/py-zope.interface \ + ${PYTHON_PKGNAMEPREFIX}twisted>=12.1:${PORTSDIR}/devel/py-twisted .include @@ -44,13 +55,15 @@ TWISTED_USES= twisted:run BROKEN= Twisted currently only supports Python 2.x. Disable the TWISTED option and use ASYNCIO instead .endif -.if ${PORT_OPTIONS:MASYNCIO} && ${PYTHON_REL} <= 3400 -.if ${PYTHON_REL} >= 3300 -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=0.2.1:${PORTSDIR}/devel/py-asyncio -.else -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}trollius>=0.1.2:${PORTSDIR}/devel/py-trollius \ - ${PYTHON_PKGNAMEPREFIX}futures>=2.1.5:${PORTSDIR}/devel/py-futures +.if ${PORT_OPTIONS:MASYNCIO} +.if ${PYTHON_REL} <= 3000 +BROKEN= ASYNCIO requires Python 3.x. Disable the ASYNCIO option and use TWISTED instead +.elif ${PYTHON_REL} <= 3300 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=3.4.3:${PORTSDIR}/devel/py-asyncio .endif .endif +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest autobahn + .include Modified: head/www/py-autobahn/distinfo ============================================================================== --- head/www/py-autobahn/distinfo Mon Jan 25 11:39:59 2016 (r407205) +++ head/www/py-autobahn/distinfo Mon Jan 25 11:49:14 2016 (r407206) @@ -1,2 +1,2 @@ -SHA256 (autobahn-0.9.6.tar.gz) = 7b17ea657ef275a361dba1977cdbfc822c664ef3fc8500c4b0d82cbf42854f9f -SIZE (autobahn-0.9.6.tar.gz) = 137891 +SHA256 (crossbario-autobahn-python-v0.11.0_GH0.tar.gz) = 98d9097a3216bb5f79f7bd14ee49deedb699da6b33ea8ab5b74a3269f255c16e +SIZE (crossbario-autobahn-python-v0.11.0_GH0.tar.gz) = 1292781 Added: head/www/py-autobahn/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-autobahn/files/patch-setup.py Mon Jan 25 11:49:14 2016 (r407206) @@ -0,0 +1,18 @@ +--- setup.py.orig 2016-01-24 16:10:22 UTC ++++ setup.py +@@ -32,12 +32,9 @@ import platform + from setuptools import setup + from setuptools.command.test import test as test_command + +-# remember if we already had six _before_ installation +-try: +- import six # noqa +- _HAD_SIX = True +-except ImportError: +- _HAD_SIX = False ++# We don't want this package to regenerate the Twisted dropin.cache ++# as it creates a filesystem violation by writing outside of STAGEDIR ++_HAD_SIX = False + + CPY = platform.python_implementation() == 'CPython' + PY3 = sys.version_info >= (3,)