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 "<string>", line 1, in <module>
  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")
This commit is contained in:
Mark Linimon 2020-09-07 16:47:09 +00:00
parent 0b561a7e86
commit 42e6df1cd0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547908

View File

@ -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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>
.include <bsd.port.mk>