File: rules

package info (click to toggle)
bumpversion 0.5.10-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 344 kB
  • sloc: python: 2,403; makefile: 25
file content (20 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests

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

override_dh_installman:
	PYTHONIOENCODING=utf-8 PYTHONPATH=. help2man \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		--output=bumpversion.1 -s 1 \
		-n "Version-bump your software" \
		debian/bumpversion/usr/bin/bumpversion
	dh_installman