diff --git a/www/py-django-treebeard/Makefile b/www/py-django-treebeard/Makefile index cc9da259e4ae..7edf3445d895 100644 --- a/www/py-django-treebeard/Makefile +++ b/www/py-django-treebeard/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.13 2021/01/30 07:23:29 mef Exp $ +# $NetBSD: Makefile,v 1.14 2021/03/19 09:09:50 adam Exp $ -DISTNAME= django-treebeard-4.4 +DISTNAME= django-treebeard-4.5.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=d/django-treebeard/} diff --git a/www/py-django-treebeard/distinfo b/www/py-django-treebeard/distinfo index acd9396b3ce7..7ca5c9a70284 100644 --- a/www/py-django-treebeard/distinfo +++ b/www/py-django-treebeard/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.13 2021/01/30 07:23:29 mef Exp $ +$NetBSD: distinfo,v 1.14 2021/03/19 09:09:50 adam 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 +SHA1 (django-treebeard-4.5.1.tar.gz) = abf75eb76bda8a68e9f93d926a9b99ce57883060 +RMD160 (django-treebeard-4.5.1.tar.gz) = 31493a02ba9191f1e539181021639973f36d3e2a +SHA512 (django-treebeard-4.5.1.tar.gz) = 27fa6ad50b25d0f9dd7dacddb36ec7165fa49abb26f17b744df3ba90c681107488f812e617d233dd54f86381f55986bd487687411a15dd90f911bc0cb3d8369e +Size (django-treebeard-4.5.1.tar.gz) = 784384 bytes +SHA1 (patch-setup.py) = a1b322c2cce8f180906f6f35d24ea57a31870214 diff --git a/www/py-django-treebeard/patches/patch-setup.py b/www/py-django-treebeard/patches/patch-setup.py index c8208c178e71..9752363a7c3e 100644 --- a/www/py-django-treebeard/patches/patch-setup.py +++ b/www/py-django-treebeard/patches/patch-setup.py @@ -1,29 +1,15 @@ -$NetBSD: patch-setup.py,v 1.1 2021/01/30 07:23:29 mef Exp $ +$NetBSD: patch-setup.py,v 1.2 2021/03/19 09:09:50 adam Exp $ -Fix build for py36: +Fix encoding error for Python 3.6. -raceback (most recent call last): - File "setup.py", line 10, in - 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() - - +--- setup.py.orig 2021-02-15 03:07:11.000000000 +0000 ++++ setup.py +@@ -3,7 +3,7 @@ from setuptools import setup, find_packa + from treebeard import __version__ + + +-with open('README.md') as fh: ++with open('README.md', encoding='utf-8') as fh: + long_description = fh.read() + +