File: rules

package info (click to toggle)
python-xmltodict 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 148 kB
  • ctags: 130
  • sloc: python: 977; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 430 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
#!/usr/bin/make -f

export PYBUILD_NAME = xmltodict

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


override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="nosetests --with-coverage --cover-package=${PYBUILD_NAME}" \
	dh_auto_test


override_dh_auto_clean:
	dh_auto_clean
	[ ! -f .coverage ] || rm .coverage
	[ ! -d xmltodict.egg-info ] || rm -r xmltodict.egg-info
	[ ! -d __pycache__ ] || rm -r __pycache__