pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/py-eth-typing (finance/py-eth-typing) build fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/12e895c49668
branches:  trunk
changeset: 447075:12e895c49668
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Feb 15 15:14:56 2021 +0000

description:
(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)

diffstat:

 finance/py-eth-typing/distinfo               |   3 ++-
 finance/py-eth-typing/patches/patch-setup.py |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 48fd3bd8790d -r 12e895c49668 finance/py-eth-typing/distinfo
--- a/finance/py-eth-typing/distinfo    Mon Feb 15 15:07:08 2021 +0000
+++ b/finance/py-eth-typing/distinfo    Mon Feb 15 15:14:56 2021 +0000
@@ -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 -r 48fd3bd8790d -r 12e895c49668 finance/py-eth-typing/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-eth-typing/patches/patch-setup.py      Mon Feb 15 15:14:56 2021 +0000
@@ -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()
+ 
+ 



Home | Main Index | Thread Index | Old Index