[Python-modules-commits] [python-latexcodec] 12/20: Build the documentation with Python 3

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 13 15:34:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-latexcodec.

commit 854ee1a7145191005cecc0c36fb7d2e8490e7beb
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jul 12 10:03:12 2017 +0100

    Build the documentation with Python 3
    
    - Use the Python 3 version of Sphinx
    - New patch Fix-build-of-docs-with-Python-3.patch
    
    Gbp-Dch: Full
---
 debian/control                                 |  3 +--
 debian/patches/Fix-version-query-in-docs.patch | 30 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 3 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 28b92af..5ab7b9a 100644
--- a/debian/control
+++ b/debian/control
@@ -13,8 +13,7 @@ Build-Depends: debhelper (>= 9),
                python3-setuptools,
                python-nose,
                python3-nose,
-               python-sphinx
-# build breaks with python3-sphinx
+               python3-sphinx
 Standards-Version: 3.9.8
 Homepage: https://github.com/mcmtroffaes/latexcodec
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-latexcodec.git
diff --git a/debian/patches/Fix-version-query-in-docs.patch b/debian/patches/Fix-version-query-in-docs.patch
new file mode 100644
index 0000000..016c3cd
--- /dev/null
+++ b/debian/patches/Fix-version-query-in-docs.patch
@@ -0,0 +1,30 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 12 Jul 2017 10:02:10 +0100
+Subject: Fix version query in docs
+
+---
+ doc/conf.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 8794e64..cd257e1 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -3,6 +3,8 @@
+ # latexcodec documentation build configuration file, created by
+ # sphinx-quickstart on Wed Aug  3 15:45:22 2011.
+ 
++import io
++
+ extensions = [
+     'sphinx.ext.autodoc',
+     'sphinx.ext.doctest',
+@@ -15,7 +17,7 @@ source_suffix = '.rst'
+ master_doc = 'index'
+ project = u'latexcodec'
+ copyright = u'2011-2014, Matthias C. M. Troffaes'
+-with open("../VERSION", "rb") as version_file:
++with io.open("../VERSION") as version_file:
+     release = version_file.read().strip()
+ version = '.'.join(release.split('.')[:2])
+ exclude_patterns = ['_build']
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..744ef1c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fix-version-query-in-docs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-latexcodec.git



More information about the Python-modules-commits mailing list