[packages/python-commonmark] - workaround for UTF-8 stdout from python2; release 2

qboosh qboosh at pld-linux.org
Thu Oct 11 18:56:58 CEST 2018


commit 09fa856dbc68478aa9294e007fc874b2277465e4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 11 19:00:29 2018 +0200

    - workaround for UTF-8 stdout from python2; release 2

 python-commonmark.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/python-commonmark.spec b/python-commonmark.spec
index c80581a..131f199 100644
--- a/python-commonmark.spec
+++ b/python-commonmark.spec
@@ -8,7 +8,7 @@ Summary:	Python parser for the CommonMark Markdown spec
 Summary(pl.UTF-8):	Pythonowy parser specyfikacji CommonMark Markdown
 Name:		python-commonmark
 Version:	0.8.1
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz
@@ -73,6 +73,7 @@ użyciu natywnych modułów.
 
 %if %{with tests}
 LC_ALL=C.UTF-8 \
+PYTHONIOENCODING=utf-8 \
 PYTHONPATH=$(pwd)/build-2/lib \
 %{__python} commonmark/tests/run_spec_tests.py
 %endif
@@ -84,7 +85,7 @@ PYTHONPATH=$(pwd)/build-2/lib \
 %if %{with tests}
 LC_ALL=C.UTF-8 \
 PYTHONPATH=$(pwd)/build-3/lib \
-%{__python} commonmark/tests/run_spec_tests.py
+%{__python3} commonmark/tests/run_spec_tests.py
 %endif
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-commonmark.git/commitdiff/09fa856dbc68478aa9294e007fc874b2277465e4



More information about the pld-cvs-commit mailing list