File: rules

package info (click to toggle)
python-securetar 2026.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,848 kB
  • sloc: python: 2,639; makefile: 12; sh: 6
file content (16 lines) | stat: -rwxr-xr-x 493 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=-vv

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	for dir in ./.pybuild/*; do \
		cp -av $(CURDIR)/tests $$dir/build; \
	done
	dh_auto_test
	# Remove test-generated artifacts so they are not installed in dist-packages.
	find ./.pybuild/*/build -maxdepth 1 -type f \( -name "test.tar" -o -name "<Mock id='*'>" \) -delete
	rm -r ./.pybuild/*/build/tests ./.pybuild/*/build/core*tar.gz*
endif