summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-05-31 20:49:32 +0000
committerjoerg <joerg@pkgsrc.org>2020-05-31 20:49:32 +0000
commit3a12f273afbd3bb33cb31b8be3a0fd7ede82c05e (patch)
treee0bc14018181a75968f2f01ae058c9afa1ca87b9 /converters
parent6c32e5f95c513f5d2207a302c9f0738f5978d8b8 (diff)
downloadpkgsrc-3a12f273afbd3bb33cb31b8be3a0fd7ede82c05e.tar.gz
Explicitly read files as unicode for Python 3. The content is converted
using the system locale with Python 3.6 otherwise, falling back to ASCII.
Diffstat (limited to 'converters')
-rw-r--r--converters/py-unicode-slugify/distinfo3
-rw-r--r--converters/py-unicode-slugify/patches/patch-setup.py17
2 files changed, 19 insertions, 1 deletions
diff --git a/converters/py-unicode-slugify/distinfo b/converters/py-unicode-slugify/distinfo
index 581615abe2f..e8914ea76cc 100644
--- a/converters/py-unicode-slugify/distinfo
+++ b/converters/py-unicode-slugify/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/05/01 17:50:59 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/05/31 20:49:33 joerg Exp $
SHA1 (unicode-slugify-0.1.3.tar.gz) = 077cfd0c226f6b2cab3c84b340cd9693ce9939fc
RMD160 (unicode-slugify-0.1.3.tar.gz) = 16fbfb4614658bb4fb2217484ebece362d140e0d
SHA512 (unicode-slugify-0.1.3.tar.gz) = 509414c8b3603f3b092390ee29f52b6a22de45d904fcfa5554f2c1188a35ac090781050642b0b7bf068d1b30ce424342878e646db98b592712f47595528911a1
Size (unicode-slugify-0.1.3.tar.gz) = 4430 bytes
+SHA1 (patch-setup.py) = 3a7d378b2d2881e533b5e04688d60ab2d2853b52
diff --git a/converters/py-unicode-slugify/patches/patch-setup.py b/converters/py-unicode-slugify/patches/patch-setup.py
new file mode 100644
index 00000000000..9d7a157faa4
--- /dev/null
+++ b/converters/py-unicode-slugify/patches/patch-setup.py
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $
+
+--- setup.py.orig 2020-05-31 18:05:52.507238288 +0000
++++ setup.py
+@@ -1,10 +1,11 @@
++import sys
+ from setuptools import setup
+
+ setup(
+ name='unicode-slugify',
+ version='0.1.3',
+ description='A slug generator that turns strings into unicode slugs.',
+- long_description=open('README.md').read(),
++ long_description=open('README.md', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).read(),
+ author='Jeff Balogh, Dave Dash',
+ author_email='jbalogh@mozilla.com, dd@mozilla.com',
+ url='http://github.com/mozilla/unicode-slugify',