File: rules

package info (click to toggle)
python-qtawesome 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,948 kB
  • sloc: python: 1,693; makefile: 177; sh: 10
file content (35 lines) | stat: -rwxr-xr-x 1,017 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

export PYBUILD_NAME = qtawesome

ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

execute_after_dh_auto_build:
	PYTHONPATH=. python3 -m sphinx -N -b html docs/source build/html

execute_after_dh_auto_install:
	# This script only makes sense on Windows
	rm -f debian/python3-qtawesome/usr/bin/qta-install-fonts-all-users

override_dh_installdocs:
	dh_installdocs -ppython-qtawesome-doc --doc-main-package=python3-qtawesome
	dh_installdocs --remaining-packages

override_dh_installexamples:
	dh_installexamples -ppython-qtawesome-doc --doc-main-package=python3-qtawesome
	dh_installexamples --remaining-packages
else
%:
	dh $@ --buildsystem=pybuild
endif

# We only check with PyQt6 and PySide 6 as PyQt5 is end-of-life
# and will soon be dropped from Debian.
override_dh_auto_test:
	QT_API=pyqt6 dh_auto_test --buildsystem=pybuild
	QT_API=pyside6 dh_auto_test --buildsystem=pybuild