File: rules

package info (click to toggle)
bumpversion 1.0.1-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: python: 2,910; makefile: 31; sh: 6
file content (21 lines) | stat: -rwxr-xr-x 599 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

# 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
export PYBUILD_TEST_ARGS=-k "not test_usage_string and not test_defaults_in_usage_with_config"

%:
	dh $@ --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