pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-hg-git (devel/py-hg-git) Add py36 fix patch, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a11b19e92b3
branches:  trunk
changeset: 458943:5a11b19e92b3
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Sep 27 02:00:44 2021 +0000

description:
(devel/py-hg-git) Add py36 fix patch, cannot decode 0xe2

diffstat:

 devel/py-hg-git/distinfo               |   3 ++-
 devel/py-hg-git/patches/patch-setup.py |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 1062e2b2a4e9 -r 5a11b19e92b3 devel/py-hg-git/distinfo
--- a/devel/py-hg-git/distinfo  Sun Sep 26 15:38:01 2021 +0000
+++ b/devel/py-hg-git/distinfo  Mon Sep 27 02:00:44 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2021/03/24 09:25:09 hauke Exp $
+$NetBSD: distinfo,v 1.9 2021/09/27 02:00:44 mef Exp $
 
 SHA1 (hg-git-0.10.0.tar.bz2) = 9207e04d942518dd9277555d2f54e063a0fa4e05
 RMD160 (hg-git-0.10.0.tar.bz2) = 9c1dc4227269a49a8c23afb9c0e3c53a4f580d8e
 SHA512 (hg-git-0.10.0.tar.bz2) = 6f4277bc2b63da97e63531c751465e72467be0dfe92a7b64bfa423412268f89f02985665428597281a53b44f169f1291447e7b1d3a8047d7b0d67d1b1e0e5e27
 Size (hg-git-0.10.0.tar.bz2) = 143518 bytes
+SHA1 (patch-setup.py) = 9255ceda0eb9a34963fc107fb62da8e5d6424ba8
diff -r 1062e2b2a4e9 -r 5a11b19e92b3 devel/py-hg-git/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-hg-git/patches/patch-setup.py    Mon Sep 27 02:00:44 2021 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-setup.py,v 1.1 2021/09/27 02:00:44 mef Exp $
+
+py36 flags:
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1085: ordinal not in range(128)
+
+--- setup.py.orig      2021-01-11 23:58:48.000000000 +0900
++++ setup.py   2021-09-27 10:51:25.778622523 +0900
+@@ -2,6 +2,8 @@ from __future__ import absolute_import, 
+ 
+ from os.path import dirname, join
+ 
++import sys
++
+ try:
+     from setuptools import setup
+ except:
+@@ -29,7 +31,7 @@ setup(
+     maintainer_email='kbullock+mercurial%ringworld.org@localhost',
+     url='http://foss.heptapod.net/mercurial/hg-git',
+     description='push to and pull from a Git repository using Mercurial',
+-    long_description=get_file("README.rst"),
++    long_description=''.join(open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).readlines()),
+     keywords='hg git mercurial',
+     license='GPLv2',
+     packages=['hggit'],



Home | Main Index | Thread Index | Old Index