| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Enable hardening build flags |
| 4 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 5 |
|
| 6 |
export LC_ALL=C.UTF-8 |
| 7 |
export LANG=C.UTF-8 |
| 8 |
|
| 9 |
include /usr/share/dpkg/architecture.mk |
| 10 |
|
| 11 |
export GDAL_ENABLE_DEPRECATED_DRIVER_GTM=YES |
| 12 |
|
| 13 |
export PYBUILD_NAME=fiona |
| 14 |
export PYBUILD_TEST_PYTEST=1 |
| 15 |
export PYBUILD_BEFORE_TEST=cp -r pytest.ini {dir}/tests {build_dir} |
| 16 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/pytest.ini {build_dir}/tests |
| 17 |
export PYBUILD_TEST_ARGS=-v \ |
| 18 |
--ignore tests/test_bytescollection.py \ |
| 19 |
--ignore tests/test_collection.py \ |
| 20 |
--ignore tests/test_data_paths.py \ |
| 21 |
--ignore tests/test_drvsupport.py \ |
| 22 |
--ignore tests/test_feature.py \ |
| 23 |
--ignore tests/test_filter_vsi.py \ |
| 24 |
--ignore tests/test_fio_bounds.py \ |
| 25 |
--ignore tests/test_fio_calc.py \ |
| 26 |
--ignore tests/test_fio_cat.py \ |
| 27 |
--ignore tests/test_fio_collect.py \ |
| 28 |
--ignore tests/test_fio_distrib.py \ |
| 29 |
--ignore tests/test_fio_dump.py \ |
| 30 |
--ignore tests/test_fio_filter.py \ |
| 31 |
--ignore tests/test_fio_info.py \ |
| 32 |
--ignore tests/test_fio_load.py \ |
| 33 |
--ignore tests/test_fio_ls.py \ |
| 34 |
--ignore tests/test_fio_rm.py \ |
| 35 |
--ignore tests/test_geopackage.py \ |
| 36 |
--ignore tests/test_http_session.py \ |
| 37 |
--ignore tests/test_layer.py \ |
| 38 |
--ignore tests/test_listing.py \ |
| 39 |
--ignore tests/test_profile.py \ |
| 40 |
--ignore tests/test_unicode.py \ |
| 41 |
--ignore tests/test_vfs.py \ |
| 42 |
--ignore tests/test_write.py \ |
| 43 |
-k "not test_opener_fsspec_zip_http_fs" |
| 44 |
|
| 45 |
%: |
| 46 |
dh $@ --buildsystem pybuild |
| 47 |
|
| 48 |
override_dh_auto_test: |
| 49 |
# Ignore test failures on problematic architectures only |
| 50 |
ifneq (,$(filter $(DEB_BUILD_ARCH),hurd-i386 ppc64)) |
| 51 |
dh_auto_test || echo "Ignoring test failures" |
| 52 |
else |
| 53 |
dh_auto_test |
| 54 |
endif |
| 55 |
|
| 56 |
execute_after_dh_install: |
| 57 |
rm -rf debian/python3-fiona/usr/bin |
| 58 |
|
| 59 |
debian/fiona.1: |
| 60 |
help2man fiona -N -L en_US.utf8 -n "command line tools for reading/writing geospatial vector data" >debian/fiona.1 |