[pybtex] 92/108: deb/rules: installed overrides for installdocs (Sphinx build) and dh_compress (save examples)

Daniel Stender stender at moszumanska.debian.org
Fri Jul 21 10:18:33 UTC 2017


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

stender pushed a commit to branch master
in repository pybtex.

commit 6eb2e7f563bcc79955ea235c94cf685f1a881c94
Author: Daniel Stender <stender at debian.org>
Date:   Mon Mar 14 14:10:18 2016 +0000

    deb/rules: installed overrides for installdocs (Sphinx build) and dh_compress (save examples)
---
 debian/changelog | 5 ++++-
 debian/control   | 4 ++--
 debian/rules     | 8 ++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8ae7702..a7efb8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ pybtex (0.19-1) UNRELEASED; urgency=medium
       * added dh-python to build deps.
       * don't depend on python-all (not needed).
       * dropped dep on pyparsing (obsolete).
+      * added dep for Sphinx, dropped Jinja2 and Docutils.
       * moved pyyaml from Recommends to Depends (is now install_requires).
     + removed X-Python-Version (not needed).
     + bumped Standards-Version to 3.9.7 (no changes needed).
@@ -22,9 +23,11 @@ pybtex (0.19-1) UNRELEASED; urgency=medium
     + build with Pybuild.
     + use Pybuild customization for dh_auto_test, moved override up.
     + update and cosmectics in dh_auto_install override.
+    + install override to dh_installdocs to build docs with Sphinx.
+    + install override for dh_compress to save examples from compressing.
   * deb/watch: watch pypi.debian.net.
 
- -- Daniel Stender <stender at debian.org>  Mon, 14 Mar 2016 14:49:16 +0100
+ -- Daniel Stender <stender at debian.org>  Mon, 14 Mar 2016 15:06:45 +0100
 
 pybtex (0.18-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 7dbdfdc..23d4820 100644
--- a/debian/control
+++ b/debian/control
@@ -7,8 +7,7 @@ Build-Depends:
  debhelper (>= 9),
  dh-python,
  python (>= 2.6.6-3~),
- python-docutils,
- python-jinja2,
+ python-sphinx,
  python-nose,
  python-pygments,
  python-setuptools,
@@ -24,6 +23,7 @@ Depends:
  python-pkg-resources,
  ${misc:Depends},
  ${python:Depends},
+ ${sphinxdocs:Depends},
  python-yaml
 Description: BibTeX-compatible bibliography processor
  Pybtex reads citation information from a file and produces a formatted
diff --git a/debian/rules b/debian/rules
index 1a1b301..9aa72e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,16 @@ override_dh_auto_install:
 	mv debian/pybtex/usr/bin/pybtex debian/pybtex/usr/bin/bibtex.pybtex
 	rm -rf debian/pybtex/usr/lib/python*/*-packages/pybtex/tests/
 
+.PHONY: override_dh_installdocs
+override_dh_installdocs:
+	dh_installdocs
+	PYTHONPATH=. sphinx-build -N -bhtml docs/source debian/pybtex/usr/share/doc/pybtex/html
+
 .PHONY: override_dh_installman
 override_dh_installman:
 	dh_installman
 	cd debian/pybtex/ && rename.ul pybtex bibtex.pybtex usr/share/man/man*/pybtex.[0-9]
 
+.PHONY: override_dh_compress
+override_dh_compress:
+	dh_compress -X.bib -X.bibtexml -X.yaml -X.aux -X.bib # save examples

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybtex.git



More information about the debian-science-commits mailing list