[Python-modules-commits] [python-django-contact-form] 06/10: Build docs in new python-django-contact-form-doc package.

Andrew Starr-Bochicchio asb at moszumanska.debian.org
Sat Dec 24 20:43:01 UTC 2016


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

asb pushed a commit to branch master
in repository python-django-contact-form.

commit 418dd21e898b69fb1a1b24980d23f194dd95e34f
Author: Andrew Starr-Bochicchio <a.starr.b at gmail.com>
Date:   Sat Dec 24 15:15:55 2016 -0500

    Build docs in new python-django-contact-form-doc package.
---
 debian/changelog                           |  1 +
 debian/control                             | 18 +++++++++++++++++-
 debian/docs                                |  3 ---
 debian/python-django-contact-form-doc.docs |  1 +
 debian/python-django-contact-form.docs     |  1 +
 debian/python3-django-contact-form.docs    |  1 +
 debian/rules                               |  7 ++++++-
 7 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 56f6bab..5b5870f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ python-django-contact-form (1.3-1) UNRELEASED; urgency=medium
   * Use GitHub in debian/watch.
   * Bump Standards-Version to 3.9.8
   * Drop django-1.10-define-templates.patch, applied upstream.
+  * Build docs in new python-django-contact-form-doc package.
 
  -- Andrew Starr-Bochicchio <asb at debian.org>  Sat, 24 Dec 2016 14:52:17 -0500
 
diff --git a/debian/control b/debian/control
index 6e44302..a9f984e 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,8 @@ Build-Depends: debhelper (>= 7.0.50~),
                python3-all,
                python3-django,
                python-setuptools,
-               python3-setuptools
+               python3-setuptools,
+               python-sphinx
 Standards-Version: 3.9.8
 Homepage: https://github.com/ubernostrum/django-contact-form
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-django-contact-form.git
@@ -20,6 +21,7 @@ X-Python3-Version: >= 3.2
 
 Package: python-django-contact-form
 Architecture: all
+Recommends: python-django-contact-form-doc
 Depends: ${misc:Depends}, ${python:Depends}, python-django (>= 1.0)
 Description: extensible contact-form application for Django
  This is a reusable application which simplifies including a contact form within
@@ -30,6 +32,7 @@ Description: extensible contact-form application for Django
 
 Package: python3-django-contact-form
 Architecture: all
+Recommends: python-django-contact-form-doc
 Depends: ${misc:Depends}, ${python:Depends}, python-django (>= 1.0)
 Description: extensible contact-form application for Django (Python 3)
  This is a reusable application which simplifies including a contact form within
@@ -39,3 +42,16 @@ Description: extensible contact-form application for Django (Python 3)
  allow for easy adaptation to more complex needs.
  .
  This package installs the library for Python 3.
+
+Package: python-django-contact-form-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Description: extensible contact-form application for Django (documentation)
+ This is a reusable application which simplifies including a contact form within
+ Django, the Python web framework. It provides a basic contact form which, once
+ appropriate templates have been written, will email site administrators when
+ the form is submitted. The form and view used are designed to be extensible and
+ allow for easy adaptation to more complex needs.
+ .
+ This is the common documentation package.
\ No newline at end of file
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 08d5c5a..0000000
--- a/debian/docs
+++ /dev/null
@@ -1,3 +0,0 @@
-README.rst
-docs/*.rst
-docs/*.py
diff --git a/debian/python-django-contact-form-doc.docs b/debian/python-django-contact-form-doc.docs
new file mode 100644
index 0000000..207c83c
--- /dev/null
+++ b/debian/python-django-contact-form-doc.docs
@@ -0,0 +1 @@
+build/html/
\ No newline at end of file
diff --git a/debian/python-django-contact-form.docs b/debian/python-django-contact-form.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python-django-contact-form.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/python3-django-contact-form.docs b/debian/python3-django-contact-form.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-django-contact-form.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
index fd72df2..5437208 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,10 @@ export PYBUILD_NAME=django-contact-form
 export PYBUILD_SYSTEM=distutils
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html/

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



More information about the Python-modules-commits mailing list