[packages/python-docker] fix python3 build on non-utf8 locale (C)
glen
glen at pld-linux.org
Sun Nov 27 14:04:05 CET 2016
commit be7f0d36d52f24e9e798a49f1ac754f4338f8648
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Nov 27 14:54:55 2016 +0200
fix python3 build on non-utf8 locale (C)
https://github.com/docker/docker-py/pull/1313
python-docker.spec | 2 ++
unicode.patch | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
---
diff --git a/python-docker.spec b/python-docker.spec
index 970a883..dd06dc8 100644
--- a/python-docker.spec
+++ b/python-docker.spec
@@ -16,6 +16,7 @@ Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Source0-md5: 6c8b8309dfe9610edb2170bb2d807bd7
Patch0: unpin-requirements.patch
+Patch1: unicode.patch
URL: http://docker-py.readthedocs.org/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.710
@@ -53,6 +54,7 @@ them, pull/push images, etc.
%prep
%setup -q -n docker-py-%{version}
%patch0 -p1
+%patch1 -p1
%build
%if %{with python2}
diff --git a/unicode.patch b/unicode.patch
new file mode 100644
index 0000000..14a59c3
--- /dev/null
+++ b/unicode.patch
@@ -0,0 +1,35 @@
+upstream: https://github.com/docker/docker-py/pull/1313
+
++ /usr/bin/python3 setup.py build '--build-base=build-3'
+Traceback (most recent call last):
+ File "setup.py", line 36, in <module>
+ long_description = readme_rst.read()
+ File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
+ return codecs.ascii_decode(input, self.errors)[0]
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 152: ordinal not in range(128)
+error: Bad exit status from /home/users/glen/tmp/rpm-tmp.71980 (%build)
+ Bad exit status from /home/users/glen/tmp/rpm-tmp.71980 (%build)
+
+
+--- docker-py-1.10.6/README.md~ 2016-10-17 23:28:43.000000000 +0300
++++ docker-py-1.10.6/README.md 2016-11-27 14:52:18.175156781 +0200
+@@ -3,7 +3,7 @@
+
+ [](https://travis-ci.org/docker/docker-py)
+
+-A Python library for the Docker Remote API. It does everything the `docker` command does, but from within Python – run containers, manage them, pull/push images, etc.
++A Python library for the Docker Remote API. It does everything the `docker` command does, but from within Python - run containers, manage them, pull/push images, etc.
+
+ Installation
+ ------------
+--- docker-py-1.10.6/README.rst~ 2016-11-03 01:49:01.000000000 +0200
++++ docker-py-1.10.6/README.rst 2016-11-27 14:53:00.603973652 +0200
+@@ -4,7 +4,7 @@
+ |Build Status|
+
+ A Python library for the Docker Remote API. It does everything the
+-``docker`` command does, but from within Python – run containers, manage
++``docker`` command does, but from within Python - run containers, manage
+ them, pull/push images, etc.
+
+ Installation
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-docker.git/commitdiff/be7f0d36d52f24e9e798a49f1ac754f4338f8648
More information about the pld-cvs-commit
mailing list