pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-fasteners (devel/py-fasteners) Build fix for ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8f1c06a7791
branches: trunk
changeset: 447061:e8f1c06a7791
user: mef <mef%pkgsrc.org@localhost>
date: Mon Feb 15 14:18:35 2021 +0000
description:
(devel/py-fasteners) Build fix for py36
Silence following error (only for py36)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 429: ordinal not in range(128)
diffstat:
devel/py-fasteners/distinfo | 3 ++-
devel/py-fasteners/patches/patch-setup.py | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r d356b7c08f4f -r e8f1c06a7791 devel/py-fasteners/distinfo
--- a/devel/py-fasteners/distinfo Mon Feb 15 13:14:17 2021 +0000
+++ b/devel/py-fasteners/distinfo Mon Feb 15 14:18:35 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2021/02/13 21:42:51 adam Exp $
+$NetBSD: distinfo,v 1.4 2021/02/15 14:18:35 mef Exp $
SHA1 (fasteners-0.16.tar.gz) = 0215ae39130d3b6d2c27a0539e440fb455dfb9f5
RMD160 (fasteners-0.16.tar.gz) = b82b88a005e9a628b40664f2c3c3df0a62a0cb61
SHA512 (fasteners-0.16.tar.gz) = aac91be8f732bcda238c40317359c7faaad632b26473eff940fef0c6c2c227cd83942122c0ec26da236ca8c19d3024798590244ec761c2d2700ffdc7142533da
Size (fasteners-0.16.tar.gz) = 24824 bytes
+SHA1 (patch-setup.py) = 51d2b614b571194c8c695cb64960aa5900bf08a8
diff -r d356b7c08f4f -r e8f1c06a7791 devel/py-fasteners/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-fasteners/patches/patch-setup.py Mon Feb 15 14:18:35 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-setup.py,v 1.1 2021/02/15 14:18:35 mef Exp $
+
+py36 gives following flag:
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 429: ordinal not in range(128)
+
+--- setup.py.orig 2020-12-17 03:03:32.000000000 +0900
++++ setup.py 2021-02-15 23:09:28.515008318 +0900
+@@ -18,10 +18,11 @@
+ # License for the specific language governing permissions and limitations
+ # under the License.
+
++import sys
+ from setuptools import find_packages
+ from setuptools import setup
+
+-with open("README.md", "r") as readme:
++with open("README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme:
+ long_description = readme.read()
+
+ install_requires = [
Home |
Main Index |
Thread Index |
Old Index