File: rules

package info (click to toggle)
pydoctor 22.9.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,976 kB
  • sloc: python: 22,250; javascript: 2,533; ansic: 57; makefile: 21; sh: 18
file content (17 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME := pydoctor
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/lib/python*/dist-packages/.coverage
export PYBUILD_SYSTEM=pyproject

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

override_dh_auto_test:
	# Run tests specified in upstream tox.ini
	dh_auto_test -- --system=custom \
		--test-args='find docs/ -name \*.py ! -path '*demo/*' | xargs pyflakes3 && \
		cd {build_dir} && \
		python3 --version && \
		trial3 --version && \
		find pydoctor/ -name \*.py ! -path '*/testpackages/*' ! -path '*/sre_parse36.py' ! -path '*/sre_constants36.py' | xargs pyflakes3'