Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/openstack/oslo.i18n.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 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
20
21 override_dh_auto_test:
22 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
23 # Blacklisted test_message.MessageTestCase.test_translate_message_bad_translation
24 # See https://bugs.launchpad.net/oslo.i18n/+bug/2000437
25 pkgos-dh_auto_test --no-py2 'oslo_i18n\.tests\.(?!test_message\.MessageTestCase\.test_translate_message_bad_translation)'
26 endif
27
28 override_dh_sphinxdoc:
29 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
30 set -e ; if ! PYTHON=python3 python3 -m sphinx -b html doc/source debian/python-oslo.i18n-doc/usr/share/doc/python-oslo.i18n-doc/html ; then \
31 cat /tmp/sphinx-err-* ; \
32 exit 1 ; \
33 fi
34 dh_sphinxdoc -O--buildsystem=pybuild
35 endif