File: rules

package info (click to toggle)
python-bonsai 1.5.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,136 kB
  • sloc: python: 6,816; ansic: 5,549; makefile: 170; sh: 90
file content (37 lines) | stat: -rwxr-xr-x 1,018 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

#export DH_VERBOSE = 1

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

# These tests require a running LDAP server
disabled_tests = \
	tests/test_asyncio.py \
	tests/test_gevent.py \
	tests/test_ldapclient.py \
	tests/test_ldapconnection.py \
	tests/test_ldapentry.py \
	tests/test_ldapreference.py \
	tests/test_pool.py \
	tests/test_tornado.py \
	tests/test_trio.py \
	tests/test_utils.py

docs = {dir}/docs/_build
export PYBUILD_AFTER_CLEAN = rm -rf $(docs)
export PYBUILD_AFTER_INSTALL = \
	PYTHONPATH={destdir}/{install_dir} \
	{interpreter} -m sphinx -N -b html {dir}/docs/ $(docs)
export PYBUILD_TEST_ARGS = $(addprefix --ignore=,$(disabled_tests))

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

override_dh_auto_build:
	@echo 'blhc: ignore-line-regexp: .*test_krb5\.o .*test_krb5'
	dh_auto_build -O--buildsystem=pybuild

execute_after_dh_auto_install:
	rm -rvf debian/tmp/usr/lib/python3.*/dist-packages/.pytest_cache/