| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 7 |
|
| 8 |
override_dh_auto_clean: |
| 9 |
rm -rf build doc/man .stestr *.egg-info .pybuild |
| 10 |
find . -iname '*.pyc' -delete |
| 11 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
echo "Do nothing..." |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
pkgos-dh_auto_install --no-py2 |
| 18 |
|
| 19 |
# Problem with mock: test_quota_set_default_class_shares |
| 20 |
override_dh_auto_test: |
| 21 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 22 |
pkgos-dh_auto_test --no-py2 'manilaclient\.tests\.unit\.(?!osc\.v2\.test_quotas\.TestQuotaSet\.test_quota_set_default_class_shares)' |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_sphinxdoc: |
| 26 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 27 |
PATH=$$PATH:$(CURDIR)/debian/python3-manilaclient/usr/bin PYTHONPATH=$(CURDIR) python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-manilaclient-doc/usr/share/doc/python-manilaclient-doc/html |
| 28 |
dh_sphinxdoc |
| 29 |
endif |
| 30 |
|
| 31 |
override_dh_installman: |
| 32 |
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
| 33 |
python3 -m sphinx -b man doc/source/ doc/man |
| 34 |
dh_installman |
| 35 |
endif |
| 36 |
|
| 37 |
override_dh_python3: |
| 38 |
dh_python3 --shebang=/usr/bin/python3 |