svn commit: r407115 - in head/devel: . py-txaio py-txaio/files

Kubilay Kocak koobs at FreeBSD.org
Sun Jan 24 12:47:22 UTC 2016


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 at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	txaio
+PORTVERSION=	2.2.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs at 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


More information about the svn-ports-head mailing list