aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-10-05 03:01:11 +0800
committerantoine <antoine@FreeBSD.org>2016-10-05 03:01:11 +0800
commit3c8966e68093ee2f64162cd6b5bcfca92efc9a88 (patch)
treeaf29f748e666f815cf9160ccc0061302baf2f7f2 /devel
parent746dc09d8e6e924f2b6dafa5f024b982cd9ed7f3 (diff)
downloadfreebsd-ports-gnome-3c8966e68093ee2f64162cd6b5bcfca92efc9a88.tar.gz
freebsd-ports-gnome-3c8966e68093ee2f64162cd6b5bcfca92efc9a88.tar.zst
freebsd-ports-gnome-3c8966e68093ee2f64162cd6b5bcfca92efc9a88.zip
Update to 4.3.1
PR: 213166 Submitted by: maintainer
Diffstat (limited to 'devel')
-rw-r--r--devel/py-traitlets/Makefile25
-rw-r--r--devel/py-traitlets/distinfo6
2 files changed, 25 insertions, 6 deletions
diff --git a/devel/py-traitlets/Makefile b/devel/py-traitlets/Makefile
index e65ea318bfb9..9512759344cc 100644
--- a/devel/py-traitlets/Makefile
+++ b/devel/py-traitlets/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= traitlets
-PORTVERSION= 4.2.2
+PORTVERSION= 4.3.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,10 +10,29 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@rawbw.com
COMMENT= Configuration system for Python applications
-LICENSE= BSD2CLAUSE
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING.md
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator \
+ ${PYTHON_PKGNAMEPREFIX}ipython_genutils>=0:devel/py-ipython_genutils \
+ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3400
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>=0:devel/py-enum34
+.endif
+
+.if ${PYTHON_VER} == 2.7
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock
+.endif
+
+do-test:
+ @(cd ${TEST_WRKSRC} && py.test-${PYTHON_VER} traitlets)
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-traitlets/distinfo b/devel/py-traitlets/distinfo
index 4bc865adda5a..9ccf4ebd5964 100644
--- a/devel/py-traitlets/distinfo
+++ b/devel/py-traitlets/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1467453710
-SHA256 (traitlets-4.2.2.tar.gz) = 7d7e3070484b2fe490fa55e0acf7023afc5ed9ddabec57405f25c355158e152a
-SIZE (traitlets-4.2.2.tar.gz) = 79332
+TIMESTAMP = 1475525206
+SHA256 (traitlets-4.3.1.tar.gz) = ba8c94323ccbe8fd792e45d8efe8c95d3e0744cc8c085295b607552ab573724c
+SIZE (traitlets-4.3.1.tar.gz) = 88108