Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-feedgenerator Fix build with Python 3.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/856c1ea5fbf3
branches:  trunk
changeset: 436904:856c1ea5fbf3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Aug 11 18:41:55 2020 +0000

description:
Fix build with Python 3.6.

diffstat:

 www/py-feedgenerator/distinfo               |   3 ++-
 www/py-feedgenerator/patches/patch-setup.py |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 14d2e266a923 -r 856c1ea5fbf3 www/py-feedgenerator/distinfo
--- a/www/py-feedgenerator/distinfo     Tue Aug 11 18:41:26 2020 +0000
+++ b/www/py-feedgenerator/distinfo     Tue Aug 11 18:41:55 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2020/08/03 13:51:29 adam Exp $
+$NetBSD: distinfo,v 1.4 2020/08/11 18:41:55 joerg Exp $
 
 SHA1 (feedgenerator-1.9.1.tar.gz) = 0cb4303452a8642285a1742ed709bf0677c436c2
 RMD160 (feedgenerator-1.9.1.tar.gz) = 2a70254c854d03acee0437b9b600fa7191f202b1
 SHA512 (feedgenerator-1.9.1.tar.gz) = db3642acb8f0c9fd692f37a79cf5862e60687a1745afbc6593d37a0372adb994de603238a17a8eae95ffcc993195f63037f16122a3cf8771e6922dea492fb5d5
 Size (feedgenerator-1.9.1.tar.gz) = 25677 bytes
+SHA1 (patch-setup.py) = 9e95c78d37aa8500eeb635a7e47dc3b2c18fdffc
diff -r 14d2e266a923 -r 856c1ea5fbf3 www/py-feedgenerator/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-feedgenerator/patches/patch-setup.py       Tue Aug 11 18:41:55 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-setup.py,v 1.1 2020/08/11 18:41:55 joerg Exp $
+
+--- setup.py.orig      2020-02-09 10:45:34.000000000 +0000
++++ setup.py
+@@ -2,13 +2,13 @@
+ 
+ # Using setuptools rather than distutils to get the `develop` command
+ from setuptools import setup
+-
++import sys
+ 
+ NAME = 'feedgenerator'
+ PACKAGES = ['feedgenerator', 'feedgenerator.django',
+             'feedgenerator.django.utils']
+ DESCRIPTION = 'Standalone version of django.utils.feedgenerator'
+-LONG_DESCRIPTION = open('README.rst').read()
++LONG_DESCRIPTION = open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).read()
+ 
+ URL = "https://github.com/getpelican/feedgenerator";
+ 



Home | Main Index | Thread Index | Old Index