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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#!/usr/bin/make -f
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
export GDAL_ENABLE_DEPRECATED_DRIVER_GTM=YES
export PYBUILD_NAME=fiona
export PYBUILD_TEST_PYTEST=1
export PYBUILD_BEFORE_TEST=cp -r pytest.ini {dir}/tests {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/pytest.ini {build_dir}/tests
export PYBUILD_TEST_ARGS=-v \
--ignore tests/test_bytescollection.py \
--ignore tests/test_collection.py \
--ignore tests/test_data_paths.py \
--ignore tests/test_drvsupport.py \
--ignore tests/test_feature.py \
--ignore tests/test_filter_vsi.py \
--ignore tests/test_fio_bounds.py \
--ignore tests/test_fio_calc.py \
--ignore tests/test_fio_cat.py \
--ignore tests/test_fio_collect.py \
--ignore tests/test_fio_distrib.py \
--ignore tests/test_fio_dump.py \
--ignore tests/test_fio_filter.py \
--ignore tests/test_fio_info.py \
--ignore tests/test_fio_load.py \
--ignore tests/test_fio_ls.py \
--ignore tests/test_fio_rm.py \
--ignore tests/test_geopackage.py \
--ignore tests/test_http_session.py \
--ignore tests/test_layer.py \
--ignore tests/test_listing.py \
--ignore tests/test_profile.py \
--ignore tests/test_unicode.py \
--ignore tests/test_vfs.py \
--ignore tests/test_write.py \
-k "not test_opener_fsspec_zip_http_fs"
%:
dh $@ --buildsystem pybuild
override_dh_auto_test:
# Ignore test failures on problematic architectures only
ifneq (,$(filter $(DEB_BUILD_ARCH),hurd-i386 ppc64))
dh_auto_test || echo "Ignoring test failures"
else
dh_auto_test
endif
execute_after_dh_install:
rm -rf debian/python3-fiona/usr/bin
debian/fiona.1:
help2man fiona -N -L en_US.utf8 -n "command line tools for reading/writing geospatial vector data" >debian/fiona.1
|