File: rules

package info (click to toggle)
python-semantic-release 10.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,828 kB
  • sloc: python: 41,692; sh: 340; makefile: 158
file content (16 lines) | stat: -rwxr-xr-x 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_TEST_ARGS=-o addopts=
export PYBUILD_BEFORE_TEST=cd {build_dir}; git -c init.defaultBranch=master init
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.git/

%:
	dh $@ --buildsystem=pybuild

ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	cd docs; PYTHONPATH=../src make man; PYTHONPATH=../src LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml . _build/html
endif

execute_after_dh_auto_install:
	mv -v debian/python3-semantic-release/usr/bin/semantic-release debian/python3-semantic-release/usr/bin/python-semantic-release