From d81f38e6ca58aa7f316ed6d06209d9379e75aa627fd316f2bc64eba978ca8fdc Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 18 Jun 2019 12:21:06 +0000 Subject: [PATCH] - Fix build for older distros which fail with UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4575: \ ordinal not in range(128) Added e95001e480ec30f1617c47e77fb92e0384ff9e78.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pika?expand=0&rev=32 --- ...01e480ec30f1617c47e77fb92e0384ff9e78.patch | 23 +++++++++++++++++++ python-pika.changes | 8 +++++++ python-pika.spec | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 e95001e480ec30f1617c47e77fb92e0384ff9e78.patch diff --git a/e95001e480ec30f1617c47e77fb92e0384ff9e78.patch b/e95001e480ec30f1617c47e77fb92e0384ff9e78.patch new file mode 100644 index 0000000..1eab4d2 --- /dev/null +++ b/e95001e480ec30f1617c47e77fb92e0384ff9e78.patch @@ -0,0 +1,23 @@ +From e95001e480ec30f1617c47e77fb92e0384ff9e78 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Adam=20C=C3=A9cile?= +Date: Tue, 30 Apr 2019 17:15:49 +0200 +Subject: [PATCH] Asciify README.rst (setup.py fails to open it if console is + not UTF-8) + +--- + README.rst | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/README.rst b/README.rst +index c6667a26..e6b93e2a 100644 +--- a/README.rst ++++ b/README.rst +@@ -112,7 +112,7 @@ a timely fashion. + + Messages processed in another thread may not be acknowledged directly from that + thread, since all accesses to the connection adapter instance must be from a +-single thread—the thread that is running the adapter's I/O loop. However, this ++single thread--the thread that is running the adapter's I/O loop. However, this + may be accomplished by requesting a callback to be executed in the adapter's + I/O loop thread. For example, the callback function's implementation might look + like this: diff --git a/python-pika.changes b/python-pika.changes index 2a74eff..16e9289 100644 --- a/python-pika.changes +++ b/python-pika.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jun 18 12:18:02 UTC 2019 - Thomas Bechtold + +- Fix build for older distros which fail with + UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4575: \ + ordinal not in range(128) + Added e95001e480ec30f1617c47e77fb92e0384ff9e78.patch + ------------------------------------------------------------------- Thu Apr 18 12:56:39 UTC 2019 - Ondřej Súkup diff --git a/python-pika.spec b/python-pika.spec index f27de37..124de2b 100644 --- a/python-pika.spec +++ b/python-pika.spec @@ -26,6 +26,8 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pika/pika Source: https://github.com/pika/pika/archive/%{version}.tar.gz +# PATCH-FIX-UPSTREAM e95001e480ec30f1617c47e77fb92e0384ff9e78.patch -- https://github.com/pika/pika/commit/e95001e480ec30f1617c47e77fb92e0384ff9e78 +Patch0: e95001e480ec30f1617c47e77fb92e0384ff9e78.patch BuildRequires: %{python_module Twisted} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} @@ -47,6 +49,7 @@ should also work with other AMQP 0-9-1 brokers. %prep %setup -q -n %{mod_name}-%{version} +%patch0 -p1 # acceptance needs running configured server rm -rf tests/acceptance/ sed -i -e 's:,tests/acceptance::' setup.cfg