pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/py-eth-utils (finance/py-eth-utils) Fix build ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/754cdac66190
branches:  trunk
changeset: 447249:754cdac66190
user:      mef <mef%pkgsrc.org@localhost>
date:      Thu Feb 18 12:35:02 2021 +0000

description:
(finance/py-eth-utils) Fix build by py36, UnicodeDecodeError:

diffstat:

 finance/py-eth-utils/distinfo               |   3 ++-
 finance/py-eth-utils/patches/patch-setup.py |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r ebff5f2e2323 -r 754cdac66190 finance/py-eth-utils/distinfo
--- a/finance/py-eth-utils/distinfo     Thu Feb 18 12:34:44 2021 +0000
+++ b/finance/py-eth-utils/distinfo     Thu Feb 18 12:35:02 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2021/02/07 20:01:35 adam Exp $
+$NetBSD: distinfo,v 1.3 2021/02/18 12:35:02 mef Exp $
 
 SHA1 (eth-utils-1.10.0.tar.gz) = e359f87592cb64639abca695e7c7cb7a9e9b3ad9
 RMD160 (eth-utils-1.10.0.tar.gz) = b03c1cebbf2392fb0ebd691e6fb5a07ecda3d446
 SHA512 (eth-utils-1.10.0.tar.gz) = 910f6d1e89c17415141e0d67c9ae915272c1709b6b691a7c5661d308d0a854c84d7d5644f4d968e7c3fba8ff38101fd8ce63134b16f845e640874de1201717f4
 Size (eth-utils-1.10.0.tar.gz) = 4602591 bytes
+SHA1 (patch-setup.py) = 6a7906a300f7d7023bbee0dbc983626c888b06e8
diff -r ebff5f2e2323 -r 754cdac66190 finance/py-eth-utils/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-eth-utils/patches/patch-setup.py       Thu Feb 18 12:35:02 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2021/02/18 12:35:03 mef Exp $
+
+py36 gives following flag:
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2119: ordinal not in range(128)
+
+--- setup.py.orig      2021-01-22 07:56:32.000000000 +0900
++++ setup.py   2021-02-18 21:31:28.038465408 +0900
+@@ -1,5 +1,6 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++import sys
+ from setuptools import (
+     setup,
+     find_packages,
+@@ -42,7 +43,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