File: rules

package info (click to toggle)
python-py 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,456 kB
  • sloc: python: 11,662; makefile: 119; sh: 7
file content (17 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME=py

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} -m pytest testing --ignore={dir}/testing/log/test_warning.py --ignore={dir}/testing/code/test_excinfo.py" \
		LC_ALL=C.UTF-8 \
		dh_auto_test
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.rst