pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-django-treebeard



Module Name:    pkgsrc
Committed By:   mef
Date:           Sat Jan 30 07:23:29 UTC 2021

Modified Files:
        pkgsrc/www/py-django-treebeard: Makefile distinfo
Added Files:
        pkgsrc/www/py-django-treebeard/patches: patch-setup.py

Log Message:
(www/py-django-treebeard) Add patch for build fix, only for py36


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/www/py-django-treebeard/Makefile \
    pkgsrc/www/py-django-treebeard/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/py-django-treebeard/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/www/py-django-treebeard/Makefile
diff -u pkgsrc/www/py-django-treebeard/Makefile:1.12 pkgsrc/www/py-django-treebeard/Makefile:1.13
--- pkgsrc/www/py-django-treebeard/Makefile:1.12        Sat Jan 16 09:01:04 2021
+++ pkgsrc/www/py-django-treebeard/Makefile     Sat Jan 30 07:23:29 2021
@@ -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 @@ HOMEPAGE=     https://github.com/django-tree
 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
 
Index: pkgsrc/www/py-django-treebeard/distinfo
diff -u pkgsrc/www/py-django-treebeard/distinfo:1.12 pkgsrc/www/py-django-treebeard/distinfo:1.13
--- pkgsrc/www/py-django-treebeard/distinfo:1.12        Sat Jan 16 09:01:04 2021
+++ pkgsrc/www/py-django-treebeard/distinfo     Sat Jan 30 07:23:29 2021
@@ -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

Added files:

Index: pkgsrc/www/py-django-treebeard/patches/patch-setup.py
diff -u /dev/null pkgsrc/www/py-django-treebeard/patches/patch-setup.py:1.1
--- /dev/null   Sat Jan 30 07:23:29 2021
+++ pkgsrc/www/py-django-treebeard/patches/patch-setup.py       Sat Jan 30 07:23:29 2021
@@ -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