svn commit: r490389 - in head/devel/py-pystorm: . files
Vinícius Zavam
egypcio at FreeBSD.org
Tue Jan 15 16:55:43 UTC 2019
Author: egypcio
Date: Tue Jan 15 16:55:41 2019
New Revision: 490389
URL: https://svnweb.freebsd.org/changeset/ports/490389
Log:
devel/py-pystorm: add support to build py36 FLAVOR
Makefile
- adopt this port;
- msgpack is no longer a dependency for 3.1.4 (7d7dac6, and ece1f00);
- check PYTHON_MAJOR_VERSION before adding dependencies.
files/*
- patch setup.py in order that readme() works with py36.
Approved by: araujo (mentor)
Differential Revision: https://reviews.freebsd.org/D18822
Added:
head/devel/py-pystorm/files/
head/devel/py-pystorm/files/patch-setup.py (contents, props changed)
Modified:
head/devel/py-pystorm/Makefile
Modified: head/devel/py-pystorm/Makefile
==============================================================================
--- head/devel/py-pystorm/Makefile Tue Jan 15 16:49:19 2019 (r490388)
+++ head/devel/py-pystorm/Makefile Tue Jan 15 16:55:41 2019 (r490389)
@@ -3,26 +3,37 @@
PORTNAME= pystorm
PORTVERSION= 3.1.4
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= egypcio at 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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
Added: head/devel/py-pystorm/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-pystorm/files/patch-setup.py Tue Jan 15 16:55:41 2019 (r490389)
@@ -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()
+
+
More information about the svn-ports-all
mailing list