File: rules

package info (click to toggle)
flask 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,224 kB
  • sloc: python: 8,975; makefile: 55; pascal: 51; sql: 22
file content (30 lines) | stat: -rwxr-xr-x 948 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
27
28
29
30
#!/usr/bin/make -f
	
export PYBUILD_NAME=flask
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/site_egg'

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

override_dh_auto_test:
	LC_ALL=C.UTF-8 http_proxy='' dh_auto_test

override_dh_install:
	dh_install

	rm $(CURDIR)/debian/python-flask/usr/bin/flask

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	http_proxy='http://127.0.0.1:9/' \
		https_proxy='http://127.0.0.1:9/' \
		PYTHONPATH=. \
		python3 -m sphinx -N -q -E -b html docs/ debian/python-flask-doc/usr/share/doc/python-flask-doc/html/
	dh_sphinxdoc
	# Remove unwanted license file, we already reference d/copyright
	rm -f $(CURDIR)/debian/python-flask-doc/usr/share/doc/python-flask-doc/html/_sources/license.rst.txt
	rm -f $(CURDIR)/debian/python-flask-doc/usr/share/doc/python-flask-doc/html/license.html
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst