From 8baadfc3fee4a64ba0042db917979126ea0d37d5 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Nov 16 2015 18:54:56 +0000 Subject: Add missing sources --- diff --git a/.gitignore b/.gitignore index e69de29..56b7b40 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sphinxcontrib-programoutput-0.8.tar.gz diff --git a/592078e0386c2a36d50a6528b6e49d91707138bf.patch b/592078e0386c2a36d50a6528b6e49d91707138bf.patch new file mode 100644 index 0000000..c311539 --- /dev/null +++ b/592078e0386c2a36d50a6528b6e49d91707138bf.patch @@ -0,0 +1,23 @@ +From 592078e0386c2a36d50a6528b6e49d91707138bf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20C=2E=20M=C3=BCller?= +Date: Thu, 21 Mar 2013 00:03:11 +0100 +Subject: [PATCH] Error tolerant output decoding + +Avoid throwing an exception if the program output is not valid unicode. Replace invalid bytes by the unicode replacement character. +--- + sphinxcontrib/programoutput.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sphinxcontrib/programoutput.py b/sphinxcontrib/programoutput.py +index 45078a6..3f6a4f1 100644 +--- a/sphinxcontrib/programoutput.py ++++ b/sphinxcontrib/programoutput.py +@@ -159,7 +159,7 @@ def get_output(self): + """ + process = self.execute() + output = process.communicate()[0].decode( +- sys.getfilesystemencoding()).rstrip() ++ sys.getfilesystemencoding(), 'replace').rstrip() + return process.returncode, output + + def __str__(self): diff --git a/83502056efa0aaed2a5edbd1f44a28d9d5d4815d.patch b/83502056efa0aaed2a5edbd1f44a28d9d5d4815d.patch new file mode 100644 index 0000000..1b8ab9c --- /dev/null +++ b/83502056efa0aaed2a5edbd1f44a28d9d5d4815d.patch @@ -0,0 +1,24 @@ +From 83502056efa0aaed2a5edbd1f44a28d9d5d4815d Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev +Date: Fri, 5 Jun 2015 20:58:19 +0300 +Subject: [PATCH] conftest.py: Use basic theme instead of deprecated default + +This will avoid failure because of a warning with Sphinx 1.3. +Fixes #3. +--- + tests/conftest.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/conftest.py b/tests/conftest.py +index 66a6210..f4b4dbc 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -46,7 +46,7 @@ + exclude_patterns = [] + + pygments_style = 'sphinx' +-html_theme = 'default' ++html_theme = 'basic' + """ + +