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 /textproc | |
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 'textproc')
-rw-r--r-- | textproc/py-xmlschema/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-xmlschema/patches/patch-setup.py | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/textproc/py-xmlschema/distinfo b/textproc/py-xmlschema/distinfo index 8cf4278ebce..a179a49da90 100644 --- a/textproc/py-xmlschema/distinfo +++ b/textproc/py-xmlschema/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2020/04/29 07:50:05 adam Exp $ +$NetBSD: distinfo,v 1.8 2020/05/31 20:49:34 joerg Exp $ SHA1 (xmlschema-1.1.3.tar.gz) = 663f856b99b99a70631f8c7da8acf0b0b8c765d6 RMD160 (xmlschema-1.1.3.tar.gz) = 0a4255b5aa23afd06727b6e66769a5cec98122fe SHA512 (xmlschema-1.1.3.tar.gz) = df277cd75058e10b8e0505db51fc167c688fe4c3d319de289ac77faa37913f60d2697f4456e00d637c4a3c3f83d164619e0ce1b849e8c8ea3b5e1932b56044dc Size (xmlschema-1.1.3.tar.gz) = 298490 bytes +SHA1 (patch-setup.py) = 6007d0da37c00e14a7217b588df8e92679fc7c96 diff --git a/textproc/py-xmlschema/patches/patch-setup.py b/textproc/py-xmlschema/patches/patch-setup.py new file mode 100644 index 00000000000..1f634df6716 --- /dev/null +++ b/textproc/py-xmlschema/patches/patch-setup.py @@ -0,0 +1,19 @@ +$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:34 joerg Exp $ + +--- setup.py.orig 2020-05-31 18:07:15.361949598 +0000 ++++ setup.py +@@ -8,12 +8,13 @@ + # + # @author Davide Brunato <brunato@sissa.it> + # ++import sys + import importlib + from setuptools import setup + from setuptools.command.develop import develop + from setuptools.command.install import install + +-with open("README.rst") as readme: ++with open("README.rst", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme: + long_description = readme.read() + + |