File: rules

package info (click to toggle)
straight.plugin 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 236 kB
  • sloc: python: 412; makefile: 138
file content (19 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export PYBUILD_NAME = straight.plugin

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=../ $(MAKE) -C docs/ html man

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
	dh_auto_test
else
	@echo "Skipping testsuite as DEB_BUILD_OPTIONS=nocheck is set"
endif