pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-hexbytes (devel/py-hexbytes) Fix build by py3...
details: https://anonhg.NetBSD.org/pkgsrc/rev/17f0aff49684
branches: trunk
changeset: 447252:17f0aff49684
user: mef <mef%pkgsrc.org@localhost>
date: Thu Feb 18 14:42:52 2021 +0000
description:
(devel/py-hexbytes) Fix build by py36, UnicodeDecodeError:
diffstat:
devel/py-hexbytes/distinfo | 3 ++-
devel/py-hexbytes/patches/patch-setup.py | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r ec107844fe90 -r 17f0aff49684 devel/py-hexbytes/distinfo
--- a/devel/py-hexbytes/distinfo Thu Feb 18 12:52:20 2021 +0000
+++ b/devel/py-hexbytes/distinfo Thu Feb 18 14:42:52 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2021/02/08 08:26:34 adam Exp $
+$NetBSD: distinfo,v 1.2 2021/02/18 14:42:52 mef Exp $
SHA1 (hexbytes-0.2.1.tar.gz) = 10bd86d65aa98acc48cf85189da6b8cb6334cb5e
RMD160 (hexbytes-0.2.1.tar.gz) = e8b1b249d13500e73bdc09a5638a80548c753348
SHA512 (hexbytes-0.2.1.tar.gz) = 317e0a0ccfce0a3db3618be60045826c8f98f26f16bd2fecabfc43dceff8395a7d62785700e35911afb4508fe96701eefbb746f29c9991455f166801ed5b2e40
Size (hexbytes-0.2.1.tar.gz) = 1521935 bytes
+SHA1 (patch-setup.py) = 64c71cd1e7dd94f5d4e23ec5f45b938b35ea9a66
diff -r ec107844fe90 -r 17f0aff49684 devel/py-hexbytes/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-hexbytes/patches/patch-setup.py Thu Feb 18 14:42:52 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2021/02/18 14:42:52 mef Exp $
+
+py36 gives following flag
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2807: ordinal not in range(128)
+
+--- setup.py.orig 2021-02-18 23:38:01.453886086 +0900
++++ setup.py 2021-02-18 23:39:03.415666893 +0900
+@@ -1,5 +1,6 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++import sys
+ from setuptools import (
+ setup,
+ find_packages,
+@@ -41,7 +42,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