| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild --with python3 |
| 7 |
|
| 8 |
override_dh_auto_clean: |
| 9 |
rm -rf build .testrepository .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 |
override_dh_python3: |
| 20 |
dh_python3 --shebang=/usr/bin/python3 |
| 21 |
|
| 22 |
override_dh_auto_test: |
| 23 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 24 |
pkgos-dh_auto_test --no-py2 'troveclient\.tests\.((?!.*test_v1_shell\.ShellTest\.test_module_create.*|test_shell\.ShellTest\.test_help|test_shell\.ShellTestKeystoneV3\.test_help))' |
| 25 |
endif |