From 42e6df1cd0f6b07d1065f3218ddb033765dc022a Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Mon, 7 Sep 2020 16:47:09 +0000 Subject: [PATCH] As of the 5.0.0 commit, this port now includes python code that is only available in Python 3: Traceback (most recent call last): File "", line 1, in File "setup.py", line 41 print(error, file=sys.stderr) ^ SyntaxError: invalid syntax Accordingly, restrict the port and remove the special-case code. Approved by: portmgr ("just fix it") --- devel/py-traitlets/Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/devel/py-traitlets/Makefile b/devel/py-traitlets/Makefile index 17cbe45d3535..5fc734cc0831 100644 --- a/devel/py-traitlets/Makefile +++ b/devel/py-traitlets/Makefile @@ -19,17 +19,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} -USES= python +USES= python:3.5+ USE_PYTHON= autoplist distutils NO_ARCH= yes -.include - -.if ${PYTHON_VER} == 2.7 -TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} -.endif - do-test: @(cd ${TEST_WRKSRC} && py.test-${PYTHON_VER} traitlets) -.include +.include