Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 export PYBUILD_NAME=kerchunk
6
7 # python3-fastparquet module not available in Debian
8 SKIP_ARGS=not test_single_append_parquet \
9 and not test_zarr_combine
10
11 # tests requiring broken or unavailable hdf5 plugins
12 SKIP_ARGS +=\
13 and not test_string_null \
14 and not test_string_decode \
15 and not test_compound_string_null \
16 and not test_compound_string_encode \
17 and not test_var \
18 and not test_malicious_chunks
19
20 export PYBUILD_TEST_ARGS=-v -m "not remotedata" -k "${SKIP_ARGS}" $(CURDIR)/tests
21 export PYBUILD_AFTER_TEST=${RM} -r {dir}/tests/__pycache__
22
23 %:
24 dh $@ --buildsystem=pybuild
25
26 execute_after_dh_auto_build-indep:
27 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
28 PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
29 sphinx-build -N -E -T -b html docs/source $(CURDIR)/.pybuild/docs/html/
30 ${RM} -r $(CURDIR)/.pybuild/docs/html/.doctrees
31 endif