Package: sphinx / 1.8.5-4

Metadata

Package Version Patches format
sphinx 1.8.5-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
disable_js_version_check.diff | (download)

tests/test_theming.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 disable a test that checks versions of js libraries

no_snowballstemmer.diff | (download)

Sphinx.egg-info/requires.txt | 1 0 + 1 - 0 !
setup.py | 1 0 + 1 - 0 !
sphinx/search/da.py | 4 2 + 2 - 0 !
sphinx/search/de.py | 4 2 + 2 - 0 !
sphinx/search/es.py | 4 2 + 2 - 0 !
sphinx/search/fi.py | 4 2 + 2 - 0 !
sphinx/search/fr.py | 4 2 + 2 - 0 !
sphinx/search/hu.py | 4 2 + 2 - 0 !
sphinx/search/it.py | 4 2 + 2 - 0 !
sphinx/search/nl.py | 4 2 + 2 - 0 !
sphinx/search/no.py | 4 2 + 2 - 0 !
sphinx/search/pt.py | 4 2 + 2 - 0 !
sphinx/search/ro.py | 4 2 + 2 - 0 !
sphinx/search/ru.py | 4 2 + 2 - 0 !
sphinx/search/sv.py | 4 2 + 2 - 0 !
sphinx/search/tr.py | 4 2 + 2 - 0 !
16 files changed, 28 insertions(+), 30 deletions(-)

 replace snowballstemmer usage with pystemmer

The snowballstemmer module uses PyStemmer (bindings for libstemmer_c)
when it is available, and falls back to its own pure Python implementation
otherwise.

In Debian the snowballstemmer module is not packaged, so we can use
PyStemmer directly.

skip_tests_network.diff | (download)

tests/test_build_latex.py | 1 1 + 0 - 0 !
tests/test_build_linkcheck.py | 2 2 + 0 - 0 !
2 files changed, 3 insertions(+)

 skip linkcheck tests that require network access

no_require_websupport.diff | (download)

setup.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 move sphinxcontrib-websupport to extras_require


no_external_css.diff | (download)

doc/_themes/sphinx13/layout.html | 2 0 + 2 - 0 !
sphinx/themes/pyramid/layout.html | 2 0 + 2 - 0 !
2 files changed, 4 deletions(-)

 don't use google fonts to avoid privacy breach.


no_require_setuptools.diff | (download)

setup.py | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 remove setuptools from install_requires

It was added there because the entry points use pkg_resources module,
but it is provided in a separate package in Debian, pulling setuptools
itself is not needed.

no_external_image.diff | (download)

doc/_templates/indexsidebar.html | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 do not use external image in the documentation template


python2_tests_import_hack.diff | (download)

tests/test_ext_math.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 make test_math_compat pass by adding sphinx.ext.mathbase import

If this module is not in sys.modules cache before the chdir() call
in eval_config_file(), Python 2 will try to load sphinx/ext/mathbase.py
file relative to the new working directory, not by absolute path.

This problem does not happen with Python 3.

python2_test_get_module_source.diff | (download)

tests/test_util.py | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 make test_get_module_source() pass on python 2

In Python < 3.4, module.__path__ can be relative path when the module
is loaded from the current directory (not from site-packages).

However, get_module_source() makes the path absolute, which caused
this test to fail.

reproducible_download.diff | (download)

sphinx/environment/collectors/asset.py | 2 1 + 1 - 0 !
tests/test_build_html5.py | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 make generated download links reproducible

Without this change the hexdigest generated in DownloadFiles.add_file()
depends on source_dir, while just the path fragment relative to it is
sufficient.

(cherry picked from commit 6fc8873087ce38f1a4217ca8d5dc2beaf0c32cda)

docutils_0.15.diff | (download)

sphinx/util/nodes.py | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix #6620: i18n: classifiers of definition list are not translated
 with docutils-0.15

(cherry picked from commit c45f962b05106d91d64d9fa820a3951b694d9a6a)

remove_websupport_assets.diff | (download)

tests/test_build_qthelp.py | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 remove assets for websupport

(cherry picked from commit 2569776ffd1bd3b7557b505d7abc58b59dfba0ce)

no_spaces_in_hyphenated_words.diff | (download)

sphinx/writers/text.py | 33 20 + 13 - 0 !
tests/test_build_text.py | 22 12 + 10 - 0 !
tests/test_intl.py | 7 5 + 2 - 0 !
3 files changed, 37 insertions(+), 25 deletions(-)

 fix #6867: text: extra spaces are inserted to hyphenated words on
 folding lines

(cherry picked from commit 5a05cabd6acd7de3929b355a67ca76298f3baa27)