From owner-svn-ports-head@freebsd.org Sun Jan 24 12:47:21 2016 Return-Path: Delivered-To: svn-ports-head@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 E878C999C45; Sun, 24 Jan 2016 12:47:21 +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 C41F2A9A; Sun, 24 Jan 2016 12:47:21 +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 u0OClKTV053021; Sun, 24 Jan 2016 12:47:20 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0OClKK3053016; Sun, 24 Jan 2016 12:47:20 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201601241247.u0OClKK3053016@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sun, 24 Jan 2016 12:47:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407115 - in head/devel: . py-txaio py-txaio/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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 12:47:22 -0000 Author: koobs Date: Sun Jan 24 12:47:20 2016 New Revision: 407115 URL: https://svnweb.freebsd.org/changeset/ports/407115 Log: [NEW] devel/py-txaio: Compatibility API between asyncio/Twisted/Trollius txaio is a helper library for writing code that runs unmodified on both Twisted and asyncio / Trollius. This is like six, but for wrapping over differences between Twisted and asyncio so one can write code that runs unmodified on both (aka source code compatibility). In other words: your users can choose if they want asyncio or Twisted as a dependency. WWW: https://github.com/crossbario/txaio [1] https://github.com/crossbario/txaio/pull/53 PR: 206564 Added: head/devel/py-txaio/ head/devel/py-txaio/Makefile (contents, props changed) head/devel/py-txaio/distinfo (contents, props changed) head/devel/py-txaio/files/ head/devel/py-txaio/files/patch-test_test__packaging.py (contents, props changed) head/devel/py-txaio/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Jan 24 12:42:48 2016 (r407114) +++ head/devel/Makefile Sun Jan 24 12:47:20 2016 (r407115) @@ -4397,6 +4397,7 @@ SUBDIR += py-twistedCore SUBDIR += py-twistedFlow SUBDIR += py-twistedRunner + SUBDIR += py-txaio SUBDIR += py-tzlocal SUBDIR += py-ua_parser SUBDIR += py-ujson Added: head/devel/py-txaio/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-txaio/Makefile Sun Jan 24 12:47:20 2016 (r407115) @@ -0,0 +1,26 @@ +# Created by: Kubilay Kocak +# $FreeBSD$ + +PORTNAME= txaio +PORTVERSION= 2.2.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Compatibility API between asyncio/Twisted/Trollius + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock + +USES= python +USE_PYTHON= autoplist distutils + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + +.include Added: head/devel/py-txaio/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-txaio/distinfo Sun Jan 24 12:47:20 2016 (r407115) @@ -0,0 +1,2 @@ +SHA256 (txaio-2.2.1.tar.gz) = 6eee00c397d8193d15313dfc36da3eac8d64edf0b92fe3b67cd5a735ffc3074b +SIZE (txaio-2.2.1.tar.gz) = 35208 Added: head/devel/py-txaio/files/patch-test_test__packaging.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-txaio/files/patch-test_test__packaging.py Sun Jan 24 12:47:20 2016 (r407115) @@ -0,0 +1,20 @@ +--- test/test_packaging.py.orig 2015-10-11 12:44:56 UTC ++++ test/test_packaging.py +@@ -37,7 +37,7 @@ import txaio + def test_sdist(): + if not hasattr(subprocess, 'check_output'): + pytest.skip() +- subprocess.check_output([sys.executable, 'setup.py', 'sdist'], cwd='..') ++ subprocess.check_output([sys.executable, 'setup.py', 'sdist']) + tmp = tempfile.mkdtemp() + try: + subprocess.check_output([ +@@ -47,7 +47,7 @@ def test_sdist(): + 'install', + '--target', tmp, + '--no-deps', +- '../dist/txaio-{}.tar.gz'.format(txaio.__version__), ++ 'dist/txaio-{}.tar.gz'.format(txaio.__version__), + ]) + finally: + rmtree(tmp) Added: head/devel/py-txaio/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-txaio/pkg-descr Sun Jan 24 12:47:20 2016 (r407115) @@ -0,0 +1,9 @@ +txaio is a helper library for writing code that runs unmodified +on both Twisted and asyncio / Trollius. + +This is like six, but for wrapping over differences between +Twisted and asyncio so one can write code that runs unmodified +on both (aka source code compatibility). In other words: your +users can choose if they want asyncio or Twisted as a dependency. + +WWW: https://github.com/crossbario/txaio