Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 export PYBUILD_NAME := django-polymorphic
9 export PYBUILD_TEST_ARGS := \
10 --ignore {dir}/src/polymorphic/tests/examples/integrations/extra_views \
11 --ignore {dir}/src/polymorphic/tests/examples/integrations/reversion \
12 --ignore {dir}/src/polymorphic/tests/examples/views \
13 {dir}/src
14
15 %:
16 dh $@ --buildsystem=pybuild
17
18 execute_after_dh_auto_install:
19 rm -f $(CURDIR)/debian/python3-django-polymorphic/usr/lib/python3.*/dist-packages/polymorphic/contrib/drf/LICENSE
20
21 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
22 execute_before_dh_sphinxdoc:
23 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
24 endif
25
26 execute_before_dh_clean:
27 rm -rf $(CURDIR)/docs/_build
28
29 override_dh_installchangelogs:
30 dh_installchangelogs -- $(CURDIR)/docs/changelog/index.rst