pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-django-treebeard (www/py-django-treebeard) Add ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/385e9952eb18
branches: trunk
changeset: 445829:385e9952eb18
user: mef <mef%pkgsrc.org@localhost>
date: Sat Jan 30 07:23:29 2021 +0000
description:
(www/py-django-treebeard) Add patch for build fix, only for py36
diffstat:
www/py-django-treebeard/Makefile | 4 +-
www/py-django-treebeard/distinfo | 3 +-
www/py-django-treebeard/patches/patch-setup.py | 29 ++++++++++++++++++++++++++
3 files changed, 33 insertions(+), 3 deletions(-)
diffs (63 lines):
diff -r 33b1aefb06e9 -r 385e9952eb18 www/py-django-treebeard/Makefile
--- a/www/py-django-treebeard/Makefile Sat Jan 30 06:28:13 2021 +0000
+++ b/www/py-django-treebeard/Makefile Sat Jan 30 07:23:29 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2021/01/16 09:01:04 adam Exp $
+# $NetBSD: Makefile,v 1.13 2021/01/30 07:23:29 mef Exp $
DISTNAME= django-treebeard-4.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -10,7 +10,7 @@
COMMENT= Efficient tree implementations for the Django Web Framework
LICENSE= apache-2.0
-DEPENDS+= ${PYPKGPREFIX}-django>=2.2:../../www/py-django
+DEPENDS+= ${PYPKGPREFIX}-django>=2.2:../../www/py-django2
USE_LANGUAGES= # none
diff -r 33b1aefb06e9 -r 385e9952eb18 www/py-django-treebeard/distinfo
--- a/www/py-django-treebeard/distinfo Sat Jan 30 06:28:13 2021 +0000
+++ b/www/py-django-treebeard/distinfo Sat Jan 30 07:23:29 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2021/01/16 09:01:04 adam Exp $
+$NetBSD: distinfo,v 1.13 2021/01/30 07:23:29 mef Exp $
SHA1 (django-treebeard-4.4.tar.gz) = f735ae02fd72a154818df01c997f0ad65e3877d3
RMD160 (django-treebeard-4.4.tar.gz) = b1f2d629819d5fa05d8c7c6079bb5c8b2b4a8692
SHA512 (django-treebeard-4.4.tar.gz) = f2513553ac789f1e8a95629a414aa40243e6ae6259f5fe5a73911184e829e8603c7421103a6b3d5890ef2dabcbad3b23775f5ea73fd21835f457e961b5887081
Size (django-treebeard-4.4.tar.gz) = 310658 bytes
+SHA1 (patch-setup.py) = d79034c10d7522bc65e2571c53ef9e3503a65583
diff -r 33b1aefb06e9 -r 385e9952eb18 www/py-django-treebeard/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-django-treebeard/patches/patch-setup.py Sat Jan 30 07:23:29 2021 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-setup.py,v 1.1 2021/01/30 07:23:29 mef Exp $
+
+Fix build for py36:
+
+raceback (most recent call last):
+ File "setup.py", line 10, in <module>
+ long_description = fh.read()
+ File "/usr/pkg/lib/python3.6/encodings/ascii.py", line 26, in decode
+ return codecs.ascii_decode(input, self.errors)[0]
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 175: ordinal not in range(128)
+*** Error code 1
+
+--- setup.py.orig 2021-01-13 18:18:36.000000000 +0900
++++ setup.py 2021-01-30 16:15:37.800803620 +0900
+@@ -1,12 +1,13 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ import os
++import sys
+ from setuptools import setup, find_packages
+ from treebeard import __version__
+ import codecs
+
+
+-with open('README.md') as fh:
++with open("README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as fh:
+ long_description = fh.read()
+
+
Home |
Main Index |
Thread Index |
Old Index