[Python-modules-commits] [python-hypothesis] 04/04: Build python-hypothesis-doc package with documentation.
Tristan Seligmann
mithrandi at moszumanska.debian.org
Mon Mar 7 04:02:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
mithrandi pushed a commit to branch master
in repository python-hypothesis.
commit 204130b6fb4ee0d7fcc0a1a725acb9d6b09050e5
Author: Tristan Seligmann <mithrandi at debian.org>
Date: Sun Mar 6 23:47:11 2016 +0200
Build python-hypothesis-doc package with documentation.
---
debian/changelog | 1 +
debian/control | 27 ++++++++++++++++++++++++---
debian/python-hypothesis-doc.doc-base | 8 ++++++++
debian/python-hypothesis-doc.docs | 2 ++
debian/rules | 10 +++++++++-
5 files changed, 44 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index fd07c6c..d8b7ed4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
python-hypothesis (3.1.0-1) unstable; urgency=medium
* New upstream release.
+ * Build python-hypothesis-doc package with documentation.
-- Tristan Seligmann <mithrandi at debian.org> Sun, 06 Mar 2016 23:40:36 +0200
diff --git a/debian/control b/debian/control
index aba7269..7f54813 100644
--- a/debian/control
+++ b/debian/control
@@ -9,19 +9,21 @@ Build-Depends:
debhelper (>= 9),
dh-python,
python-all,
+ python-enum34,
python-flake8,
python-flaky,
python-numpy,
python-pytest (>= 2.8),
python-setuptools,
+ python-sphinx-rtd-theme,
python-tz,
- python-enum34,
python3-all,
python3-flake8,
python3-flaky,
python3-numpy,
python3-pytest (>= 2.8),
python3-setuptools,
+ python3-sphinx,
python3-tz,
Standards-Version: 3.9.7
Homepage: https://github.com/DRMacIver/hypothesis
@@ -30,7 +32,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-hypo
Package: python-hypothesis
Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-enum34
+Depends: python-enum34, ${misc:Depends}, ${python:Depends}
Description: advanced Quickcheck style testing library for Python 2
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
@@ -47,7 +49,7 @@ Description: advanced Quickcheck style testing library for Python 2
Package: python3-hypothesis
Architecture: all
-Depends: ${misc:Depends}, ${python3:Depends}
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
Description: advanced Quickcheck style testing library for Python 3
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
@@ -61,3 +63,22 @@ Description: advanced Quickcheck style testing library for Python 3
project then you're missing out.
.
This package contains the Python 3 module.
+
+Package: python-hypothesis-doc
+Architecture: all
+Section: doc
+Priority: extra
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: advanced Quickcheck style testing library (documentation)
+ Hypothesis is a library for testing your Python code against a much
+ larger range of examples than you would ever want to write by
+ hand. It's based on the Haskell library, Quickcheck, and is designed
+ to integrate seamlessly into your existing Python unit testing work
+ flow.
+ .
+ Hypothesis is both extremely practical and also advances the state of
+ the art of unit testing by some way. It's easy to use, stable, and
+ extremely powerful. If you're not using Hypothesis to test your
+ project then you're missing out.
+ .
+ This package contains the documentation for Hypothesis.
diff --git a/debian/python-hypothesis-doc.doc-base b/debian/python-hypothesis-doc.doc-base
new file mode 100644
index 0000000..2299c10
--- /dev/null
+++ b/debian/python-hypothesis-doc.doc-base
@@ -0,0 +1,8 @@
+Document: python-hypothesis-doc
+Title: Hypothesis documentation
+Author: David R. MacIver
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-hypothesis-doc/html/index.html
+Files: /usr/share/doc/python-hypothesis-doc/html/*.html
diff --git a/debian/python-hypothesis-doc.docs b/debian/python-hypothesis-doc.docs
new file mode 100644
index 0000000..1618a62
--- /dev/null
+++ b/debian/python-hypothesis-doc.docs
@@ -0,0 +1,2 @@
+.pybuild/docs/*
+README.rst
diff --git a/debian/rules b/debian/rules
index 7f38bcd..e65cd30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,9 +9,17 @@ export PYBUILD_TEST_ARGS_python2=${COMMON_TESTS} {dir}/tests/py2
export PYBUILD_TEST_ARGS_python3=${COMMON_TESTS} {dir}/tests/py3
%:
- dh $@ --with python2,python3 --buildsystem=pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_python3:
dh_python3
rm -rf debian/python3-hypothesis/usr/lib/python3.?
+
+override_dh_auto_build:
+ dh_auto_build
+ PYTHONPATH=. \
+ http_proxy='127.0.0.1:9' \
+ https_proxy='127.0.0.1:9' \
+ sphinx-build -N -b html docs/ $(CURDIR)/.pybuild/docs/html/
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-hypothesis.git
More information about the Python-modules-commits
mailing list