#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/dpkg/pkg-info.mk export PYBUILD_NAME := django-polymorphic export PYBUILD_TEST_ARGS := \ --ignore {dir}/src/polymorphic/tests/examples/integrations/extra_views \ --ignore {dir}/src/polymorphic/tests/examples/integrations/reversion \ --ignore {dir}/src/polymorphic/tests/examples/views \ {dir}/src %: dh $@ --buildsystem=pybuild execute_after_dh_auto_install: rm -f $(CURDIR)/debian/python3-django-polymorphic/usr/lib/python3.*/dist-packages/polymorphic/contrib/drf/LICENSE ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) execute_before_dh_sphinxdoc: PYTHONPATH=$(CURDIR)/src python3 -m sphinx -b html -N $(CURDIR)/docs/ $(CURDIR)/debian/python-django-polymorphic-doc/usr/share/doc/python-django-polymorphic-doc/html endif execute_before_dh_clean: rm -rf $(CURDIR)/docs/_build override_dh_installchangelogs: dh_installchangelogs -- $(CURDIR)/docs/changelog/index.rst