File: rules

package info (click to toggle)
pep8 1.7.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 652 kB
  • sloc: python: 3,193; makefile: 135; sh: 6
file content (19 lines) | stat: -rwxr-xr-x 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=pep8
PYVERS = $(shell py3versions -s -v)

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

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python3-pep8/usr/bin

override_dh_auto_test:
	$(foreach pyv, $(PYVERS), python$(pyv) -m unittest -v testsuite.test_all.suite;)

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3