Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # Individual tests which fail in buildd or autopkgtest
6 SKIP_TESTS = \
7 cli \
8 pytest \
9 test_adds_note_showing_which_strategy \
10 test_can_learn_to_normalize_the_unnormalized \
11 test_dateutil_timezones \
12 test_gc_hooks_do_not_cause_unraisable_recursionerror \
13 test_ghostwriter_suggests_submodules_for_empty_toplevel \
14 test_hypothesis_is_not_the_first_to_import_attrs \
15 test_hypothesis_is_not_the_first_to_import_numpy \
16 test_updating_the_file_include_new_shrinkers \
17 test_zoneinfo_timezones
18
19 # Test scripts which cannot be imported, e.g. because they
20 # depend on unpackaged Python modules
21 IGNORE_TESTS = \
22 tests/codemods \
23 tests/crosshair \
24 tests/dpcontracts \
25 tests/patching
26
27 space = $(eval) $(eval)
28 concat_with = $(subst $(space),$1,$2)
29
30 export LC_ALL=C.UTF-8
31 export PYBUILD_NAME=hypothesis
32 export PYBUILD_DIR=hypothesis-python
33 export PYBUILD_TEST_ARGS=$(if $(SKIP_TESTS),-k 'not ($(call concat_with,$(space)or$(space),$(SKIP_TESTS)))') $(addprefix --ignore=,$(IGNORE_TESTS)) tests
34
35 %:
36 dh $@ --buildsystem=pybuild
37
38 execute_after_dh_auto_build:
39 ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
40 PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) \
41 http_proxy='127.0.0.1:9' \
42 https_proxy='127.0.0.1:9' \
43 python3 -m sphinx -N -b html hypothesis-python/docs/ $(CURDIR)/.pybuild/docs/html/
44 endif
45
46 execute_before_dh_installman:
47 sed -e 's/@VERSION@/$(DEB_VERSION_UPSTREAM)/g' debian/hypothesis.1.in > debian/hypothesis.1
48