| 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 .stestr build doc/man *.egg-info .pybuild |
| 10 |
rm -rf doc/source/reference/api |
| 11 |
find . -type d -name __pycache__ -exec rm -r {} \+ |
| 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_install: |
| 23 |
dh_install |
| 24 |
|
| 25 |
override_dh_auto_test: |
| 26 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
pkgos-dh_auto_test --no-py2 'glanceclient\.tests\.unit(?!(.*test_ssl\.TestHTTPSVerifyCert\.test_v2_requests_valid_cert_no_key.*|.*test_ssl\.TestHTTPSVerifyCert\.test_v2_requests_cert_verification_no_compression.*|.*test_ssl\.TestHTTPSVerifyCert\.test_v1_requests_cert_verification.*|.*test_ssl\.TestHTTPSVerifyCert\.test_v1_requests_cert_verification_no_compression.*|.*test_ssl\.TestHTTPSVerifyCert\.test_v2_requests_cert_verification.*|.*test_shell.ShellCacheSchemaTest\.test_cache_schemas_gets_when_forced.*|.*test_shell.ShellCacheSchemaTest\.test_cache_schemas_gets_when_not_exists.*|\.test_ssl\.TestHTTPSVerifyCert\.test_v2_requests_valid_cert_verification.*|.*test_shell\.ShellTestRequests.*))' |
| 32 |
endif |
| 33 |
|
| 34 |
override_dh_installman: |
| 35 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 36 |
PYTHONPATH=. python3 -m sphinx -b man doc/source doc/man |
| 37 |
dh_installman |
| 38 |
endif |
| 39 |
|
| 40 |
override_dh_sphinxdoc: |
| 41 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 42 |
PYTHONPATH=. python3 -m sphinx -b html doc/source $(CURDIR)/debian/python-glanceclient-doc/usr/share/doc/python-glanceclient-doc/html |
| 43 |
dh_sphinxdoc |
| 44 |
endif |