File: rules

package info (click to toggle)
python-django-contact-form 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 320 kB
  • sloc: python: 473; makefile: 142
file content (26 lines) | stat: -rwxr-xr-x 736 bytes parent folder | download
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export PYBUILD_NAME=django-contact-form
export PYBUILD_SYSTEM=distutils

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs $(CURDIR)/debian/python-django-contact-form-doc/usr/share/doc/python-django-contact-form-doc/html
	dh_sphinxdoc
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build/ django_contact_form.egg-info/

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYTHONPATH=src PYBUILD_TEST_ARGS="{interpreter} ./runtests.py" \
		dh_auto_test