File: rules

package info (click to toggle)
python-asdf 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,032 kB
  • sloc: python: 24,068; makefile: 123
file content (22 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
#export DH_VERBOSE=1

export PYBUILD_NAME=asdf
export DEB_VERSION_UPSTREAM
export PYTEST_ADDOPTS="--color=no"
export PYBUILD_AFTER_TEST=rm -f {build_dir}/*.asdf

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

override_dh_installdocs:
	PYTHONPATH=`pwd` sphinx-build docs docs/_build/html
	dh_installdocs

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/asdftool/usr
	mv debian/python3-asdf/usr/bin debian/asdftool/usr
	for i in docs compatibility_tests ; do \
	    rm -rf debian/python3-asdf/usr/lib/python3*/dist-packages/$$i ; \
	done