Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack/oslo.db.git
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 export OSLO_LOCK_PATH=$(CURDIR)/debian/
7
8 %:
9 dh $@ --buildsystem=pybuild --with python3,sphinxdoc
10
11 override_dh_auto_clean:
12 rm -rf build *.egg-info .stestr doc/source/reference/api .pybuild
13 find . -iname '*.pyc' -delete
14 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
15
16 override_dh_auto_build:
17 echo "Do nothing..."
18
19 override_dh_auto_install:
20 for i in $(PYTHON3S) ; do \
21 python$$i 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 pkgos-dh_auto_test --no-py2 'oslo_db\.tests\.(?!.*test_enginefacade.*)'
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 PYTHONPATH=. PYTHON=python3 python3 -m sphinx -b html doc/source debian/python-oslo.db-doc/usr/share/doc/python-oslo.db-doc/html
33 dh_sphinxdoc
34 endif