[Python-modules-commits] [python-django-localflavor] 01/02: Add documentation package

Orestis Ioannou oorestisime-guest at moszumanska.debian.org
Fri Oct 23 14:55:27 UTC 2015


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

oorestisime-guest pushed a commit to branch master
in repository python-django-localflavor.

commit aaa3854fa90bd6fd6fc2e85092178921e513a4c3
Author: Orestis Ioannou <orestis at oioannou.com>
Date:   Fri Oct 23 16:21:29 2015 +0200

    Add documentation package
---
 debian/control                            | 20 +++++++++++++++++---
 debian/python-django-localflavor-doc.docs |  1 +
 debian/rules                              | 11 ++++++++---
 3 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 76c194b..38ab5e8 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,9 @@ Build-Depends: dh-python,
                python-all (>= 2.6.6-3), 
                debhelper (>= 9),
                python3-setuptools,
-               python3-all
+               python3-all,
+               python-sphinx,
+               python-django
 Standards-Version: 3.9.6
 Homepage: http://django-localflavor.readthedocs.org/en/latest/
 X-Python-Version: >= 2.6
@@ -19,7 +21,7 @@ X-Python3-Version: >=3.3
 Package: python-django-localflavor
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Description: Country-specific Django helpers
+Description: Python 2 package for Country-specific Django helpers
  Django's "localflavor" packages offer additional functionality for particular
  countries or cultures. For example, these might include form fields for your
  country's postal codes, phone number formats or government ID numbers.
@@ -29,9 +31,21 @@ Description: Country-specific Django helpers
 Package: python3-django-localflavor
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}
-Description: Country-specific Django helpers
+Description: Python 3 package for Country-specific Django helpers
  Django's "localflavor" packages offer additional functionality for particular
  countries or cultures. For example, these might include form fields for your
  country's postal codes, phone number formats or government ID numbers.
  .
  This is a Python 3 module
+
+
+Package: python-django-localflavor-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}, python-django
+Description: Documentation package for Country-specific Django helpers
+ Django's "localflavor" packages offer additional functionality for particular
+ countries or cultures. For example, these might include form fields for your
+ country's postal codes, phone number formats or government ID numbers.
+ .
+ This is the documentation package
diff --git a/debian/python-django-localflavor-doc.docs b/debian/python-django-localflavor-doc.docs
new file mode 100644
index 0000000..4ecc793
--- /dev/null
+++ b/debian/python-django-localflavor-doc.docs
@@ -0,0 +1 @@
+docs/_build/html
diff --git a/debian/rules b/debian/rules
index 5df46f4..b02a148 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 
-# This file was automatically generated by stdeb 0.8.5 at
-# Mon, 19 Oct 2015 01:29:34 +0200
 export PYBUILD_NAME=django-localflavor
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+override_dh_auto_clean:
+	rm -rf docs/build
+	dh_auto_clean
+
+override_dh_auto_build:
+	cd docs && $(MAKE) html
+	dh_auto_build

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



More information about the Python-modules-commits mailing list