#!/usr/bin/make -f include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --buildsystem=pybuild --with python3,sphinxdoc override_dh_auto_clean: rm -rf build .stestr *.egg-info find . -iname '*.pyc' -delete for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done override_dh_auto_build: echo "Do nothing..." override_dh_auto_install: pkgos-dh_auto_install --no-py2 --in-tmp ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) # Non-deterministic. See https://bugs.debian.org/1084147 # openstack.tests.unit.identity.v3.test_proxy.TestIdentityProxyRegion.test_region_update OS_LOG_CAPTURE=true pkgos-dh_auto_test --no-py2 'openstack\.tests\.unit\.(?!(.*baremetal\.v1\.test_proxy\.TestWaitForNodesProvisionState\.test_timeout_and_failures_not_fail.*|.*config\.test_loader\.TestLoader\.test__load_yaml_json_file_without_perm.*|.*cloud.test_security_groups\.TestSecurityGroups\.test_update_security_group_bad_kwarg.*|.*cloud\.test_port\.TestPort\.test_create_port_parameters.*|.*test_stats\.TestStats\.test_servers_error.*|identity\.v3\.test_proxy\.TestIdentityProxyRegion\.test_region_update))' endif override_dh_auto_test: echo "Do nothing..." override_dh_sphinxdoc: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) python3 -m sphinx -b html doc/source debian/python-openstacksdk-doc/usr/share/doc/python-openstacksdk-doc/html dh_sphinxdoc -O--buildsystem=pybuild endif override_dh_python3: dh_python3 --shebang=/usr/bin/python3