File: rules

package info (click to toggle)
python-cheroot 10.0.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,048 kB
  • sloc: python: 6,222; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

parallel_gt_3 := $(shell [ $(DEB_BUILD_OPTION_PARALLEL) -gt 3 ] && echo true)
ifeq ($(parallel_gt_3),true)
pytest_parallel=-n3
else
pytest_parallel=$(DEB_BUILD_OPTION_PARALLEL:%=-n%)
endif

export PYBUILD_NAME=cheroot
export PYBUILD_TEST_ARGS=-k "not (test_https_over_http_error)" $(pytest_parallel) --pyargs cheroot.test
export PYBUILD_AFTER_TEST=rm -Rf {build_dir}/.test-results {build_dir}/.coverage
export LC_ALL=C.UTF-8
export http_proxy=
export https_proxy=

%:
	dh $@ --buildsystem=pybuild --max-parallel=3