pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-hexbytes
Module Name: pkgsrc
Committed By: mef
Date: Thu Feb 18 14:42:52 UTC 2021
Modified Files:
pkgsrc/devel/py-hexbytes: distinfo
Added Files:
pkgsrc/devel/py-hexbytes/patches: patch-setup.py
Log Message:
(devel/py-hexbytes) Fix build by py36, UnicodeDecodeError:
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-hexbytes/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-hexbytes/patches/patch-setup.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-hexbytes/distinfo
diff -u pkgsrc/devel/py-hexbytes/distinfo:1.1 pkgsrc/devel/py-hexbytes/distinfo:1.2
--- pkgsrc/devel/py-hexbytes/distinfo:1.1 Mon Feb 8 08:26:34 2021
+++ pkgsrc/devel/py-hexbytes/distinfo Thu Feb 18 14:42:52 2021
@@ -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
Added files:
Index: pkgsrc/devel/py-hexbytes/patches/patch-setup.py
diff -u /dev/null pkgsrc/devel/py-hexbytes/patches/patch-setup.py:1.1
--- /dev/null Thu Feb 18 14:42:52 2021
+++ pkgsrc/devel/py-hexbytes/patches/patch-setup.py Thu Feb 18 14:42:52 2021
@@ -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