Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/py-ifaddr (net/py-ifaddr) fix build for py3, Expli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7878456a3c0f
branches:  trunk
changeset: 434633:7878456a3c0f
user:      mef <mef%pkgsrc.org@localhost>
date:      Sat Jun 20 02:08:55 2020 +0000

description:
(net/py-ifaddr) fix build for py3, Explicitly read file as UTF-8, tks joerg@

diffstat:

 net/py-ifaddr/distinfo               |   3 ++-
 net/py-ifaddr/patches/patch-setup.py |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 43b21c5d15d8 -r 7878456a3c0f net/py-ifaddr/distinfo
--- a/net/py-ifaddr/distinfo    Sat Jun 20 00:11:59 2020 +0000
+++ b/net/py-ifaddr/distinfo    Sat Jun 20 02:08:55 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2020/06/10 10:18:17 adam Exp $
+$NetBSD: distinfo,v 1.3 2020/06/20 02:08:55 mef Exp $
 
 SHA1 (ifaddr-0.1.7.tar.gz) = a74dd735a96427020774df550b997d1ad034743d
 RMD160 (ifaddr-0.1.7.tar.gz) = b524efab1ae747efdba26a5a98bd8b84fa4e055d
 SHA512 (ifaddr-0.1.7.tar.gz) = 9a428dd6bb022c8f483b77df9e9301f96e9ba64207eda8b3956a7ca5993bfe97f222c451149851135d379db1a819c75d0834566f3b6501456b2f237b0645e300
 Size (ifaddr-0.1.7.tar.gz) = 9281 bytes
+SHA1 (patch-setup.py) = c96e7d5b7c4d31107d163f2868f2712d206eceb1
diff -r 43b21c5d15d8 -r 7878456a3c0f net/py-ifaddr/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-ifaddr/patches/patch-setup.py      Sat Jun 20 02:08:55 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-setup.py,v 1.1 2020/06/20 02:08:56 mef Exp $
+
+Explicitly read file as UTF-8, thanks joerg@
+
+--- setup.py.orig      2020-06-06 18:56:10.000000000 +0000
++++ setup.py
+@@ -19,10 +19,11 @@
+ # IN THE SOFTWARE.
+ 
+ import os.path
++import sys
+ from setuptools import setup, find_packages
+ 
+ if os.path.exists('README.rst'):
+-    with open('README.rst') as f:
++    with open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as f:
+         long_description = f.read()
+ else:
+     long_description = ""



Home | Main Index | Thread Index | Old Index