#!/usr/bin/make -f

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

# These snapshots use Syrupy 6 formatting; Debian currently ships Syrupy 5.
export PYBUILD_TEST_ARGS=--no-cov -k 'not (test_graphql_electricity_model or \
 test_graphql_electricity_none_date or test_graphql_electricity_midnight_cest or \
 test_graphql_gas_model or test_graphql_gas_morning_model or \
 test_graphql_gas_none_date or test_graphql_electricity_no_prices)'

%:
	dh $@ --buildsystem=pybuild

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
