#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

UPSTREAM_GIT := https://github.com/home-assistant-libs/aioshelly.git
include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@ --buildsystem=pybuild

override_dh_fixperms:
	dh_fixperms
	rm -rf $(CURDIR)/debian/python3-aioshelly/usr/lib/python3/dist-packages/tools

execute_before_dh_auto_build:
	sed -i "s/^version = \".*\"/version = \"$(DEB_VERSION_UPSTREAM)\"/" pyproject.toml

execute_before_dh_clean:
	sed -i "s/^version = \".*\"/version = \"0.0.0\"/" pyproject.toml
