File: rules

package info (click to toggle)
chardet 3.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,452 kB
  • sloc: xml: 66,422; python: 4,889; makefile: 163; sh: 6
file content (28 lines) | stat: -rwxr-xr-x 622 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
24
25
26
27
28
#!/usr/bin/make -f

export PYBUILD_NAME=chardet
export PYTHONWARNINGS=d

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

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

override_dh_auto_build:
	dh_auto_build
	cp debian/chardet.1 debian/chardet3.1
	sed -i 's/chardet/chardet3/g' debian/chardet3.1

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-chardet/usr/bin/chardetect \
		debian/python3-chardet/usr/bin/chardetect3

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="cd {dir}; {interpreter} -m pytest" dh_auto_test

override_dh_clean:
	dh_clean
	rm -rf .hypothesis/