summaryrefslogtreecommitdiff
path: root/sysutils/py-eliot
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-08-27 12:32:48 +0000
committerjoerg <joerg@pkgsrc.org>2020-08-27 12:32:48 +0000
commit2e7b60d24d712fd9c045d8c429c775e08495453e (patch)
tree07a5e6b8a460a1c91799a5c6e9b54520d15b5e3d /sysutils/py-eliot
parentc27e908c45580f83a12787078dc6082d25844d58 (diff)
downloadpkgsrc-2e7b60d24d712fd9c045d8c429c775e08495453e.tar.gz
Support Python 3.6
Diffstat (limited to 'sysutils/py-eliot')
-rw-r--r--sysutils/py-eliot/Makefile6
-rw-r--r--sysutils/py-eliot/distinfo3
-rw-r--r--sysutils/py-eliot/patches/patch-setup.py20
3 files changed, 25 insertions, 4 deletions
diff --git a/sysutils/py-eliot/Makefile b/sysutils/py-eliot/Makefile
index 7b5ef526f14..d7d16b8a316 100644
--- a/sysutils/py-eliot/Makefile
+++ b/sysutils/py-eliot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/01 08:52:38 adam Exp $
+# $NetBSD: Makefile,v 1.2 2020/08/27 12:32:48 joerg Exp $
DISTNAME= eliot-1.12.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -18,6 +18,8 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=1.14.0:../../devel/py-hypothesis
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 36
DEPENDS+= ${PYPKGPREFIX}-aiocontextvars-[0-9]*:../../devel/py-aiocontextvars
@@ -25,8 +27,6 @@ DEPENDS+= ${PYPKGPREFIX}-aiocontextvars-[0-9]*:../../devel/py-aiocontextvars
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 27
-
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} eliot-prettyprint eliot-prettyprint-${PYVERSSUFFIX} || ${TRUE}
diff --git a/sysutils/py-eliot/distinfo b/sysutils/py-eliot/distinfo
index f44ed824349..3cf9607abeb 100644
--- a/sysutils/py-eliot/distinfo
+++ b/sysutils/py-eliot/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/07/01 08:52:38 adam Exp $
+$NetBSD: distinfo,v 1.2 2020/08/27 12:32:48 joerg Exp $
SHA1 (eliot-1.12.0.tar.gz) = 19ea57fe203d94425a17fa54bf065d5cdd9189c6
RMD160 (eliot-1.12.0.tar.gz) = 0def7f7939383b901fa76a78e6da7b183a9edad8
SHA512 (eliot-1.12.0.tar.gz) = d0ca6cf5a1a9ffb615c495a816856bd80880ff2a2ef0cf37ee905ce32e7a81d6e0cb28e107bb38899eb295e86850006f60d036f484663e6c105e4d51a13feb3c
Size (eliot-1.12.0.tar.gz) = 152125 bytes
+SHA1 (patch-setup.py) = b3e6232c987bf172302124dc9c7e6302ec26cea1
diff --git a/sysutils/py-eliot/patches/patch-setup.py b/sysutils/py-eliot/patches/patch-setup.py
new file mode 100644
index 00000000000..ff17c492edb
--- /dev/null
+++ b/sysutils/py-eliot/patches/patch-setup.py
@@ -0,0 +1,20 @@
+$NetBSD: patch-setup.py,v 1.1 2020/08/27 12:32:49 joerg Exp $
+
+--- setup.py.orig 2020-08-26 11:49:30.118420576 +0000
++++ setup.py
+@@ -1,13 +1,13 @@
+ from setuptools import setup
+
+ import versioneer
+-
++import sys
+
+ def read(path):
+ """
+ Read the contents of a file.
+ """
+- with open(path) as f:
++ with open(path, **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as f:
+ return f.read()
+
+