Hello community, here is the log from the commit of package python3-Sphinx for openSUSE:Factory checked in at 2015-10-20 16:22:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Sphinx (Old) and /work/SRC/openSUSE:Factory/.python3-Sphinx.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Sphinx" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Sphinx/python3-Sphinx.changes 2015-10-06 13:24:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Sphinx.new/python3-Sphinx.changes 2015-10-20 16:22:27.000000000 +0200 @@ -1,0 +2,9 @@ +Mon Oct 12 17:36:18 UTC 2015 - [email protected] + +- Add python3-Sphinx_work_around_the_lack_of_HTMLParserError.patch + Fixes building on Python 3.5. + Should be in next upstream release + Upstream Issue: https://github.com/sphinx-doc/sphinx/issues/1945 + Upstream Patch: https://github.com/warsaw/sphinx/commit/7ce3b991229c74262f81ab7692a1dc6bde2416ee + +------------------------------------------------------------------- New: ---- python3-Sphinx_work_around_the_lack_of_HTMLParserError.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Sphinx.spec ++++++ --- /var/tmp/diff_new_pack.W2aags/_old 2015-10-20 16:22:27.000000000 +0200 +++ /var/tmp/diff_new_pack.W2aags/_new 2015-10-20 16:22:27.000000000 +0200 @@ -24,6 +24,8 @@ License: BSD-2-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz +# # PATCH-FIX-UPSTREAM python3-Sphinx_work_around_the_lack_of_HTMLParserError.patch https://github.com/sphinx-doc/sphinx/issues/1945 +Patch0: python3-Sphinx_work_around_the_lack_of_HTMLParserError.patch BuildRequires: python3-devel BuildRequires: python3-setuptools # Documentation requirements: @@ -158,6 +160,7 @@ %prep %setup -q -n Sphinx-%{version} +%patch0 -p1 sed -i '/#\!/d' sphinx/pycode/pgen2/token.py # Fix non-excutable-script warning # Add Interpreter version suffix to entrypoints (and thus /usr/bin binaries) to # allow for update-alternatives later on: ++++++ python3-Sphinx_work_around_the_lack_of_HTMLParserError.patch ++++++ >From 7ce3b991229c74262f81ab7692a1dc6bde2416ee Mon Sep 17 00:00:00 2001 From: Barry Warsaw <[email protected]> Date: Thu, 25 Jun 2015 11:54:05 -0400 Subject: [PATCH] One way to work around the lack of html.parser.HTMLParserError in Python 3.5 --- sphinx/builders/linkcheck.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index 9f5c213..b05c5b2 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -19,9 +19,19 @@ from six.moves.urllib.request import build_opener, Request, HTTPRedirectHandler from six.moves.urllib.parse import unquote, urlsplit, quote from six.moves.urllib.error import HTTPError -from six.moves.html_parser import HTMLParser, HTMLParseError +from six.moves.html_parser import HTMLParser from docutils import nodes +# 2015-06-25 [email protected]. This exception was deprecated in Python 3.3 and +# removed in Python 3.5, however for backward compatibility reasons, we're not +# going to just remove it. If it doesn't exist, define an exception that will +# never be caught but leaves the code in check_anchor() intact. +try: + from six.moves.html_parser import HTMLParseError +except ImportError: + class HTMLParseError(Exception): + pass + from sphinx.builders import Builder from sphinx.util.console import purple, red, darkgreen, darkgray, \ darkred, turquoise
