pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-ifaddr



Module Name:    pkgsrc
Committed By:   mef
Date:           Sat Jun 20 02:08:56 UTC 2020

Modified Files:
        pkgsrc/net/py-ifaddr: distinfo
Added Files:
        pkgsrc/net/py-ifaddr/patches: patch-setup.py

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/py-ifaddr/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/py-ifaddr/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/net/py-ifaddr/distinfo
diff -u pkgsrc/net/py-ifaddr/distinfo:1.2 pkgsrc/net/py-ifaddr/distinfo:1.3
--- pkgsrc/net/py-ifaddr/distinfo:1.2   Wed Jun 10 10:18:17 2020
+++ pkgsrc/net/py-ifaddr/distinfo       Sat Jun 20 02:08:55 2020
@@ -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

Added files:

Index: pkgsrc/net/py-ifaddr/patches/patch-setup.py
diff -u /dev/null pkgsrc/net/py-ifaddr/patches/patch-setup.py:1.1
--- /dev/null   Sat Jun 20 02:08:56 2020
+++ pkgsrc/net/py-ifaddr/patches/patch-setup.py Sat Jun 20 02:08:56 2020
@@ -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