Date: Sun, 24 Jan 2016 12:47:20 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> 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 Message-ID: <201601241247.u0OClKK3053016@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <koobs@FreeBSD.org> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601241247.u0OClKK3053016>