File: rules

package info (click to toggle)
python-notobuilder 0%2B20250929-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: python: 682; makefile: 9; sh: 1
file content (14 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
export PYBUILD_TEST_ARGS=-vv
endif

%:
	dh $@ --buildsystem=pybuild --test-pytest

# avoid shipping unused modules needing not-in-Debian modules
execute_after_dh_auto_install:
	find debian/*/usr/lib -path '*/ghpages*' -delete
	find debian/*/usr/lib -path '*/notoqa*' -delete
	find debian/*/usr/lib -path '*/documentation.py*' -delete