Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2019 13:22:35 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491560 - in head/devel/py-streamparse: . files
Message-ID:  <201901291322.x0TDMZNh073971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Tue Jan 29 13:22:35 2019
New Revision: 491560
URL: https://svnweb.freebsd.org/changeset/ports/491560

Log:
  devel/py-streamparse: update 3.14.0 to 3.15.0
  
    - adopt port;
    - contextlib2 added as dependency (based on what setup.py sets);
    - texttable replaces prettytable (removed since 3.14.0 [348208b, #413]);
    - sort RUN_DEPENDS;
    - remove post-patch stage (it was removing test init script);
    - add TEST_DEPENDS;
    - check PYTHON_MAJOR_VER before adding extra dependencies (setup.py).
  
  Approved by:	araujo (mentor)
  Differential Revision:	https://reviews.freebsd.org/D18638

Added:
  head/devel/py-streamparse/files/
  head/devel/py-streamparse/files/patch-setup.py   (contents, props changed)
Modified:
  head/devel/py-streamparse/Makefile
  head/devel/py-streamparse/distinfo

Modified: head/devel/py-streamparse/Makefile
==============================================================================
--- head/devel/py-streamparse/Makefile	Tue Jan 29 13:05:55 2019	(r491559)
+++ head/devel/py-streamparse/Makefile	Tue Jan 29 13:22:35 2019	(r491560)
@@ -2,32 +2,42 @@
 # $FreeBSD$
 
 PORTNAME=	streamparse
-PORTVERSION=	3.14.0
+PORTVERSION=	3.15.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	egypcio@FreeBSD.org
 COMMENT=	Python analysis of Apache Storm streams
 
 LICENSE=	APACHE20
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fabric3>0:devel/py-fabric3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pystorm>=3.1.0:devel/py-pystorm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}prettytable>0:devel/py-prettytable@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}fabric3>0:devel/py-fabric3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pystorm>=3.1.0:devel/py-pystorm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}texttable>=0:textproc/py-texttable@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}thriftpy>=0.3.2:devel/py-thriftpy@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR}
 
-USES=		python:2.7
+USES=		python
 USE_PYTHON=	autoplist distutils
 
-NO_ARCH=	YES
+NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_MAJOR_VER} < 3
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}contextlib2>0:devel/py-contextlib2@${PY_FLAVOR}
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}graphviz>=0:graphics/py-graphviz@${PY_FLAVOR}
+.endif
+
 post-patch:
 	${RM} ${WRKSRC}/test/__init__.py
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/devel/py-streamparse/distinfo
==============================================================================
--- head/devel/py-streamparse/distinfo	Tue Jan 29 13:05:55 2019	(r491559)
+++ head/devel/py-streamparse/distinfo	Tue Jan 29 13:22:35 2019	(r491560)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1539822793
-SHA256 (streamparse-3.14.0.tar.gz) = 136339b578a57a71775b67c32b6e73f9d8dabb31b4f7009493d11b428d2e3bfd
-SIZE (streamparse-3.14.0.tar.gz) = 54368
+TIMESTAMP = 1545574945
+SHA256 (streamparse-3.15.0.tar.gz) = f8893f8bc0d026cecbc9ebe39963b2c8c3d432aa7f2cb936605f6c2e5ca53d50
+SIZE (streamparse-3.15.0.tar.gz) = 54534

Added: head/devel/py-streamparse/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-streamparse/files/patch-setup.py	Tue Jan 29 13:22:35 2019	(r491560)
@@ -0,0 +1,19 @@
+--- setup.py.orig	2019-01-13 16:56:06 UTC
++++ setup.py
+@@ -16,6 +16,7 @@ limitations under the License.
+ """
+ import re
+ import sys
++import codecs
+ 
+ from setuptools import setup, find_packages
+ 
+@@ -29,7 +30,7 @@ def get_version():
+ 
+ def readme():
+     """ Returns README.rst contents as str """
+-    with open("README.rst") as f:
++    with codecs.open('README.rst', 'r', encoding='utf8') as f:
+         return f.read()
+ 
+ 



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