15
0

Accepting request 764900 from devel:languages:python

- Update to 1.0.1:
  * Permit all allowed values of codec errors (see #86)
  * BUGFIX: READEME.md has UTF-8 characters, setup.py will fail on systems where the locale is not UTF-8. (see #89)
- Drop merged patch 0002-Fix-README.md-has-unicode.patch

OBS-URL: https://build.opensuse.org/request/show/764900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hiredis?expand=0&rev=4
This commit is contained in:
2020-01-16 17:22:35 +00:00
committed by Git OBS Bridge
5 changed files with 13 additions and 41 deletions

View File

@@ -1,34 +0,0 @@
From: Matthias Fehring <buschmann23@opensuse.org>
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",

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jan 16 08:54:49 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.1:
* Permit all allowed values of codec errors (see #86)
* BUGFIX: READEME.md has UTF-8 characters, setup.py will fail on systems where the locale is not UTF-8. (see #89)
- Drop merged patch 0002-Fix-README.md-has-unicode.patch
-------------------------------------------------------------------
Tue Sep 17 21:45:19 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-hiredis
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,17 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-hiredis
Version: 1.0.0
Version: 1.0.1
Release: 0
Summary: Python wrapper for hiredis
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/redis/hiredis-py
Source: https://github.com/redis/hiredis-py/archive/v%{version}.tar.gz
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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9eb3f262f60af8953945742ee201d13c0eb94ba6f89db8664d44f27a9ac2aeb8
size 14076

3
v1.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2970b6123b071d8f2abf4f87f2cbeb6cfd698036b9a1b713c052361e3c2849c0
size 14215