[Python-modules-commits] [python-django-extensions] 01/07: change version to 1.6.7-2 (UNRELEASED) Add documentation package and use python3-sphinx to build the documentation from source.

Michael Fladischer fladi at moszumanska.debian.org
Thu May 19 09:47:44 UTC 2016


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

fladi pushed a commit to branch master
in repository python-django-extensions.

commit 156653c4de437180bdd8a15a9b6b774f151ff9e8
Author: Michael Fladischer <fladi at debian.org>
Date:   Thu May 19 11:03:05 2016 +0200

    change version to 1.6.7-2 (UNRELEASED)
    Add documentation package and use python3-sphinx to build the
    documentation from source.
---
 debian/changelog                             |  7 +++++++
 debian/control                               | 27 ++++++++++++++++++++++++++-
 debian/python-django-extensions-doc.doc-base |  8 ++++++++
 debian/python-django-extensions-doc.docs     |  1 +
 debian/python-django-extensions-doc.links    |  1 +
 debian/rules                                 | 10 +++++++++-
 6 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 32b6e7f..654f7bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-django-extensions (1.6.7-2) UNRELEASED; urgency=low
+
+  * Add documentation package and use python3-sphinx to build the
+    documentation from source.
+
+ -- Michael Fladischer <fladi at debian.org>  Thu, 19 May 2016 11:03:05 +0200
+
 python-django-extensions (1.6.7-1) unstable; urgency=low
 
   * Team upload.
diff --git a/debian/control b/debian/control
index f2d8da9..560b94b 100644
--- a/debian/control
+++ b/debian/control
@@ -27,7 +27,8 @@ Build-Depends: debhelper (>= 9),
                python3-pytest-django,
                python3-setuptools,
                python3-shortuuid,
-               python3-six
+               python3-six,
+               python3-sphinx
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-django-extensions.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-django-extensions.git
@@ -93,3 +94,27 @@ Description: Useful extensions for Django projects (Python 3 version)
  models, including ones that manage created and updated times automatically.
  .
  This package contains the Python 3 version of the library.
+
+Package: python-django-extensions-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: Useful extensions for Django projects (Documentation)
+ This is a collection of useful third-party tools for projects that use the
+ Django web development framework. It provides the management commands:
+ .
+  * runserver_plus - a "runserver" that uses the interactive Werkzeug debugger
+  * runprofileserver - starts runserver with profiling tools enabled
+  * shell_plus - similar to the built-in "shell" but autoloads all models
+  * graph_models - creates a GraphViz dot file of your model arrangement
+  * describe_form - generate template form definitions for a model
+  * export_emails - export the addresses of your users in many formats
+  * print_user_for_session - print the user information from a session key
+  * create_jobs/runjob/runjobs - manage scheduled maintenance jobs
+  * (plus many more)
+ .
+ python-django-extensions also includes a number of custom fields and abstract
+ models, including ones that manage created and updated times automatically.
+ .
+ This package contains the documentation.
diff --git a/debian/python-django-extensions-doc.doc-base b/debian/python-django-extensions-doc.doc-base
new file mode 100644
index 0000000..258d493
--- /dev/null
+++ b/debian/python-django-extensions-doc.doc-base
@@ -0,0 +1,8 @@
+Document: python-django-extensions-doc
+Title: Django Extensions Documentation
+Author: Michael Trier, Bas van Oostveen and contributors
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-django-extensions-doc/html/index.html
+Files: /usr/share/doc/python-django-extensions-doc/html/*.html
diff --git a/debian/python-django-extensions-doc.docs b/debian/python-django-extensions-doc.docs
new file mode 100644
index 0000000..2981a3c
--- /dev/null
+++ b/debian/python-django-extensions-doc.docs
@@ -0,0 +1 @@
+docs/.build/html
diff --git a/debian/python-django-extensions-doc.links b/debian/python-django-extensions-doc.links
new file mode 100644
index 0000000..6a1db1a
--- /dev/null
+++ b/debian/python-django-extensions-doc.links
@@ -0,0 +1 @@
+usr/share/doc/python-django-extensions-doc/html/_sources usr/share/doc/python-django-extensions-doc/rst
diff --git a/debian/rules b/debian/rules
index 9f97006..68387bd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 export PYBUILD_NAME=django-extensions
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_install:
 	dh_install
@@ -19,3 +19,11 @@ get-orig-source:
 override_dh_auto_test:
 	PYTHONPATH=. \
 	dh_auto_test -- --system=custom --test-args="{interpreter} -m pytest --ds=tests.testapp.settings --cov=django_extensions"
+
+override_dh_auto_build:
+	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
+	dh_auto_build
+
+override_dh_clean:
+	rm -rf docs/.build
+	dh_clean

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



More information about the Python-modules-commits mailing list