Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 MANIFEST_EXCLUDE_STANDARD := aodhclient
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 %:
7 dh $@ --buildsystem=pybuild --with python3,sphinxdoc
8
9 override_dh_auto_clean:
10 rm -rf doc/man build .stestr *.egg-info doc/source/ref .pybuild
11 find . -iname '*.pyc' -delete
12 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
13
14 override_dh_auto_build:
15 echo "Do nothing..."
16
17 override_dh_auto_install:
18 pkgos-dh_auto_install --no-py2
19
20 override_dh_auto_test:
21 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
22 pkgos-dh_auto_test --no-py2 'aodhclient\.tests\.unit\.(?!.*test_client.ClientAuthTest\.test_discover_auth_versions.*)'
23 endif
24
25 override_dh_sphinxdoc:
26 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
27 python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-aodhclient-doc/usr/share/doc/python-aodhclient-doc/html
28 dh_sphinxdoc
29 endif
30
31 override_dh_installman:
32 #ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
33 # sphinx-build -b man doc/source doc/man
34 # mv doc/man/python-aodhclient.1 doc/man/aodh.1
35 # sed -i s/python-aodhclient/python-aodhclient/ doc/man/aodh.1
36 # dh_installman
37 #endif
38
39 override_dh_python3:
40 dh_python3 --shebang=/usr/bin/python3