pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/py-eth-rlp (finance/py-eth-rlp) Fix UnicodeDec...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5cd28988036e
branches:  trunk
changeset: 447996:5cd28988036e
user:      mef <mef%pkgsrc.org@localhost>
date:      Tue Mar 02 03:53:34 2021 +0000

description:
(finance/py-eth-rlp) Fix UnicodeDecodeError: ascii codec..

diffstat:

 finance/py-eth-rlp/distinfo               |   3 ++-
 finance/py-eth-rlp/patches/patch-setup.py |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 2bc4cd8116ac -r 5cd28988036e finance/py-eth-rlp/distinfo
--- a/finance/py-eth-rlp/distinfo       Tue Mar 02 03:36:17 2021 +0000
+++ b/finance/py-eth-rlp/distinfo       Tue Mar 02 03:53:34 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2021/02/08 08:28:04 adam Exp $
+$NetBSD: distinfo,v 1.2 2021/03/02 03:53:34 mef Exp $
 
 SHA1 (eth-rlp-0.2.1.tar.gz) = cffbfe42396c244c90cad352165c2b6d3ee4f98b
 RMD160 (eth-rlp-0.2.1.tar.gz) = 326dd47543fb71acbe1f935ef38b2e2add604e7e
 SHA512 (eth-rlp-0.2.1.tar.gz) = b00c12ec6a740205fad40f1e60fe7c621ac22e8d2c0e50c76aad76895cc4007b27a4d940e5eee3547be640d3b4dc8de7840bf4fbccd2df112651855f22ba415f
 Size (eth-rlp-0.2.1.tar.gz) = 5830 bytes
+SHA1 (patch-setup.py) = 86438ab241de1e44d10310bab62086b509877e6e
diff -r 2bc4cd8116ac -r 5cd28988036e finance/py-eth-rlp/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-eth-rlp/patches/patch-setup.py Tue Mar 02 03:53:34 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2021/03/02 03:53:35 mef Exp $
+
+Fix for  python 3.6 only,
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2014: ordinal not in range(128)
+
+--- setup.py.orig      2020-10-15 02:15:17.000000000 +0900
++++ setup.py   2021-03-02 12:49:23.056851863 +0900
+@@ -40,7 +40,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()
+ 
+ 



Home | Main Index | Thread Index | Old Index