Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack/oslo.privsep.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 for i in $$(find $(CURDIR) -type d -name __pycache__) ; do \
11 rm -rf $$i ; \
12 done
13 rm -rf build .stestr AUTHORS ChangeLog *.egg-info
14 rm -rf doc/source/reference/api .pybuild
15
16 override_dh_auto_build:
17 echo "Do nothing..."
18
19 override_dh_auto_install:
20 for i in $(PYTHON3S) ; do \
21 python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
22 done
23 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
24 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2
25 endif
26
27 override_dh_auto_test:
28 echo "Do nothing..."
29
30 override_dh_sphinxdoc:
31 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
32 PYTHON=python3 python3 -m sphinx -b html doc/source debian/python-oslo.privsep-doc/usr/share/doc/python-oslo.privsep-doc/html
33 dh_sphinxdoc
34 endif
35
36 override_dh_python3:
37 dh_python3 --shebang=/usr/bin/python3