Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 2020 16:47:09 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547908 - head/devel/py-traitlets
Message-ID:  <202009071647.087Gl9QA021874@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009071647.087Gl9QA021874>