Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/openstack-pkg-tools/pkgos.make
4
5 %:
6 dh $@ --buildsystem=pybuild --with python3
7
8 override_dh_auto_clean:
9 rm -rf python_neutronclient.egg-info doc/man .stestr
10 find . -type d -name __pycache__ -exec rm -r {} \+
11 rm -rf build .pybuild
12
13 override_dh_auto_build:
14 echo "Do nothing..."
15
16 override_dh_auto_install:
17 pkgos-dh_auto_install --no-py2
18
19 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
20 override_dh_auto_test:
21 # See https://bugs.launchpad.net/python-neutronclient/+bug/1790957
22 pkgos-dh_auto_test --no-py2 'neutronclient\.tests\.unit.*'
23 endif
24
25 #override_dh_installman:
26 #ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
27 # sphinx-build -b man doc/source doc/man
28 # dh_installman -O--buildsystem=pybuild
29 #endif
30
31 override_dh_python3:
32 dh_python3 --shebang=/usr/bin/python3