diff options
author | joerg <joerg@pkgsrc.org> | 2020-05-31 20:49:32 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-05-31 20:49:32 +0000 |
commit | 3a12f273afbd3bb33cb31b8be3a0fd7ede82c05e (patch) | |
tree | e0bc14018181a75968f2f01ae058c9afa1ca87b9 /devel | |
parent | 6c32e5f95c513f5d2207a302c9f0738f5978d8b8 (diff) | |
download | pkgsrc-3a12f273afbd3bb33cb31b8be3a0fd7ede82c05e.tar.gz |
Explicitly read files as unicode for Python 3. The content is converted
using the system locale with Python 3.6 otherwise, falling back to
ASCII.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-test-testmon/distinfo | 3 | ||||
-rw-r--r-- | devel/py-test-testmon/patches/patch-setup.py | 16 | ||||
-rw-r--r-- | devel/py-test-testmon/patches/patch-setup.py.orig | 0 |
3 files changed, 18 insertions, 1 deletions
diff --git a/devel/py-test-testmon/distinfo b/devel/py-test-testmon/distinfo index c57713a59e5..d5995948e4e 100644 --- a/devel/py-test-testmon/distinfo +++ b/devel/py-test-testmon/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.8 2019/10/25 09:45:35 adam Exp $ +$NetBSD: distinfo,v 1.9 2020/05/31 20:49:33 joerg Exp $ SHA1 (pytest-testmon-0.9.19.tar.gz) = 2277b15050d84cfc64f7c019477dd917e1be54b9 RMD160 (pytest-testmon-0.9.19.tar.gz) = 980ee9c0b344200f1d93b631da0cfa58781674c3 SHA512 (pytest-testmon-0.9.19.tar.gz) = 28e5f75265373f5e65d45fc3a26e7926e6095265befa9ba61acfc8a230f5350738074ef11f35c462ba97d08c15a8fbf008e49483f6c9c2b9ab64fe324db94db2 Size (pytest-testmon-0.9.19.tar.gz) = 26805 bytes +SHA1 (patch-setup.py) = 1c10d0a3ba21e3a1aa6504f52b46cd916c4bc334 diff --git a/devel/py-test-testmon/patches/patch-setup.py b/devel/py-test-testmon/patches/patch-setup.py new file mode 100644 index 00000000000..2e421bd4f27 --- /dev/null +++ b/devel/py-test-testmon/patches/patch-setup.py @@ -0,0 +1,16 @@ +$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $ + +--- setup.py.orig 2020-05-31 17:59:09.409031695 +0000 ++++ setup.py +@@ -1,9 +1,10 @@ ++import sys + from setuptools import setup + + setup( + name='pytest-testmon', + description='find bugs 10x faster', +- long_description=''.join(open('README.rst').readlines()), ++ long_description=''.join(open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).readlines()), + version='0.9.19', + license='MIT', + platforms=['linux', 'osx', 'win32'], diff --git a/devel/py-test-testmon/patches/patch-setup.py.orig b/devel/py-test-testmon/patches/patch-setup.py.orig new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/devel/py-test-testmon/patches/patch-setup.py.orig |