Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
4 BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
5 SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)"
6
7 include /usr/share/openstack-pkg-tools/pkgos.make
8
9 export RES_OPTIONS=attempts:0
10
11 # This avoids test failures
12 export EVENTLET_TESTS=True
13
14 %:
15 dh $@ --buildsystem=pybuild --with python3,sphinxdoc
16
17 override_dh_auto_clean:
18 rm -rf build .stestr *.egg-info doc/source/api .pybuild
19 find . -iname '*.pyc' -delete
20 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
21
22 override_dh_auto_build:
23 echo "Do nothing..."
24
25 override_dh_auto_test:
26 echo "Do nothing..."
27
28 override_dh_auto_install:
29 pkgos-dh_auto_install --no-py2 --in-tmp
30
31 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
32 pkgos-dh_auto_test --no-py2
33 # 'keystoneclient\.tests\.(?!.*memcache_set_expired.*|.*test_encrypt_cache_data.*|.*test_sign_cache_data.*)'
34 endif
35
36 override_dh_clean:
37 dh_clean
38
39 override_dh_sphinxdoc:
40 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
41 PYTHONPATH=. python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-keystoneclient-doc/usr/share/doc/python-keystoneclient-doc/html
42 dh_sphinxdoc
43 endif
44
45 override_dh_python3:
46 dh_python3 --shebang=/usr/bin/python3