File: rules

package info (click to toggle)
grip 4.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 628 kB
  • ctags: 234
  • sloc: python: 1,436; makefile: 13
file content (28 lines) | stat: -rwxr-xr-x 857 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
22
23
24
25
26
27
28
#!/usr/bin/make -f

export PYBUILD_NAME=grip

export PYBUILD_TEST_PYTEST=1
export PYBUILD_BEFORE_TEST=cp {dir}/README.md {build_dir}
export PYBUILD_AFTER_TEST=rm -f {build_dir}/README.md

# pytest arguments:
#
# '-m "not assumption"' prevents external calls to GitHub API
# 'tests/test_cli.py' are functional tests not run at build time (DEP-8)
export PYBUILD_TEST_ARGS=-m "not assumption" --ignore=tests/test_cli.py


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


override_dh_auto_build:
	dh_auto_build
	txt2man -s 1 -t grip debian/docs/grip.txt > debian/grip.1

override_dh_auto_install:
	dh_auto_install -- --install-args="--install-lib=/usr/share/grip"
	# Move the entry point script to the application root, otherwise it won't
	# work. A symlink for it in '/usr/bin/grip' will be created.
	mv debian/grip/usr/bin/grip debian/grip/usr/share/grip/run