Index: head/devel/py-pystorm/Makefile =================================================================== --- head/devel/py-pystorm/Makefile (revision 490388) +++ head/devel/py-pystorm/Makefile (revision 490389) @@ -1,28 +1,39 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= pystorm PORTVERSION= 3.1.4 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= egypcio@FreeBSD.org COMMENT= Battle-tested Apache Storm Multi-Lang implementation for Python LICENSE= APACHE20 -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}msgpack>0:devel/py-msgpack@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} -USES= python:2.7 +USES= python USE_PYTHON= autoplist distutils NO_ARCH= yes +.include + +.if ${PYTHON_MAJOR_VER} < 3 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}contextlib2>0:devel/py-contextlib2@${PY_FLAVOR} +TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} +.endif + post-patch: ${RM} ${WRKSRC}/test/__init__.py - @${REINPLACE_CMD} -e 's|msgpack-python|msgpack|' ${WRKSRC}/setup.py ${WRKSRC}/pystorm.egg-info/requires.txt -.include +.include Index: head/devel/py-pystorm/files/patch-setup.py =================================================================== --- head/devel/py-pystorm/files/patch-setup.py (nonexistent) +++ head/devel/py-pystorm/files/patch-setup.py (revision 490389) @@ -0,0 +1,19 @@ +--- setup.py.orig 2019-01-11 16:47:10 UTC ++++ setup.py +@@ -16,6 +16,7 @@ limitations under the License. + """ + import re + import sys ++import codecs + + from setuptools import setup, find_packages + +@@ -27,7 +28,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() + + Property changes on: head/devel/py-pystorm/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property