File: rules

package info (click to toggle)
python-tomlkit 0.13.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,100 kB
  • sloc: python: 6,242; makefile: 22; sh: 5
file content (21 lines) | stat: -rwxr-xr-x 604 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export PYBUILD_NAME=tomlkit
export PYBUILD_TEST_PYTEST=1

%:
	dh $@ --buildsystem=pybuild

override_dh_installdocs:
	PYTHONPATH=.:$PYTHONPATH sphinx-build -b text docs debian
	dh_installdocs

# The original source tarball contains a changelog whose mtime is the epoch,
# which dak would reject if it found it in our binary package.
execute_after_dh_installchangelogs:
	touch -d"@$$(dpkg-parsechangelog -STimestamp)" debian/python3-tomlkit/usr/share/doc/python3-tomlkit/changelog

override_dh_auto_clean:
	rm -f debian/*.txt
	rm -rf debian/.doctrees
	dh_auto_clean