1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/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_CUSTOM := 1
#export PYBUILD_TEST_ARGS := PYTHONPATH=.:docs/_ext {interpreter} runtests.py
%:
dh $@ --with sphinxdoc --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
|