#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/dpkg/pkg-info.mk export PYBUILD_NAME=zarr %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_configure: echo "version = '$(DEB_VERSION_UPSTREAM)'" > zarr/version.py dh_auto_configure override_dh_auto_build-indep: dh_auto_build -i ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) cd docs && \ PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \ sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/ rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees endif override_dh_auto_test: dh_auto_test $(RM) -r .pybuild/*/build/fixture .pybuild/*/build/data override_dh_auto_clean: # does not work due to missing setuptools-scm # dh_auto_clean $(RM) zarr/version.py $(RM) -r .pytest_cache .pybuild build zarr.egg-info $(RM) -r $(shell find . -name __pycache__)