diff --git a/0001-Fix-py3.9-and-unit-test-error.patch b/0001-Fix-py3.9-and-unit-test-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..bcbe0450c81bbed48efb665d1e00cad3abfd72e5 --- /dev/null +++ b/0001-Fix-py3.9-and-unit-test-error.patch @@ -0,0 +1,71 @@ +From f30342e473cbb7f0c5027ae360aab10b50eadb76 Mon Sep 17 00:00:00 2001 +From: wangxiyuan +Date: Thu, 10 Feb 2022 14:12:10 +0800 +Subject: [PATCH] Fix py3.9 and unit test error + +--- + sphinx/util/inspect.py | 7 ++++++- + tests/test_build_latex.py | 1 + + tests/test_build_linkcheck.py | 2 ++ + 3 files changed, 9 insertions(+), 1 deletion(-) + +diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py +index 2a6c001..ff9f752 100644 +--- a/sphinx/util/inspect.py ++++ b/sphinx/util/inspect.py +@@ -51,6 +51,11 @@ memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>)', re.IGNORECASE) + # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, + # 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Python Software + # Foundation; All Rights Reserved ++from typing import TypeVar ++def is_systemTypeVar(typ: Any) -> bool: ++ modname = getattr(typ, '__module__', '') ++ return modname == 'typing' and isinstance(type, TypeVar) ++ + def getargspec(func): + """Like inspect.getfullargspec but supports bound methods, and wrapped + methods.""" +@@ -519,7 +524,7 @@ class Signature: + args = ', '.join(self.format_annotation(a) for a in annotation.__args__[:-1]) + returns = self.format_annotation(annotation.__args__[-1]) + return '%s[[%s], %s]' % (qualname, args, returns) +- elif annotation._special: ++ elif all(is_systemTypeVar(a) for a in annotation.__args__): + return qualname + else: + args = ', '.join(self.format_annotation(a) for a in annotation.__args__) +diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py +index 67491dd..0b6f1dc 100644 +--- a/tests/test_build_latex.py ++++ b/tests/test_build_latex.py +@@ -1229,6 +1229,7 @@ def test_latex_raw_directive(app, status, warning): + assert 'LaTeX: abc def ghi' in result + + ++@pytest.mark.xfail(reason='this test requires internet connection') + @pytest.mark.sphinx('latex', testroot='images') + def test_latex_images(app, status, warning): + app.builder.build_all() +diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py +index 4bf47a9..e1f1abe 100644 +--- a/tests/test_build_linkcheck.py ++++ b/tests/test_build_linkcheck.py +@@ -11,6 +11,7 @@ + import pytest + + ++@pytest.mark.xfail(reason='this test requires internet connection') + @pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True) + def test_defaults(app, status, warning): + app.builder.build_all() +@@ -30,6 +31,7 @@ def test_defaults(app, status, warning): + assert len(content.splitlines()) == 5 + + ++@pytest.mark.xfail(reason='this test requires internet connection') + @pytest.mark.sphinx( + 'linkcheck', testroot='linkcheck', freshenv=True, + confoverrides={'linkcheck_anchors_ignore': ["^!", "^top$"], +-- +2.33.0 + diff --git a/Sphinx-1.8.4.tar.gz b/Sphinx-2.2.0.tar.gz similarity index 45% rename from Sphinx-1.8.4.tar.gz rename to Sphinx-2.2.0.tar.gz index 7a1ae646f805c5d9c9add791a4e7ce2ca46fa62c..931e576a08c6a7c807cbd09dee433c246c86ed1d 100644 Binary files a/Sphinx-1.8.4.tar.gz and b/Sphinx-2.2.0.tar.gz differ diff --git a/default-sphinx-command.in b/default-sphinx-command.in deleted file mode 100644 index c933d754c79b83d9db32a1d06e2732b56a05b2e0..0000000000000000000000000000000000000000 --- a/default-sphinx-command.in +++ /dev/null @@ -1,2 +0,0 @@ -#%Module1.0 -set ModuleVersion "python@PYTHONVER@-sphinx" diff --git a/python-sphinx.spec b/python-sphinx.spec index cc765b0125d0e6f9d464177bd1f432339cb1195c..b6f473c67f899499bedfea05c99535df15c72f03 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -1,31 +1,13 @@ -Name: python-sphinx -Summary: Python documentation generator -Version: 1.8.4 -Release: 2 -Epoch: 1 -License: BSD and Public Domain and Python and (MIT or GPLv2) -URL: http://sphinx-doc.org/ -Source0: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz -Source1: default-sphinx-command.in -Patch0001: xfail-test_latex_remote_images.patch -Patch0002: sphinx-test_theming.diff -BuildArch: noarch -BuildRequires: python2-devel >= 2.4 python2-babel python2-setuptools python2-docutils python2-jinja2 python2-pygments >= 2.0 -BuildRequires: python2-six python2-sphinx_rtd_theme python2-sphinx-theme-alabaster python2-imagesize python2-requests -BuildRequires: python2-packaging python2-typing dos2unix python2-sphinxcontrib-websupport python2-html5lib python2-whoosh -BuildRequires: python2-nose python2-pytest python2-pytest-cov gettext texinfo graphviz python2-sqlalchemy texlive-dvipng -BuildRequires: python2-mock python2-html5lib python2-whoosh python2-snowballstemmer python2-enum34 texlive-dvisvgm texlive-ucs -BuildRequires: python2-snowballstemmer python2-enum34 texlive-collection-fontsrecommended texlive-collection-latex -BuildRequires: tex(cmap.sty) tex(ecrm1000.tfm) tex(footnote.sty) tex(framed.sty) tex(multirow.sty) tex(parskip.sty) -BuildRequires: tex(threeparttable.sty) tex(upquote.sty) tex(wrapfig.sty) tex(capt-of.sty) tex(needspace.sty) tex(eqparbox.sty) -BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amssymb.sty) tex(amsfonts.sty) tex(bm.sty) tex(palatino.sty) tex(multirow.sty) -BuildRequires: tex(eqparbox.sty) tex(atbegshi.sty) tex(anyfontsize.sty) tex(luatex85.sty) tex(fncychap.sty) -BuildRequires: tex(tabulary.sty) tex(polyglossia.sty) tex(ctablestack.sty) tex(eu1enc.def) tex(titlesec.sty) -BuildRequires: python3-devel python3-babel python3-setuptools python3-docutils python3-jinja2 python3-pygments -BuildRequires: python3-six python3-sphinx_rtd_theme python3-sphinx-theme-alabaster python3-packaging python3-imagesize -BuildRequires: python3-requests python3-sphinxcontrib-websupport python3-nose python3-pytest python3-pytest-cov -BuildRequires: python3-sqlalchemy python3-mock python3-html5lib python3-whoosh python3-snowballstemmer +Name: python-Sphinx +Version: 2.2.0 +Release: 1 +Summary: Python documentation generator +License: BSD +URL: http://sphinx-doc.org/ +Source0: https://files.pythonhosted.org/packages/76/42/a4465a0080e545cd152f7d3f16229d5e1300183fcb1067e4ec7e639b8605/Sphinx-2.2.0.tar.gz +Patch0: 0001-Fix-py3.9-and-unit-test-error.patch +BuildArch: noarch %description Sphinx is a tool that makes it easy to create intelligent and beautiful documentation for Python projects (or other documents @@ -34,46 +16,65 @@ Brandl. It was originally created to translate the new Python documentation, but has now been cleaned up in the hope that it will be useful to many other projects. -Sphinx uses reStructuredText as its markup language, and many of its -strengths come from the power and straightforwardness of -reStructuredText and its parsing and translating suite, the Docutils. - -Although it is still under constant development, the following -features are already present, work fine and can be seen "in action" in -the Python docs: - - * Output formats: HTML (including Windows HTML Help) and LaTeX, - for printable PDF versions - * Extensive cross-references: semantic markup and automatic links - for functions, classes, glossary terms and similar pieces of - information - * Hierarchical structure: easy definition of a document tree, with - automatic links to siblings, parents and children - * Automatic indices: general index as well as a module index - * Code handling: automatic highlighting using the Pygments highlighter - * Various extensions are available, e.g. for automatic testing of - snippets and inclusion of appropriately formatted docstrings. - - -%package -n python2-sphinx -Summary: Python documentation generator - -Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release} -Requires: python2-babel python2-docutils python2-jinja2 python2-pygments python2-mock -Requires: python2-snowballstemmer python2-sphinx_rtd_theme python2-sphinx-theme-alabaster -Requires: python2-six python2-imagesize python2-requests python2-packaging python2-typing -Requires: python2-sphinxcontrib-websupport environment(modules) -Requires(pre): /usr/sbin/alternatives -Recommends: graphviz ImageMagick - -Obsoletes: python-sphinx <= 1.2.3 python-sphinxcontrib-napoleon < 0.5 python2-Sphinx <= 1.3.1-4 -Provides: python-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release} -Provides: python2-Sphinx = %{?epoch}:%{version}-%{release} -Provides: python(Sphinx) = %{?epoch}:%{version}-%{release} -Conflicts: python3-sphinx < %{?epoch}:%{version}-%{release} -%{?python_provide:%python_provide python2-sphinx} - -%description -n python2-sphinx +%package -n python3-sphinx +Summary: Python documentation generator +Provides: python-sphinx +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-sphinxcontrib-applehelp +BuildRequires: python3-sphinxcontrib-devhelp +BuildRequires: python3-sphinxcontrib-jsmath +BuildRequires: python3-sphinxcontrib-htmlhelp +BuildRequires: python3-sphinxcontrib-serializinghtml +BuildRequires: python3-sphinxcontrib-qthelp +BuildRequires: python3-jinja2 +BuildRequires: python3-pygments +BuildRequires: python3-docutils +BuildRequires: python3-snowballstemmer +BuildRequires: python3-babel +BuildRequires: python3-sphinx-theme-alabaster +BuildRequires: python3-imagesize +BuildRequires: python3-requests +BuildRequires: python3-packaging +# Tests running requires +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-html5lib +BuildRequires: python3-flake8 +BuildRequires: python3-flake8-import-order +BuildRequires: python3-mypy +BuildRequires: ImageMagick +# General requires +Requires: python3-sphinxcontrib-applehelp +Requires: python3-sphinxcontrib-devhelp +Requires: python3-sphinxcontrib-jsmath +Requires: python3-sphinxcontrib-htmlhelp +Requires: python3-sphinxcontrib-serializinghtml +Requires: python3-sphinxcontrib-qthelp +Requires: python3-jinja2 +Requires: python3-pygments +Requires: python3-docutils +Requires: python3-snowballstemmer +Requires: python3-babel +Requires: python3-sphinx-theme-alabaster +Requires: python3-imagesize +Requires: python3-requests +Requires: python3-setuptools +Requires: python3-packaging +Requires: python3-sphinxcontrib-websupport +# Tests running requires +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-html5lib +Requires: python3-flake8 +Requires: python3-flake8-import-order +Requires: python3-mypy +%description -n python3-sphinx Sphinx is a tool that makes it easy to create intelligent and beautiful documentation for Python projects (or other documents consisting of multiple reStructuredText sources), written by Georg @@ -81,217 +82,62 @@ Brandl. It was originally created to translate the new Python documentation, but has now been cleaned up in the hope that it will be useful to many other projects. -Sphinx uses reStructuredText as its markup language, and many of its -strengths come from the power and straightforwardness of -reStructuredText and its parsing and translating suite, the Docutils. - -Although it is still under constant development, the following -features are already present, work fine and can be seen "in action" in -the Python docs: - - * Output formats: HTML (including Windows HTML Help) and LaTeX, - for printable PDF versions - * Extensive cross-references: semantic markup and automatic links - for functions, classes, glossary terms and similar pieces of - information - * Hierarchical structure: easy definition of a document tree, with - automatic links to siblings, parents and children - * Automatic indices: general index as well as a module index - * Code handling: automatic highlighting using the Pygments highlighter - * Various extensions are available, e.g. for automatic testing of - snippets and inclusion of appropriately formatted docstrings. - -%package -n python3-sphinx -Summary: Python documentation generator - -Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release} -Requires: python3-babel python3-docutils python3-jinja2 python3-pygments -Requires: python3-snowballstemmer python3-sphinx_rtd_theme python3-sphinx-theme-alabaster -Requires: python3-imagesize python3-requests python3-six python3-packaging -Requires: environment(modules) python3-sphinxcontrib-websupport python3-mock -Requires(pre): /usr/sbin/alternatives -Recommends: graphviz ImageMagick - -Obsoletes: python3-sphinxcontrib-napoleon < 0.3.0 -Provides: python3-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release} -Provides: python(Sphinx) = %{?epoch}:%{version}-%{release} -Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release} -%{?python_provide:%python_provide python3-sphinx} - -%description -n python3-sphinx -Sphinx is a tool that makes it easy to create intelligent and -beautiful documentation for Python projects (or other documents -consisting of multiple reStructuredText sources), written by Georg -Brandl. It was originally created to translate the new Python -documentation, but has now been cleaned up in the hope that it will be -useful to many other projects. - -Sphinx uses reStructuredText as its markup language, and many of its -strengths come from the power and straightforwardness of -reStructuredText and its parsing and translating suite, the Docutils. - -Although it is still under constant development, the following -features are already present, work fine and can be seen "in action" in -the Python docs: - - * Output formats: HTML (including Windows HTML Help) and LaTeX, - for printable PDF versions - * Extensive cross-references: semantic markup and automatic links - for functions, classes, glossary terms and similar pieces of - information - * Hierarchical structure: easy definition of a document tree, with - automatic links to siblings, parents and children - * Automatic indices: general index as well as a module index - * Code handling: automatic highlighting using the Pygments highlighter - * Various extensions are available, e.g. for automatic testing of - snippets and inclusion of appropriately formatted docstrings. - -%package help -Summary: Documentation for %{name} -Requires: python(Sphinx) = %{?epoch}:%{version}-%{release} -Provides: python-sphinx-doc python-sphinx-latex -Obsoletes: python-sphinx-doc < %{?epoch}:%{version}-%{release} -Obsoletes: python-sphinx-latex < %{?epoch}:%{version}-%{release} - -%description help -This package contains help documentation in reST and HTML formats. - -%package locale -Summary: Locale files for python-sphinx - -%description locale -This package contains locale files for Sphinx. +%package help +Summary: Help documents for Sphinx +BuildArch: noarch +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < %{version}-%{release} +%description help +Help documents for Sphinx. %prep -%autosetup -n Sphinx-%{version} -p1 - -dos2unix -k ./sphinx/themes/basic/static/jquery.js -rm tests/test_ext_imgconverter.py -rm -rf %{py3dir} -cp -a . %{py3dir} +%autosetup -n Sphinx-%{version} -S git %build -%py2_build %py3_build -export PYTHONPATH=$PWD -cd doc -export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py" - -make html SPHINXBUILD="$SPHINXBUILD" -make man SPHINXBUILD="$SPHINXBUILD" -rm -rf _build/html/.buildinfo -mv _build/html .. - %install -rm -rf %{buildroot}/* %py3_install -install -d %{buildroot}%{_libexecdir}/python3-sphinx -for i in sphinx-{apidoc,autogen,build,quickstart}; do - mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version} - ln -s $i-%{python3_version} %{buildroot}%{_bindir}/$i-3 - ln -s %{_bindir}/$i-3 %{buildroot}%{_libexecdir}/python3-sphinx/$i -done - -%py2_install -install -d %{buildroot}%{_libexecdir}/python2-sphinx -for i in sphinx-{apidoc,autogen,build,quickstart}; do - mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python2_version} - ln -s $i-%{python2_version} %{buildroot}%{_bindir}/$i-2 - ln -s %{_bindir}/$i-2 %{buildroot}%{_libexecdir}/python2-sphinx/$i -done - -pushd doc -install -d %{buildroot}%{_mandir}/man1 -for f in _build/man/sphinx-*.1; -do - cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f) - cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python2_version}.1|") - cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python3_version}.1|") -done - -find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \; -popd - -rm -f %{buildroot}%{python2_sitelib}/sphinx/locale/.DS_Store -rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store -rm -rf %{buildroot}%{python2_sitelib}/sphinx/locale/.tx -rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx -rm -rf doc/_build -sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile -mv doc reST - -pushd %{buildroot}%{python2_sitelib} -for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`; -do - install -d %{buildroot}%{_datadir}/sphinx/locale/$lang - install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES - mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \ - %{buildroot}%{_datadir}/sphinx/locale/$lang/ - mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \ - %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/ - rm -rf sphinx/locale/$lang -done +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/doc ]; then + find usr/share/doc -type f -printf "/%h/%f\n" >> doclist.lst +fi popd - -install -d %{buildroot}%{_modulesdir}/python-sphinx -sed 's/@PYTHONVER@/3/' < %{SOURCE1} > %{buildroot}%{_modulesdir}/python-sphinx/.version - -for filename in sphinx-{build,apidoc,autogen,quickstart} ; do - ln -s %{_libexecdir}/python3-sphinx/$filename %{buildroot}%{_bindir}/$filename -done - -%find_lang sphinx - -(cd %{buildroot} && find . -name 'sphinx.js') | sed -e 's|^.||' | sed -e \ - 's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \ - >> sphinx.lang - +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check -%if %{with check} -export PYTHONPATH=$PWD -rm tests/test_build_linkcheck.py -LANG=en_US.UTF-8 %{__python2} -m pytest -v --ignore=tests/test_api_translator.py -cd %{py3dir} -rm tests/test_build_linkcheck.py -LANG=en_US.UTF-8 PYTHON=python3 make test -%endif - -%files locale -f sphinx.lang -%license LICENSE -%dir %{_datadir}/sphinx/ -%dir %{_datadir}/sphinx/locale -%dir %{_datadir}/sphinx/locale/* +make test -%files -n python2-sphinx -%license LICENSE -%doc AUTHORS CHANGES EXAMPLES README.rst -%{_bindir}/sphinx-*-2* -%{_bindir}/sphinx-build -%{python2_sitelib}/sphinx/ -%{python2_sitelib}/Sphinx-%{version}-py%{python2_version}.egg-info/ -%{_libexecdir}/python2-sphinx/ +%files -n python3-sphinx -f filelist.lst +%dir %{python3_sitelib}/* -%files -n python3-sphinx -%license LICENSE -%doc AUTHORS CHANGES EXAMPLES README.rst -%{_bindir}/sphinx-*-3* -%{_bindir}/sphinx-build -%{_bindir}/sphinx-apidoc -%{_bindir}/sphinx-autogen -%{_bindir}/sphinx-quickstart -%{python3_sitelib}/sphinx/ -%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/ -%{_libexecdir}/python3-sphinx/ -%{_modulesdir}/python-sphinx/.version - -%files help -%doc html reST -%{_mandir}/man1/* +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Feb 08 2022 OpenStack_SIG - 2.2.0-1 +- Upgrade to 2.2.0 + * Thu May 27 2021 liksh - build python2 package need cmd sphinx-build like python3-sphinx diff --git a/sphinx-test_theming.diff b/sphinx-test_theming.diff deleted file mode 100644 index 966528ae654c5e2d17272b15a712e0f9d2545a2d..0000000000000000000000000000000000000000 --- a/sphinx-test_theming.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru Sphinx-1.7.6/tests/test_theming.py Sphinx-1.7.6_patched/tests/test_theming.py ---- Sphinx-1.7.6/tests/test_theming.py 2018-07-16 11:24:40.000000000 +0200 -+++ Sphinx-1.7.6_patched/tests/test_theming.py 2018-07-20 15:17:35.049263077 +0200 -@@ -31,7 +31,7 @@ - themes.append('alabaster') - - # test Theme class API -- assert set(app.html_themes.keys()) == set(themes) -+ assert set(app.html_themes.keys()) >= set(themes) - assert app.html_themes['test-theme'] == app.srcdir / 'test_theme' / 'test-theme' - assert app.html_themes['ziptheme'] == app.srcdir / 'ziptheme.zip' - assert app.html_themes['staticfiles'] == app.srcdir / 'test_theme' / 'staticfiles' diff --git a/xfail-test_latex_remote_images.patch b/xfail-test_latex_remote_images.patch deleted file mode 100644 index 16e4ddd19168359ce96a1d6c1872b69ab0d3c07b..0000000000000000000000000000000000000000 --- a/xfail-test_latex_remote_images.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py -index 55f48cd..78ccecd 100644 ---- a/tests/test_build_latex.py -+++ b/tests/test_build_latex.py -@@ -1009,7 +1009,7 @@ def test_latex_raw_directive(app, status, warning): - assert 'HTML: abc ghi' in result - assert 'LaTeX: abc def ghi' in result - -- -+@pytest.mark.xfail(reason="this test requires internet connection") - @pytest.mark.sphinx('latex', testroot='images') - def test_latex_remote_images(app, status, warning): - app.builder.build_all()