Hello community, here is the log from the commit of package python-hiredis for openSUSE:Factory checked in at 2019-09-23 12:32:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hiredis (Old) and /work/SRC/openSUSE:Factory/.python-hiredis.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hiredis" Mon Sep 23 12:32:26 2019 rev:3 rq:731648 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hiredis/python-hiredis.changes 2019-08-27 10:27:22.971914451 +0200 +++ /work/SRC/openSUSE:Factory/.python-hiredis.new.7948/python-hiredis.changes 2019-09-23 12:32:35.321657627 +0200 @@ -1,0 +2,6 @@ +Tue Sep 17 21:45:19 UTC 2019 - Matthias Fehring <[email protected]> + +- Added patch 0002-Fix-README.md-has-unicode.patch + * wrong encoding is used when opening README.md in setup.py + +------------------------------------------------------------------- New: ---- 0002-Fix-README.md-has-unicode.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hiredis.spec ++++++ --- /var/tmp/diff_new_pack.cfkzfC/_old 2019-09-23 12:32:36.921657364 +0200 +++ /var/tmp/diff_new_pack.cfkzfC/_new 2019-09-23 12:32:36.921657364 +0200 @@ -28,6 +28,7 @@ Patch0: 0001-Use-system-libhiredis.patch Patch1: fix_build_dir_in_tests.patch Patch2: drop-vendor-sources.patch +Patch3: 0002-Fix-README.md-has-unicode.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes ++++++ 0002-Fix-README.md-has-unicode.patch ++++++ From: Matthias Fehring <[email protected]> Date: 2019-09-17 23:42:00 +0200 Subject: README.md has unicode in it Upstream: merged (https://github.com/redis/hiredis-py/pull/89) When reading the description in setup.py the wrong encoding is selected for the text files. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index bc8a95c..7ec9a5b 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension -import sys, imp, os, glob +import sys, imp, os, glob, io def version(): module = imp.load_source("hiredis.version", "hiredis/version.py") @@ -19,7 +19,7 @@ def version(): name="hiredis", version=version(), description="Python wrapper for hiredis", - long_description=open('README.md', 'r').read(), + long_description=io.open('README.md', 'rt', encoding='utf-8').read(), long_description_content_type='text/markdown', url="https://github.com/redis/hiredis-py", author="Jan-Erik Rediger, Pieter Noordhuis",
