[Midnightbsd-cvs] mports [24120] trunk/devel: add py-txaio
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 3 12:00:45 EDT 2018
Revision: 24120
http://svnweb.midnightbsd.org/mports/?rev=24120
Author: laffer1
Date: 2018-09-03 12:00:44 -0400 (Mon, 03 Sep 2018)
Log Message:
-----------
add py-txaio
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/py-txaio/
trunk/devel/py-txaio/Makefile
trunk/devel/py-txaio/distinfo
trunk/devel/py-txaio/files/
trunk/devel/py-txaio/files/patch-test_test__packaging.py
trunk/devel/py-txaio/pkg-descr
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2018-09-03 15:57:55 UTC (rev 24119)
+++ trunk/devel/Makefile 2018-09-03 16:00:44 UTC (rev 24120)
@@ -526,6 +526,7 @@
SUBDIR += py-subversion
SUBDIR += py-termcolor
SUBDIR += py-twisted
+SUBDIR += py-txaio
SUBDIR += py-virtualenv
SUBDIR += py-wrapt
SUBDIR += py-xdg
Added: trunk/devel/py-txaio/Makefile
===================================================================
--- trunk/devel/py-txaio/Makefile (rev 0)
+++ trunk/devel/py-txaio/Makefile 2018-09-03 16:00:44 UTC (rev 24120)
@@ -0,0 +1,33 @@
+# $MidnightBSD$
+
+PORTNAME= txaio
+PORTVERSION= 2.6.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Compatibility API between asyncio/Twisted/Trollius
+
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}trollius>=2.0:devel/py-trollius
+.elif ${PYTHON_REL} >= 3300
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=3.4.3:devel/py-asyncio
+.endif
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+
+.include <bsd.port.post.mk>
Property changes on: trunk/devel/py-txaio/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-txaio/distinfo
===================================================================
--- trunk/devel/py-txaio/distinfo (rev 0)
+++ trunk/devel/py-txaio/distinfo 2018-09-03 16:00:44 UTC (rev 24120)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1488897862
+SHA256 (txaio-2.6.1.tar.gz) = 6fe5731749c928dafc200affbc8574d8a71b36f16d20d3787eb2506c0be360f4
+SIZE (txaio-2.6.1.tar.gz) = 40563
Property changes on: trunk/devel/py-txaio/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-txaio/files/patch-test_test__packaging.py
===================================================================
--- trunk/devel/py-txaio/files/patch-test_test__packaging.py (rev 0)
+++ trunk/devel/py-txaio/files/patch-test_test__packaging.py 2018-09-03 16:00:44 UTC (rev 24120)
@@ -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)
Property changes on: trunk/devel/py-txaio/files/patch-test_test__packaging.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-txaio/pkg-descr
===================================================================
--- trunk/devel/py-txaio/pkg-descr (rev 0)
+++ trunk/devel/py-txaio/pkg-descr 2018-09-03 16:00:44 UTC (rev 24120)
@@ -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
Property changes on: trunk/devel/py-txaio/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list