Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack-dev/pbr.git
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 export http_proxy=127.0.0.1:9
7 export https_proxy=127.0.0.1:9
8
9 %:
10 dh $@ --buildsystem=pybuild --with python3,sphinxdoc
11
12 override_dh_auto_clean:
13 rm -rf .stestr build __pycache__ pbr.egg-info
14 find . -type d -name __pycache__ -exec rm -r {} \+
15 rm -rf doc/source/reference/api .pybuild
16
17 override_dh_auto_build:
18 echo "Do nothing..."
19
20 override_dh_auto_install:
21 pkgos-dh_auto_install --no-py2
22
23 override_dh_auto_test:
24 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
25 pkgos-dh_auto_test --no-py2 'pbr\.tests\.(?!test_packaging\.TestRequirementParsing\.test_requirement_parsing.*|test_packaging\.TestPEP517Support\.test_pep_517_support.*|functional\.test_wsgi_scripts\.TestWsgiScripts\.test_with_argument|functional\.test_wsgi_scripts\.TestWsgiScripts\.test_wsgi_script_install|functional\.test_wsgi_scripts.TestWsgiScripts\.test_wsgi_script_run|functional\.test_pep517\.TestPEP517Support\.test_pep_517_support|functional\.test_requirements\.TestRequirementParsing\.test_requirement_parsing)'
26 endif
27
28 override_dh_sphinxdoc:
29 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
30 if ! PYTHONPATH=. PYTHON=python3 python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-pbr-doc/usr/share/doc/python-pbr-doc/html ; then \
31 cat /tmp/sphinx-err-*.log ; \
32 exit 1 ; \
33 fi
34 dh_sphinxdoc
35 endif
36
37 override_dh_python3:
38 dh_python3 --shebang=/usr/bin/python3