svn commit: r547908 - head/devel/py-traitlets

Mark Linimon linimon at FreeBSD.org
Mon Sep 7 16:47:10 UTC 2020


Author: linimon
Date: Mon Sep  7 16:47:09 2020
New Revision: 547908
URL: https://svnweb.freebsd.org/changeset/ports/547908

Log:
  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")

Modified:
  head/devel/py-traitlets/Makefile

Modified: head/devel/py-traitlets/Makefile
==============================================================================
--- head/devel/py-traitlets/Makefile	Mon Sep  7 16:04:47 2020	(r547907)
+++ head/devel/py-traitlets/Makefile	Mon Sep  7 16:47:09 2020	(r547908)
@@ -19,17 +19,11 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>=0:devel
 		${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>


More information about the svn-ports-head mailing list