| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/openstack/osc-lib.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 8 |
|
| 9 |
override_dh_auto_clean: |
| 10 |
rm -rf build .stestr *.egg-info doc/source/reference/api .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 |
|
| 20 |
override_dh_auto_test: |
| 21 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 22 |
pkgos-dh_auto_test --no-py2 'osc_lib\.tests\.(?!(.*TestShellCli\.test_shell_args_cert_options.*|.*TestShellCli\.test_shell_args_tls_options.*|utils\.test_tags\.TestTagHelps\.test_add_tag_filtering_option_to_parser|utils\.test_tags\.TestTagHelps\.test_add_tag_option_to_parser_for_create|utils\.test_tags\.TestTagHelps\.test_add_tag_option_to_parser_for_set|utils\.test_tags\.TestTagHelps\.test_add_tag_option_to_parser_for_unset))' |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_sphinxdoc: |
| 26 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 27 |
PYTHONPATH=. python3 -m sphinx -b html doc/source debian/python-osc-lib-doc/usr/share/doc/python-osc-lib-doc/html |
| 28 |
dh_sphinxdoc |
| 29 |
endif |