File: rules

package info (click to toggle)
pycsw 2.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 8,720 kB
  • ctags: 480
  • sloc: xml: 31,352; python: 10,704; makefile: 147; sh: 1
file content (32 lines) | stat: -rwxr-xr-x 883 bytes parent folder | download
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
29
30
31
32
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=pycsw

%:
	dh  $@ --with python2,python3,sphinxdoc,apache2 --buildsystem pybuild --parallel

override_dh_clean:
	dh_clean debian/man/pycsw-admin.1 \
		 debian/man/pycsw-admin.1.html

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
	ronn debian/man/pycsw-admin.md

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="cd {dir} && PYTHONPATH={dir} paver test" \
	PYBUILD_AFTER_TEST="rm -rf {dir}/tests/results/" \
	PYBUILD_DISABLE=test/python3 \
	dh_auto_test || echo "Ignoring test failures"

override_dh_auto_install:
	PYBUILD_INSTALL_ARGS="--install-scripts=/usr/lib/{package}" dh_auto_install

override_dh_install:
	dh_install --list-missing

get-orig-source:
	uscan --verbose --force-download --repack --compression xz