[Python-modules-commits] [python-django-crispy-forms] 08/09: Move documentation to a separate package.

Michael Fladischer fladi at moszumanska.debian.org
Wed Oct 14 11:05:04 UTC 2015


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

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

commit 92c564954672dbdaee3cce26f5d52f96e59b1396
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Wed Oct 14 12:56:12 2015 +0200

    Move documentation to a separate package.
---
 debian/control                                     | 28 ++++++++++++++++++----
 debian/docs                                        |  3 ---
 ...ase => python-django-crispy-forms-doc.doc-base} |  6 ++---
 debian/python-django-crispy-forms-doc.docs         |  1 +
 debian/python-django-crispy-forms.docs             |  2 ++
 debian/python3-django-crispy-forms.docs            |  2 ++
 debian/rules                                       |  4 ++--
 7 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/debian/control b/debian/control
index b4fc1af..75dbb4d 100644
--- a/debian/control
+++ b/debian/control
@@ -23,8 +23,8 @@ Package: python-django-crispy-forms
 Architecture: all
 Depends: python-django,
          ${misc:Depends},
-         ${python:Depends},
-         ${sphinxdoc:Depends}
+         ${python:Depends}
+Suggests: python-django-crispy-forms-doc
 Description: app for Django providing elegant form rendering
  django-crispy-forms provides you with a |crispy filter and {% crispy %} tag
  that will let you control the rendering behavior of your Django forms in a
@@ -42,8 +42,8 @@ Package: python3-django-crispy-forms
 Architecture: all
 Depends: python3-django,
          ${misc:Depends},
-         ${python3:Depends},
-         ${sphinxdoc:Depends}
+         ${python3:Depends}
+Suggests: python-django-crispy-forms-doc
 Description: app for Django providing elegant form rendering (Python3 version)
  django-crispy-forms provides you with a |crispy filter and {% crispy %} tag
  that will let you control the rendering behavior of your Django forms in a
@@ -58,3 +58,23 @@ Description: app for Django providing elegant form rendering (Python3 version)
  setting variable.
  .
  This package contains the Python 3 version of the library.
+
+Package: python-django-crispy-forms-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: app for Django providing elegant form rendering (Documentation)
+ django-crispy-forms provides you with a |crispy filter and {% crispy %} tag
+ that will let you control the rendering behavior of your Django forms in a
+ very elegant and DRY way. Have full control without writing custom form
+ templates. All this without breaking the standard way of doing things in
+ Django, so it plays nice with any other form application.
+ .
+ Django-crispy-forms supports several frontend frameworks, such as Twitter
+ Bootstrap (versions 2 and 3), Uni-form and Foundation. You can also easily
+ adapt your custom company's one, creating your own, see the docs for more
+ information. You can easily switch among them using CRISPY_TEMPLATE_PACK
+ setting variable.
+ .
+ This package contains the documentation.
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 6b642b6..0000000
--- a/debian/docs
+++ /dev/null
@@ -1,3 +0,0 @@
-*.rst
-CONTRIBUTORS.txt
-docs/_build/html
diff --git a/debian/python-django-crispy-forms.doc-base b/debian/python-django-crispy-forms-doc.doc-base
similarity index 52%
rename from debian/python-django-crispy-forms.doc-base
rename to debian/python-django-crispy-forms-doc.doc-base
index b5f5483..e2a142b 100644
--- a/debian/python-django-crispy-forms.doc-base
+++ b/debian/python-django-crispy-forms-doc.doc-base
@@ -1,9 +1,9 @@
-Document: django-crispy-forms
+Document: python-django-crispy-forms-doc
 Title: Django Crispy Forms Documentation
 Abstract: This is the documentation of Django Crispy Forms, a Django app
  providing elegant form rendering.
 Section: Programming/Python
 
 Format: HTML
-Index: /usr/share/doc/python-django-crispy-forms/html/index.html
-Files: /usr/share/doc/python-django-crispy-forms/html/*.html
+Index: /usr/share/doc/python-django-crispy-forms-doc/html/index.html
+Files: /usr/share/doc/python-django-crispy-forms-doc/html/*.html
diff --git a/debian/python-django-crispy-forms-doc.docs b/debian/python-django-crispy-forms-doc.docs
new file mode 100644
index 0000000..2981a3c
--- /dev/null
+++ b/debian/python-django-crispy-forms-doc.docs
@@ -0,0 +1 @@
+docs/.build/html
diff --git a/debian/python-django-crispy-forms.docs b/debian/python-django-crispy-forms.docs
new file mode 100644
index 0000000..a734f4d
--- /dev/null
+++ b/debian/python-django-crispy-forms.docs
@@ -0,0 +1,2 @@
+CONTRIBUTORS.txt
+README.rst
diff --git a/debian/python3-django-crispy-forms.docs b/debian/python3-django-crispy-forms.docs
new file mode 100644
index 0000000..a734f4d
--- /dev/null
+++ b/debian/python3-django-crispy-forms.docs
@@ -0,0 +1,2 @@
+CONTRIBUTORS.txt
+README.rst
diff --git a/debian/rules b/debian/rules
index 70e973c..d1be1fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,11 +8,11 @@ export PYBUILD_NAME=django-crispy-forms
 export PYBUILD_DISABLE=test
 
 override_dh_auto_clean:
-	rm -rf docs/_build *.egg-info/
+	rm -rf docs/.build
 	dh_auto_clean
 
 override_dh_auto_build:
-	cd docs && $(MAKE) html
+	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
 	dh_auto_build
 
 override_dh_install_changelogs:

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



More information about the Python-modules-commits mailing list