Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://opendev.org/openstack/oslo.metrics.git
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 build .stestr doc/source/reference *.egg-info .pybuild
11 find . -iname '*.pyc' -delete
12 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
13 rm -rf doc/source/reference/api
14
15 override_dh_auto_build:
16 echo "Do nothing..."
17
18 override_dh_auto_install:
19 pkgos-dh_auto_install --no-py2 --in-tmp
20
21 override_dh_auto_test:
22 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
23 pkgos-dh_auto_test --no-py2
24 endif
25
26 override_dh_auto_test:
27 echo "Do nothing..."
28
29 override_dh_sphinxdoc:
30 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
31 PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-oslo.metrics-doc/usr/share/doc/python-oslo.metrics-doc/html
32 dh_sphinxdoc
33 endif
34
35 override_dh_python3:
36 dh_python3 --shebang=/usr/bin/python3