diff options
author | mef <mef@pkgsrc.org> | 2021-02-15 15:14:56 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2021-02-15 15:14:56 +0000 |
commit | ce6eceaa0a1a8076f72d03cad88ef85b4fa56976 (patch) | |
tree | b71ba6ba61d4ad78ff5161cda92f4c75dcacb4fb | |
parent | 252520fd27f32ee94c8a041037539660a97b1f05 (diff) | |
download | pkgsrc-ce6eceaa0a1a8076f72d03cad88ef85b4fa56976.tar.gz |
(finance/py-eth-typing) build fix for py36 (others were OK)
py36 flags as follows:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2071: ordinal not in range(128)
-rw-r--r-- | finance/py-eth-typing/distinfo | 3 | ||||
-rw-r--r-- | finance/py-eth-typing/patches/patch-setup.py | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/finance/py-eth-typing/distinfo b/finance/py-eth-typing/distinfo index baab4622e1d..da628ef0ef0 100644 --- a/finance/py-eth-typing/distinfo +++ b/finance/py-eth-typing/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2021/02/07 19:37:40 adam Exp $ +$NetBSD: distinfo,v 1.3 2021/02/15 15:14:56 mef Exp $ SHA1 (eth-typing-2.2.2.tar.gz) = 2aad0084f49f44d0903a6f801af33ce5397b2159 RMD160 (eth-typing-2.2.2.tar.gz) = 35da4506b5f91f96022df3d14c8c18f0c0bf0c67 SHA512 (eth-typing-2.2.2.tar.gz) = 79185a1a940b776cc350c6b5e3506d6fa27a3cc6d8ea233f59e9b1696589c62f8af777f0b9d90be6ba4045cc456cd0ab972a12c67120ddb2d302cb111e82dffe Size (eth-typing-2.2.2.tar.gz) = 5378 bytes +SHA1 (patch-setup.py) = 674c387c0f6d42829499cfe1ee60bbb1642e46bc diff --git a/finance/py-eth-typing/patches/patch-setup.py b/finance/py-eth-typing/patches/patch-setup.py new file mode 100644 index 00000000000..f7be93f736b --- /dev/null +++ b/finance/py-eth-typing/patches/patch-setup.py @@ -0,0 +1,22 @@ +$NetBSD: patch-setup.py,v 1.1 2021/02/15 15:14:56 mef Exp $ + +UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2071: ordinal not in range(128) + +--- setup.py.orig 2020-09-03 09:31:05.000000000 +0900 ++++ setup.py 2021-02-16 00:03:32.721946377 +0900 +@@ -1,5 +1,6 @@ + #!/usr/bin/env python + # -*- coding: utf-8 -*- ++import sys + from setuptools import ( + setup, + find_packages, +@@ -38,7 +39,7 @@ extras_require['dev'] = ( + ) + + +-with open('./README.md') as readme: ++with open("./README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme: + long_description = readme.read() + + |