pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/py-iso8601 py-iso8601: fix Python 3.6 build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26f0132854b8
branches:  trunk
changeset: 439277:26f0132854b8
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Wed Sep 16 03:00:37 2020 +0000

description:
py-iso8601: fix Python 3.6 build

diffstat:

 time/py-iso8601/distinfo               |   3 ++-
 time/py-iso8601/patches/patch-setup.py |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 8caa35429ad3 -r 26f0132854b8 time/py-iso8601/distinfo
--- a/time/py-iso8601/distinfo  Wed Sep 16 02:03:57 2020 +0000
+++ b/time/py-iso8601/distinfo  Wed Sep 16 03:00:37 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2020/09/14 07:36:25 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/09/16 03:00:37 gutteridge Exp $
 
 SHA1 (iso8601-0.1.13.tar.gz) = afae97b918ae0d3714dac485ddad822d3c693955
 RMD160 (iso8601-0.1.13.tar.gz) = af366917acf562295251bf6775d0c3acffb75844
 SHA512 (iso8601-0.1.13.tar.gz) = 0a16e2699ba3f33cec57acdd2be70c64d0e2655f08d30581f56997992945b700e6bfb14164f1f422e073eefeaefab4377a56ec6b3800156347e1568172c32737
 Size (iso8601-0.1.13.tar.gz) = 12205 bytes
+SHA1 (patch-setup.py) = b481fec7957732797c377880a585dd8d146e51da
diff -r 8caa35429ad3 -r 26f0132854b8 time/py-iso8601/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-iso8601/patches/patch-setup.py    Wed Sep 16 03:00:37 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2020/09/16 03:00:37 gutteridge Exp $
+
+Fix packaging with Python 3.6. Taken from upstream commit:
+https://github.com/micktwomey/pyiso8601/commit/b5544878bc799bdd77d63d3c9e78c4fcc4e018ad
+
+--- setup.py.orig      2020-09-11 17:04:56.000000000 +0000
++++ setup.py
+@@ -5,7 +5,7 @@ try:
+ except ImportError:
+     from distutils import setup
+ 
+-long_description = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
++long_description = open(os.path.join(os.path.dirname(__file__), "README.rst"), "rb").read().decode("UTF-8")
+ 
+ setup(
+     name="iso8601",



Home | Main Index | Thread Index | Old Index