| 1 |
|
| 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 .testrepository *.egg-info .stestr doc/source/api |
| 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 |
for i in $(PYTHON3S) ; do \ |
| 18 |
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \ |
| 19 |
done |
| 20 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 21 |
|
| 22 |
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'mistralclient\.tests\.unit\.(?!.*test_httpclient\.HTTPClientTest\.test_get_request_options_with_profile_enabled.*)' |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_auto_test: |
| 26 |
echo "Do nothing..." |
| 27 |
|
| 28 |
override_dh_sphinxdoc: |
| 29 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 30 |
PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python3-mistralclient/usr/share/doc/python3-mistralclient/html |
| 31 |
dh_sphinxdoc |
| 32 |
endif |
| 33 |
|
| 34 |
override_dh_python3: |
| 35 |
dh_python3 --shebang=/usr/bin/python3 |