Commit cef60275 authored by koobs's avatar koobs
Browse files

devel/py-txaio: Update to 18.8.1

  - Add patches to fix (py)tests
  - Verbosify the test target and report skip reasons

Changelog:

  https://txaio.readthedocs.io/en/latest/releases.html
parent f324508e
......@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= txaio
PORTVERSION= 2.6.1
PORTVERSION= 18.8.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
......@@ -14,21 +14,26 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.6.4:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=1.3.0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=12.1.0:devel/py-twisted@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
PATCH_SITES= https://github.com/crossbario/${PORTNAME}/commit/
PATCHFILES= 9217f054b7eccc120f84e01995479125e07de59a.patch:-p1
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}trollius>=2.0:devel/py-trollius@${PY_FLAVOR}
.elif ${PYTHON_REL} >= 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=3.4.3:devel/py-asyncio@${PY_FLAVOR}
.if ${PYTHON_REL} < 3000
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}trollius>=2.0:devel/py-trollius@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}futures>=3.0.3:devel/py-futures@${PY_FLAVOR}
.endif
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
TIMESTAMP = 1488897862
SHA256 (txaio-2.6.1.tar.gz) = 6fe5731749c928dafc200affbc8574d8a71b36f16d20d3787eb2506c0be360f4
SIZE (txaio-2.6.1.tar.gz) = 40563
TIMESTAMP = 1556249564
SHA256 (txaio-18.8.1.tar.gz) = 67e360ac73b12c52058219bb5f8b3ed4105d2636707a36a7cdafb56fe06db7fe
SIZE (txaio-18.8.1.tar.gz) = 51092
SHA256 (9217f054b7eccc120f84e01995479125e07de59a.patch) = 8d1eaad111eb275a2c064b22d120ff662ec21b8540ad8cfea0db24fb341fbde2
SIZE (9217f054b7eccc120f84e01995479125e07de59a.patch) = 1194
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment