File: rules

package info (click to toggle)
python-guizero 0.6.0+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,820 kB
  • sloc: python: 5,376; makefile: 28; sh: 17
file content (40 lines) | stat: -rwxr-xr-x 993 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
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

export DH_ALWAYS_EXCLUDE=__pycache__

export DH_VERBOSE=1
export PYBUILD_VERBOSE=1

export LANG=C.UTF-8
export LC_ALL=C.UTF-8

export PYBUILD_NAME=guizero
export PYBUILD_BEFORE_TEST=cp -rv {dir}/tests {build_dir}; cp -v {dir}/examples/guizero* {build_dir}/tests
export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/tests

%:
	dh $@ --with python3 --with mkdocs --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf html

override_dh_auto_build:
	dh_auto_build
	cd $(CURDIR)/docs-src && mv docs/about.md docs/index.md && \
		PYTHONPATH=/usr/share/mkdocs/themes mkdocs build --clean && \
		mv html $(CURDIR)/html
	find $(CURDIR)/html -type f -name sitemap.xml.gz -delete

override_dh_auto_test:
	xvfb-run -a dh_auto_test

override_dh_compress:
	dh_compress -Xchangelog.html

override_dh_installchangelogs:
	dh_installchangelogs docs-src/docs/changelog.md upstream
	dh_installchangelogs

override_dh_mkdocs:
	dh_mkdocs -Tmkdocs-bootstrap -Tfonts-glyphicons-halflings