[Python-modules-commits] [python-fedora] 08/09: * Improve debian/rules. Remove dh_auto_clean override, which means that the package now includes all modules from upstream. Generate documentation using sphinx. Adjust rules and variables for pybuild.

Sergio Durigan Junior sergiodj-guest at moszumanska.debian.org
Tue Jul 19 23:50:01 UTC 2016


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

sergiodj-guest pushed a commit to branch master
in repository python-fedora.

commit 45909f856ae461727a245afcc351c38061404298
Author: Sergio Durigan Junior <sergiodj at sergiodj.net>
Date:   Tue Jul 19 19:48:31 2016 -0400

    * Improve debian/rules.  Remove dh_auto_clean override, which
      means that the package now includes all modules from upstream.
      Generate documentation using sphinx.  Adjust rules and variables
      for pybuild.
    
    Closes: #797253
---
 debian/rules | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/debian/rules b/debian/rules
index b5a994b..680ab18 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,16 @@
 #!/usr/bin/make -f
+
+export PYBUILD_NAME = fedora
+
 %:
-	dh $@ --with python2 --buildsystem=pybuild
-
-override_dh_auto_clean:
-	dh_auto_clean
-	rm -rf fedora/tg/
-	rm -rf fedora/tg2/
-	rm -rf fedora/wsgi/
-	rm -rf fedora/django/
-	rm -rf flask_fas.py*
-	rm -rf flask_fas_openid.py*
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=$(CURDIR)/ http_proxy='127.0.0.1:9' \
+		sphinx-build -N -bhtml doc/ doc/_build/html
+	PYTHONPATH=$(CURDIR)/ http_proxy='127.0.0.1:9' \
+		sphinx-build -N -bman doc/ doc/_build/man
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS

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



More information about the Python-modules-commits mailing list