Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack/os-ken.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 *.egg-info .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 --in-tmp
19
20 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
21 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'os_ken\.tests\.unit\.(?!cmd\.test_manager\.Test_Manager\.test_help)'
22 endif
23
24 override_dh_auto_test:
25 echo "Do nothing..."
26
27 override_dh_auto_test:
28 echo "Do nothing..."
29
30 override_dh_sphinxdoc:
31 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
32 PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-os-ken-doc/usr/share/doc/python-os-ken-doc/html
33 dh_sphinxdoc
34 endif
35
36 override_dh_python3:
37 dh_python3 --shebang=/usr/bin/python3