File: rules

package info (click to toggle)
sphinx-testing 0.7.1-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • ctags: 114
  • sloc: python: 696; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 673 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
#!/usr/bin/make -f
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export PYBUILD_NAME=sphinx-testing
export PYBUILD_BEFORE_TEST= cp -r {dir}/tests {build_dir};touch {build_dir}/tests/__init__.py;cd {build_dir}
export PYBUILD_TEST_NOSE=1
export PYBUILD_TEST_ARGS="tests"

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

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst

override_dh_python3:
	dh_python3
	find $(CURDIR)/debian -name tests -type d | xargs rm -rf

override_dh_python2:
	dh_python2
	find $(CURDIR)/debian -name tests -type d | xargs rm -rf