File: rules

package info (click to toggle)
python-multidict 6.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 896 kB
  • sloc: ansic: 6,634; python: 4,399; makefile: 227
file content (20 lines) | stat: -rwxr-xr-x 810 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

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export PYBUILD_NAME=multidict
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir} && cd {build_dir}/tests/ && {interpreter} ./gen_pickles.py
# pytest-codspeed is only available on some architectures, and we don't
# really need to run benchmarks.
export PYBUILD_TEST_ARGS := --ignore tests/test_multidict_benchmarks.py --ignore tests/test_views_benchmarks.py
ifneq ($(PYBUILD_AUTOPKGTEST),1)
# These tests use isolated mode (-I), so they only work when the package is
# installed.
PYBUILD_TEST_ARGS += --deselect tests/test_circular_imports.py
endif
export PYBUILD_AFTER_TEST = rm -f {build_dir}/junit-test-results.xml

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