File: rules

package info (click to toggle)
python-jsbeautifier 1.14.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 816 kB
  • sloc: python: 13,038; sh: 14; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 595 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_NAME=jsbeautifier

# Tests must be importable as a module, so unittest can find them.
export PYBUILD_BEFORE_TEST=touch {dir}/jsbeautifier/tests/generated/__init__.py
export PYBUILD_AFTER_TEST=rm {dir}/jsbeautifier/tests/generated/__init__.py

d = $(CURDIR)/debian/jsbeautifier/usr/bin
export PYBUILD_AFTER_INSTALL_python3 = mkdir -pv $d && mv -v {destdir}/usr/bin/js-beautify $d/js-beautify-py

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m unittest discover -v" dh_auto_test