File: rules

package info (click to toggle)
python-pipx 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,616 kB
  • sloc: python: 9,642; makefile: 17; sh: 13
file content (23 lines) | stat: -rwxr-xr-x 591 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

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

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src mkdocs build \
	  --no-directory-urls \
	  --site-dir html-docs
	# Let dh_compress generate a compressed sitemap:
	rm html-docs/sitemap.xml.gz
	COLUMNS=80 PYTHONPATH=src \
	  python3 scripts/generate_man.py
	PYTHONPATH=src register-python-argcomplete --shell fish pipx > pipx.fish
endif

override_dh_auto_test:
	echo "Skipped: The test suite downloads and executes code from the Internet"

dh_compress:
	dh_compress -X.html