| 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 -f ca.pem cert.pem key.pem config |
| 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 |
|
| 14 |
override_dh_auto_build: |
| 15 |
echo "Do nothing..." |
| 16 |
|
| 17 |
override_dh_auto_install: |
| 18 |
pkgos-dh_auto_install --no-py2 --in-tmp |
| 19 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 20 |
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2 'magnumclient\.tests\.(?!.*test_utils\.CliUtilsTest\.test_keys_and_vals_to_strs.*)' |
| 21 |
endif |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
echo "Do nothing..." |
| 25 |
|
| 26 |
override_dh_sphinxdoc: |
| 27 |
PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-magnumclient-doc/usr/share/doc/python-magnumclient-doc/html |
| 28 |
dh_sphinxdoc |
| 29 |
|
| 30 |
override_dh_python3: |
| 31 |
dh_python3 --shebang=/usr/bin/python3 |