Nilesh Patra pushed to branch master at Debian Med / xpore


Commits:
81ae2df7 by Nilesh Patra at 2021-05-20T23:27:36+05:30
Add a doc package

- - - - -


3 changed files:

- debian/control
- + debian/python-xpore-doc.docs
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -2,7 +2,7 @@ Source: xpore
 Section: science
 Priority: optional
 Maintainer: Steffen Moeller <[email protected]>
-Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, 
python3-all
+Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, 
python3-all, python3-sphinx <!nodoc>, python3-sphinx-rtd-theme <!nodoc>
 Standards-Version: 4.5.1
 Homepage: https://github.com/GoekeLab/xpore/
 Vcs-Browser: https://salsa.debian.org/med-team/xpore
@@ -25,3 +25,10 @@ Description: Nanopore analysis of differential RNA 
modifications
  something must be left for mass spectrometry, but one may be pointed
  to a difference. And maybe one can even statistically associate such
  differences with a molecular or clinical phenotype.
+
+Package: python-xpore-doc
+Architecture: all
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Suggests: python-xpore-doc
+Description: documentation for the ppmd Python library
+ This package provides documentation for xpore


=====================================
debian/python-xpore-doc.docs
=====================================
@@ -0,0 +1 @@
+.pybuild/docs/*


=====================================
debian/rules
=====================================
@@ -6,18 +6,14 @@
 export PYBUILD_NAME=xpore
 
 %:
-       dh $@ --with python3 --buildsystem=pybuild
+       dh $@ --with python3,sphinxdoc --buildsystem=pybuild
 
 
-# If you need to rebuild the Sphinx documentation
-# Add sphinxdoc to the dh --with line
-#
-# And uncomment the following lines
-#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=. python3 -m sphinx -N -bhtml \
-#      docs/ build/html # HTML generator
-#      PYTHONPATH=. python3 -m sphinx -N -bman \
-#      docs/ build/man # Manpage generator
+override_dh_auto_build:
+       dh_auto_build
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+       cd docs/source && \
+       PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' 
https_proxy='https://127.0.0.1:9/' \
+       sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
+       rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
+endif



View it on GitLab: 
https://salsa.debian.org/med-team/xpore/-/commit/81ae2df7519ebe5b67b03b2d6d9ea1c5e759082d

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/xpore/-/commit/81ae2df7519ebe5b67b03b2d6d9ea1c5e759082d
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to