[Python-modules-commits] r33105 - in packages/pylibmc/trunk/debian (4 files)
fladi at users.alioth.debian.org
fladi at users.alioth.debian.org
Thu Jun 25 18:12:27 UTC 2015
Date: Thursday, June 25, 2015 @ 18:12:26
Author: fladi
Revision: 33105
Build documentation an ship it in a separate package.
Added:
packages/pylibmc/trunk/debian/python-pylibmc-doc.doc-base
packages/pylibmc/trunk/debian/python-pylibmc-doc.docs
Modified:
packages/pylibmc/trunk/debian/control
packages/pylibmc/trunk/debian/rules
Modified: packages/pylibmc/trunk/debian/control
===================================================================
--- packages/pylibmc/trunk/debian/control 2015-06-25 15:51:46 UTC (rev 33104)
+++ packages/pylibmc/trunk/debian/control 2015-06-25 18:12:26 UTC (rev 33105)
@@ -7,6 +7,7 @@
dh-python,
python-all-dev,
python-all-dbg,
+ python-sphinx (>= 1.0.7+dfsg),
python3-all-dev,
python3-all-dbg,
libmemcached-dev,
@@ -75,3 +76,16 @@
environment.
.
This package contains the Python 3 version of the debug mode.
+
+Package: python-pylibmc-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+ ${sphinxdoc:Depends}
+Description: libmemcached wrapper (Documentation)
+ Pylibmc is a Python wrapper around the accompanying C Python
+ extension _pylibmc, which is a wrapper around libmemcached
+ from TangentOrg. It also manages pooling in a multi-threading
+ environment.
+ .
+ This package contains the documentation.
Added: packages/pylibmc/trunk/debian/python-pylibmc-doc.doc-base
===================================================================
--- packages/pylibmc/trunk/debian/python-pylibmc-doc.doc-base (rev 0)
+++ packages/pylibmc/trunk/debian/python-pylibmc-doc.doc-base 2015-06-25 18:12:26 UTC (rev 33105)
@@ -0,0 +1,8 @@
+Document: python-pylibmc-doc
+Title: pylibmc - Python client for memcached
+Author: Ludvig Ericson
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pylibmc-doc/html/index.html
+Files: /usr/share/doc/python-pylibmc-doc/html/*.html
Added: packages/pylibmc/trunk/debian/python-pylibmc-doc.docs
===================================================================
--- packages/pylibmc/trunk/debian/python-pylibmc-doc.docs (rev 0)
+++ packages/pylibmc/trunk/debian/python-pylibmc-doc.docs 2015-06-25 18:12:26 UTC (rev 33105)
@@ -0,0 +1 @@
+docs/.build/html
Modified: packages/pylibmc/trunk/debian/rules
===================================================================
--- packages/pylibmc/trunk/debian/rules 2015-06-25 15:51:46 UTC (rev 33104)
+++ packages/pylibmc/trunk/debian/rules 2015-06-25 18:12:26 UTC (rev 33105)
@@ -1,9 +1,13 @@
#!/usr/bin/make -f
export PYBUILD_NAME=pylibmc
+# The name of the next export needs to be changed if we switch to
+# python3-sphinx: PYBUILD_AFTER_BUILD_python3
+# Otherwise the imports in docs/conf.py would not work.
+export PYBUILD_AFTER_BUILD_python2=PYLIBMC_DIR={build_dir} sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
%:
- dh $@ --with python2,python3 --buildsystem=pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_strip:
dh_strip --dbg-package=python-pylibmc-dbg --dbg-package=python3-pylibmc-dbg
@@ -15,3 +19,10 @@
override_dh_python3:
dh_python3
rmdir debian/python3-pylibmc-dbg/usr/lib/python*/*-packages/pylibmc
+
+override_dh_clean:
+ rm -rf docs/.build
+ dh_clean
+
+override_dh_compress:
+ dh_compress -X changelog.html
More information about the Python-modules-commits
mailing list