File: rules

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

export PYBUILD_NAME=py

%:
	dh $@ --with python2,python3,pypy --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" \
		PYBUILD_TEST_ARGS_pypy="echo Skip PyPy: testing/code/test_source.py test_commands test fails" \
		LC_ALL=C.UTF-8 \
		dh_auto_test
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG